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

实践是知识的母亲,知识是生活的明灯。这篇文章主要讲述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干货盘点#】


    推荐阅读