我的一个Saltstack安装程序在我运行的每个salt命令上总是有5秒延迟,即此命令需要5.236秒才能运行,而另一个系统没有延迟。
看来minion(在与master相同的机器上运行)并没有告诉Master它已经完成它的命令,命令最终运行正常但是。
"痕量"输出缓慢的环境
root@salt01-master:~# time salt -l trace 'salt01-master' test.ping
[DEBUG ] Reading configuration from /etc/salt/master
[DEBUG ] Using cached minion ID from /etc/salt/minion_id: salt01-master
[DEBUG ] Missing configuration file: /home/admin-user/.saltrc
[TRACE ] None of the required configuration sections, 'logstash_udp_handler' and 'logstash_zmq_handler', were found the in the configuration. Not loading the Logstash logging handlers module.
[DEBUG ] Configuration file path: /etc/salt/master
[DEBUG ] Reading configuration from /etc/salt/master
[DEBUG ] Using cached minion ID from /etc/salt/minion_id: salt01-master
[DEBUG ] Missing configuration file: /home/admin-user/.saltrc
[DEBUG ] MasterEvent PUB socket URI: ipc:///var/run/salt/master/master_event_pub.ipc
[DEBUG ] MasterEvent PULL socket URI: ipc:///var/run/salt/master/master_event_pull.ipc
[DEBUG ] Sending event - data = {'_stamp': '2016-05-24T14:13:25.267566'}
[TRACE ] get_event() received = {'tag': 'salt/event/new_client', 'data': {'_stamp': '2016-05-24T14:13:25.267566'}}
[TRACE ] func get_cli_event_returns()
[DEBUG ] LazyLoaded local_cache.get_load
[DEBUG ] get_iter_returns for jid 20160524161325275691 sent to set(['salt01-master']) will timeout at 16:13:30.282984
[DEBUG ] jid 20160524161325275691 return from salt01-master
[DEBUG ] LazyLoaded nested.output
[TRACE ] data = {'salt01-master': True}
salt01-master:
True
real 0m5.236s
user 0m0.236s
sys 0m0.034s
"痕量"输出运行良好的环境。
root@salt01-master:~# time salt -l trace 'salt01-master' test.ping
[DEBUG ] Reading configuration from /etc/salt/master
[DEBUG ] Using cached minion ID from /etc/salt/minion_id: salt01-master
[DEBUG ] Missing configuration file: /home/admin-user/.saltrc
[TRACE ] None of the required configuration sections, 'logstash_udp_handler' and 'logstash_zmq_handler', were found the in the configuration. Not loading the Logstash logging handlers module.
[DEBUG ] Configuration file path: /etc/salt/master
[DEBUG ] Reading configuration from /etc/salt/master
[DEBUG ] Using cached minion ID from /etc/salt/minion_id: salt01-master
[DEBUG ] Missing configuration file: /home/admin-user/.saltrc
[DEBUG ] MasterEvent PUB socket URI: ipc:///var/run/salt/master/master_event_pub.ipc
[DEBUG ] MasterEvent PULL socket URI: ipc:///var/run/salt/master/master_event_pull.ipc
[DEBUG ] Sending event - data = {'_stamp': '2016-05-24T14:13:53.621800'}
[TRACE ] get_event() received = {'tag': 'salt/event/new_client', 'data': {'_stamp': '2016-05-24T14:13:53.621800'}}
[TRACE ] func get_cli_event_returns()
[DEBUG ] LazyLoaded local_cache.get_load
[DEBUG ] get_iter_returns for jid 20160524161353631575 sent to set(['salt01-master']) will timeout at 16:13:58.637479
[DEBUG ] jid 20160524161353631575 return from salt01-master
[DEBUG ] LazyLoaded nested.output
[TRACE ] data = {'salt01-master': True}
salt01-master:
True
[DEBUG ] jid 20160524161353631575 found all minions set(['salt01-master'])
real 0m0.283s
user 0m0.179s
sys 0m0.029s
工作正常的环境有一个额外的[DEBUG] Line,就在&test.3ping'的常规输出之后。命令
任何人都可以向我推进正确的方向吗?
非常感谢。
答案 0 :(得分:0)
对于离线或离开的小兵,你有没有可接受的奴隶钥匙?这听起来像盐师傅正在等待一些失踪的仆从回应。