Docker/K8s 启动 Nebula Graph,只有 GraphD crash/unhealthy

如果只有 graphD 容器启动失败,先看 GraphD 的日志,如果报错是:

E1105 08:45:43.579129     1 GraphDaemon.cpp:158] Could not open the file: /sys/fs/cgroup/memory/memory.limit_in_bytes

就是 https://github.com/vesoft-inc/nebula/issues/3278 造成的,解决方案是使用 2.6.2 或者 3.x 的镜像。比如对于docker compose 2.6.1/2.6.0来说:

docker-compose down
git pull
git checkout  v2.6 
docker-compose pull
docker-compose up -d

如果是 nebula operator 的话修改参数里镜像版本为 2.6.2 就可以了。

2 个赞