如果未启动主人

发布于 2025-02-12 02:49:22 字数 213 浏览 1 评论 0原文

我们有一个具有共享存储策略的主/从设置。 我们观察到,如果我们在主机下降时启动从属,我们会有以下消息:

AMQ221032: Waiting to become backup node

并且服务器不会实现。

因此,这意味着奴隶要求主人在给定的时间上起来才能进行操作。 这是预期的行为吗?如果主人失望,有没有办法让奴隶在创业公司中实现?

We have a master/slave setup with the shared storage strategy.
We observed that if we start the slave when the master is down, we have the following message:

AMQ221032: Waiting to become backup node

And the server does not become live.

So it means that the slave requires the master to be up at a given time to become operational.
Is this the expected behavior? Is there a way to let the slave become live at startup if the master is down?

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

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

发布评论

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

评论(1

全部不再 2025-02-19 02:49:22

一般而言,您所看到的是不是 使用共享存储的主人/从属的预期行为。如果未启动主机并启动从设备开始,则从属应在共享存储中获取锁并开始。我刚刚使用交易范围输入示例对此进行了测试,该示例用ActiveMQ Artemis发货,而备份开始时,备份开始时正常。这是我在启动主人启动时启动备份时看到的记录:

2022-07-03 21:50:55,955 INFO  [org.apache.activemq.artemis.core.server] AMQ221032: Waiting to become backup node
2022-07-03 21:50:55,956 INFO  [org.apache.activemq.artemis.core.server] AMQ221033: ** got backup lock
...
2022-07-03 21:50:56,156 INFO  [org.apache.activemq.artemis.core.server] AMQ221109: Apache ActiveMQ Artemis Backup Server version 2.23.0 [0db7f4ea-fb44-11ec-8718-3ce1a1d12939] started, waiting live to fail before it gets active
...
2022-07-03 21:50:56,661 INFO  [org.apache.activemq.artemis.core.server] AMQ221010: Backup Server is now live

您看到的行为表明可能已经启动了另一个备份,并且已经在日记帐上获得了备份锁定。很难说提供的信息。

Generally speaking what you're seeing is not the expected behavior for master/slave using shared storage. If the master is not started and the slave is started then the slave should acquire the lock on the shared storage and start. I just tested this out using the transaction-failover example which is shipped with ActiveMQ Artemis and the backup started just fine when the master wasn't started. Here's the logging I saw when starting the backup when the master wasn't started:

2022-07-03 21:50:55,955 INFO  [org.apache.activemq.artemis.core.server] AMQ221032: Waiting to become backup node
2022-07-03 21:50:55,956 INFO  [org.apache.activemq.artemis.core.server] AMQ221033: ** got backup lock
...
2022-07-03 21:50:56,156 INFO  [org.apache.activemq.artemis.core.server] AMQ221109: Apache ActiveMQ Artemis Backup Server version 2.23.0 [0db7f4ea-fb44-11ec-8718-3ce1a1d12939] started, waiting live to fail before it gets active
...
2022-07-03 21:50:56,661 INFO  [org.apache.activemq.artemis.core.server] AMQ221010: Backup Server is now live

The behavior you're seeing indicates that perhaps another backup is already started and has acquired the backup lock on the journal. It's hard to say with the information you're provided.

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