简体   繁体   English

何时重新启动Sensu

[英]When to restart Sensu

When must the sensu-client be restarted? sensu-client何时必须重新启动? I've noticed that I can just restart the sensu-api and sensu-server and new checks that I add seem to work. 我注意到我可以重新启动sensu-api和sensu-server,添加的新检查似乎可以正常工作。 Do I need to restart clients like the doc says? 是否需要像文档中所述重新启动客户端?

I think the answer is no. 我认为答案是否定的。 You only have to restart clients when adding new configurations to them. 将新配置添加到客户端时,只需重启客户端即可。 Otherwise they'll automatically pick up new checks that the server dictates. 否则,他们将自动获取服务器指示的新支票。

For the most part configuration management tools will restart the right components when necessary. 在大多数情况下,配置管理工具会在必要时重新启动正确的组件。

The clients do need to be restarted when client-side configuration (standalone checks, rabbitmq, etc) changes. 当客户端配置(独立检查,rabbitmq等)更改时, 确实需要重新启动客户端。

Also, the servers themselves need their local clients restarted (if you are running a sensu client on your sensu server too), even when server-side definitions are changed, due to this bug: https://github.com/sensu/sensu/issues/806 同样,由于以下错误,即使更改了服务器端定义,服务器本身也需要重新启动其本地客户端(如果您也在sensu服务器上运行sensu客户端的话): https : //github.com/sensu/sensu /问题/ 806

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM