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 ord端口号和ip地址er to bypass the congested event bus. With `--async`, the CLI tool wlinux常用命令ill print th删除目录linux命令e job id (jid) and系统运维工程师 exit immediately without listening for responses. You can thenlinux命令 use `salt-run jobs.lookup_jid` to look up the results of the job in the job cache later.

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

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

删除目录后解决。