用MySQL在ActiveMQ共享JDBC存储中将经纪人定义为Master

发布于 2025-02-09 04:54:31 字数 160 浏览 2 评论 0原文

我是ActiveMQ的新手。我正在尝试使用MySQL使用共享的JDBC Master/从属来配置ActiveMQ高可用性。当主人失败时,从属会自动负责(即成为主人)并抓住MySQL中的锁。我想知道是否有任何办法可以将经纪人定义为主人,以便如果从站负责,然后将主人重新连接并再次接受连接,则不必等待奴隶失败。

I am new to ActiveMQ. I am trying to configure ActiveMQ high availability using shared JDBC master/slave with MySQL. When the master fails the slave automatically takes charge (i.e. becomes the master) and grabs the lock in MySQL. I wanted to know if there is any way we can fix a broker as master so that if the slave takes charge and then the master gets reconnected and accepts connections again it doesn't have to wait for slave to fail.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

痴情 2025-02-16 04:54:32

ActiveMQ“ Classic”不支持专门为主或从属配置经纪人的概念。您只需配置2个经纪人以使用相同的共享存储(无论是磁盘还是数据库),并且哪个经纪人首先获得锁定的是主经纪人,并保持主体经纪人直到失败为止。

您需要使用 activemq artemis 和配置“ nofollow noreferrer”> fofalback 支持您的用例。

ActiveMQ "Classic" doesn't support the notion of configuring a broker specifically as a master or a slave. You simply configure 2 brokers to use the same shared storage (whether that's disk or database) and whichever broker gets the lock first is the master broker and stays the master broker until it fails.

You'd need to use ActiveMQ Artemis and configure failback to support your use-case.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文