java 5秒_Salt命令大约需要5秒才能完成

我的一个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'命令的常规输出之后

任何人都可以向我指出正确的方向吗?

非常感谢你 .

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值