简体   繁体   English

队列在 RabbitMQ 中被删除

[英]Queues are getting deleted in RabbitMQ

So I created some queues with the command below...所以我用下面的命令创建了一些队列......

rabbitmqadmin --vhost=blocking-mq declare queue name="data-api-queue" durable=true auto_delete=false 'arguments={"x-message-ttl":1200000,"x-expires":1200000}'
rabbitmqadmin --vhost=blocking-mq declare queue name="interaction-api-queue" durable=true auto_delete=false 'arguments={"x-message-ttl":1200000,"x-expires":1200000}'
rabbitmqadmin --vhost=blocking-mq declare queue name="realtime-api-queue" durable=true auto_delete=false 'arguments={"x-message-ttl":1200000,"x-expires":1200000}'
rabbitmqadmin --vhost=blocking-mq declare queue name="blocking-api-queue" durable=true auto_delete=false 'arguments={"x-message-ttl":1200000,"x-expires":1200000}'

But after restarting my machine I see that they are deleted.但是在重新启动我的机器后,我发现它们已被删除。 I created them again and restarted and that occurred again.我再次创建它们并重新启动,然后又发生了。 But exchange declared in a same-ish manner(with rabbitmqadmin) persisted and also queues of the other vhost are still there too...但是以相同的方式(使用 rabbitmqadmin)声明的交换仍然存在,并且其他 vhost 的队列也仍然存在......

NB The persisting queues of the other vhost was created via the management panel.注意另一个虚拟主机的持久队列是通过管理面板创建的。

How to solve this issue(without declaring queues after every reboot)...???如何解决这个问题(每次重启后不声明队列)...???

Team RabbitMQ provided an answer here: RabbitMQ 团队在这里提供了答案:

https://github.com/rabbitmq/rabbitmq-server/discussions/6751https://github.com/rabbitmq/rabbitmq-server/discussions/6751


NOTE: the RabbitMQ team monitors the rabbitmq-users mailing list and only sometimes answers questions on StackOverflow.注意: RabbitMQ 团队监控rabbitmq-users邮件列表,有时只在 StackOverflow 上回答问题。

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

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