Salt之Cpu 100%无响应故障 Salt request timed out. The master is not responding#yyds干货盘点#

Posted wangzx_mm

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Salt之Cpu 100%无响应故障 Salt request timed out. The master is not responding#yyds干货盘点#相关的知识,希望对你有一定的参考价值。

 报错信息如下:

Salt request timed out. The master is not responding. You may need to run your command with `--async` in order to bypass the congested event bus. With `--async`, the CLI tool will print the job id (jid) and exit immediately without listening for responses. You can then use `salt-run jobs.lookup_jid` to look up the results of the job in the job cache later.


CPU一直是非常的高,解决方法是:首先top查看进行,然后通过 strace -p 端口号 跟踪这个pid查出salt再做什么,我这里查出是在lstat一个目录,发现是/srv/salt/master下面有好多目录149个,然后每个目录下面都有好多文件,大概是每次都要读取这个目录的东西,所以以后的规划,我们都要定时去清理这个目录下面的文件

rm -rf /srv/salt/master/目录

删除目录后解决。


以上是关于Salt之Cpu 100%无响应故障 Salt request timed out. The master is not responding#yyds干货盘点#的主要内容,如果未能解决你的问题,请参考以下文章

SaltStack之salt-ssh

死磕salt系列-salt文章目录汇总

SaltStack之salt-ssh

SaltStack之salt-ssh

SaltStack之salt-ssh

SaltStack之salt-ssh