英文:
Is there some kind of "Scale up" configuration in ActiveMQ Artemis?
问题
消息经纪人加入集群时是否可以将消息发送到另一个经纪人?
就像在规模缩减配置中,当一个经纪人关闭时,该经纪人的所有消息都会转移到该集群中的另一个经纪人;是否有任何配置,当一个经纪人加入集群时,将负载分配给所有经纪人?
英文:
Can messages from a broker be sent to another broker when it joins the cluster?
As in the Scale Down config, when a broker shuts down, all the messages from that broker are transferred to another broker in that cluster; is there any configuration where, when a broker joins the cluster, the load among all the brokers gets divided?
答案1
得分: 1
No. There is no "scale up" procedure for new brokers joining the cluster whereby messages from the existing brokers are migrated/transferred to the new broker.
Implementing such a procedure is not nearly as straight-forward as it might first appear, and it's not clear that there's any real demand or a legitimate use-case for it.
You can potentially use a connection router in front of the cluster to help balance things out if necessary.
Generally speaking, you may find a new section in the documentation regarding cluster performance helpful.
英文:
No. There is no "scale up" procedure for new brokers joining the cluster whereby messages from the existing brokers are migrated/transferred to the new broker.
Implementing such a procedure is not nearly as straight-forward as it might first appear, and it's not clear that there's any real demand or a legitimate use-case for it.
You can potentially use a connection router in front of the cluster to help balance things out if necessary.
Generally speaking, you may find a new section in the documentation regarding cluster performance helpful.
答案2
得分: 0
With message redistribution Apache ActiveMQ Artemis can be configured to automatically redistribute messages from queues which have no consumers or consumers with filters that don't match messages. The messages are re-routed to other nodes in the cluster which do have matching consumers. To enable this functionality the redistribution-delay
address setting must be >= 0 and message-load-balancing must be ON_DEMAND
or OFF_WITH_REDISTRIBUTION
, for further details see Message Redistribution.
英文:
With message redistribution Apache ActiveMQ Artemis can be configured to automatically redistribute messages from queues which have no consumers or consumers with filters that don't match messages. The messages are re-routed to other nodes in the cluster which do have matching consumers. To enable this functionality the redistribution-delay
address setting must be >= 0 and message-load-balancing must be ON_DEMAND
or OFF_WITH_REDISTRIBUTION
, for further details see Message Redistribution.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论