[英]name of channel in rabitmq consumer using celery
I have setup, where we are using celery and RabbitMQ to schedule our task based on data.我有设置,我们使用celery和RabbitMQ根据数据安排我们的任务。
When we create multiple consumer to same queue, it create bindings
and web portal shows the consumer IP in channel
column.当我们为同一个队列创建多个消费者时,它会创建
bindings
并且 Web 门户在channel
列中显示消费者 IP。
Its hard to find the consumer
based on IP:PORT
.很难根据
IP:PORT
找到consumer
。 Is there any way in celery configuration, where we can give the name of these channel?在芹菜配置中有什么方法可以给这些频道起名字吗? by which we know, which host or machine consume this message.
我们知道,哪个主机或机器使用了这条消息。
If you want the host name, is there a reason why you cannot just use如果您想要主机名,是否有理由不能只使用
socket.gethostbyaddr(ip)
套接字.gethostbyaddr(ip)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.