我的一个Saltstack安装程序在我运行的每个salt命令上总是有5秒延迟,即此命令需要5.236秒运行,而另一个系统没有延迟 .
看来minion(在与master相同的机器上运行)并没有告诉Master它已经完成了它的命令,Commands最终运行正常 .
"Trace" Output of the slow Environment
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
"Trace" Output of the Environment that just runs fine.
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]行,就在'test.ping'命令的常规输出之后
任何人都可以向我指出正确的方向吗?
非常感谢你 .