Heroku和RabbitMQ-无法运行多个工作进程dynos

3

我正在使用Heroku的CloudAMPQ插件。由于RabbitMQ需要为其每个进程提供唯一的节点名称,因此当我将工作进程从1个扩展到2个或更多时,就会遇到警告:

 /app/.heroku/python/lib/python3.6/site-packages/kombu/pidbox.py:71: UserWarning: A node named coworker@fstrk.io is already using this process mailbox!

 Maybe you forgot to shutdown the other node or did not do so properly?
 Or if you meant to start multiple nodes on the same host please make sure
 you give each node a unique node name!

我的 Procfile 行看起来像这样

 coworker: celery -l info -A getmybot worker -Q slack -c ${COWORKER_PROCESSES:-4} --hostname coworker@fstrk.io --without-gossip --without-mingle --without-heartbeat

我该怎么做呢?

1个回答

1

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接