ActiveMQ Artemis 中是否有一种”Scale up”配置?

huangapple go评论45阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2023年4月1日 00:31:31
  • 转载请务必保留本文链接:https://go.coder-hub.com/75900802.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定