操作系统资源限制类问题 问题描述 节点启动时,报错信号量不足,报错信息示例如下: 20240112 16:35:10 CST 39520FATAL: could not create semaphores: No space left on device 20240112 16:35:10 CST 39520DETAIL: Failed system call was semget(1978133, 17, 03600). 20240112 16:35:10 CST 39520HINT: This error does not mean that you have run out of disk space. It occurs when either the system limit forthe maximum number of semaphore sets (SEMMNI), or the system wide maximumnumber of semaphores (SEMMNS), would be exceeded. You need to raise the respective kernelparameter. Alternatively, reducePostgreSQL's consumption of semaphores by reducing its maxconnectionsparameter. 可能影响 节点启动失败 解决步骤 1. 查看当前信号量资源 > sysctl a grep sem > 或 > cat /etc/sysctl.confgrep sem > 默认推荐设置为: > kernel.sem 50100 64128000 50100 1280 > 其中第2个数字为最大信号量 2. 节点的连接数是否符合预期,maxconnections是否设置过大,可适当调小调小maxconnections。需要在控制台页面上修改参数,重启节点生效。 3. 调大可用信号量 > 调整方法: > 修改配置文件 > vi /etc/sysctl.conf > 修改kernel.sem值,主要调大其中第2个数字。 > 配置参数生效 > sysctl p