简体   繁体   English

如何 sigInt 兔子 MQ 工作人员?

[英]How to sigInt rabbit MQ workers?

We are using Rabbit MQ as a message broker via Sneaker gem.我们通过 Sneaker gem 使用 Rabbit MQ 作为消息代理。

During the deployment time, we need to pause the connection.在部署期间,我们需要暂停连接。 So no worker's work is picked up by the worker after completion of the current work因此,在当前工作完成后,工人的工作不会被工人接走

Is there any way to use CLI or Rabbit MQ management screen to do the same?有没有办法使用 CLI 或 Rabbit MQ 管理屏幕来做同样的事情?

Rabbit MQ(Sneakers) provides SIGTERM as gracefully termination of pods. Rabbit MQ(Sneakers) 提供 SIGTERM 作为 pod 的优雅终止。

Kill -Sigterm pid_number Will make sure all existing work are done and then terminate the pod kill -Sigterm pid_number 将确保所有现有工作都完成,然后终止 pod

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

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