Create Session failed: Too many sessions created from ::ffff:127.0.0.1 by user root. the threshold is 300.

nebula graph 版本:3.1.0
nebula console 版本:3.0.0
部署方式:单机
安装方式:源码编译 nebula graph 3.1.0
是否为线上版本:no
使用平台:ubuntu22.04

问题的具体描述:
Create Session failed: Too many sessions created from ::ffff:127.0.0.1 by user root. the threshold is 300.

有时候重启服务器,启动graph-services后可以正常使用,但是过一段时间在console里面就会跳出该错误。
有时候重启服务器,启动graph-services后,在启用console的时候会直接跳出该错误。
该错误出现情况非常不稳定。

如同报错信息所说,单个 ip 的 session 数量超过了你设定(默认是 300) 的上限,参考这个文档。

你可以调整下上限,以及调整下 session 过期时间 session_idle_timeout_secs,这个参数项还是上面的文档里有的,你可以搜索下。