Artemis master node重启后不切换回live
Artemis master node don't switch back to live after restart
我的 Artemis 配置(共享存储)具有以下 ha-policy(用于主从):
大师:
<ha-policy>
<shared-store>
<master>
<failover-on-shutdown>true</failover-on-shutdown>
</master>
</shared-store>
</ha-policy>
奴隶:
<ha-policy>
<shared-store>
<slave>
<failover-on-shutdown>true</failover-on-shutdown>
<allow-failback>true</allow-failback>
</slave>
</shared-store>
</ha-policy>
我正在执行以下步骤:
- 停止大师
./artemis-service stop
备份现已上线:
2020-09-22 10:51:57,172 INFO [org.apache.activemq.artemis.core.server] AMQ221010: Backup Server is now live
- 开始大师
./artemis-service start
大师不转直播:
2020-09-22 10:53:01,128 INFO [org.apache.activemq.artemis.core.server] AMQ221034: Waiting indefinitely to obtain live lock
2020-09-22 10:53:01,489 INFO [org.apache.activemq.artemis.core.server] AMQ221031: backup announced
这是正确的行为吗?为什么重启后主服务器没有上线?
但是如果我停止备份服务器,主服务器就会生效。
服务器版本 2.11
我试图在 2.15 上重现这个。 Artemis 2.15 工作正常。
你的配置看起来不错。
请移至the latest release。我相信自 2.11.0 以来已经解决了一些文件锁定问题。
您可以在 the documentation 中找到升级说明。
我的 Artemis 配置(共享存储)具有以下 ha-policy(用于主从):
大师:
<ha-policy>
<shared-store>
<master>
<failover-on-shutdown>true</failover-on-shutdown>
</master>
</shared-store>
</ha-policy>
奴隶:
<ha-policy>
<shared-store>
<slave>
<failover-on-shutdown>true</failover-on-shutdown>
<allow-failback>true</allow-failback>
</slave>
</shared-store>
</ha-policy>
我正在执行以下步骤:
- 停止大师
./artemis-service stop
备份现已上线:
2020-09-22 10:51:57,172 INFO [org.apache.activemq.artemis.core.server] AMQ221010: Backup Server is now live
- 开始大师
./artemis-service start
大师不转直播:
2020-09-22 10:53:01,128 INFO [org.apache.activemq.artemis.core.server] AMQ221034: Waiting indefinitely to obtain live lock
2020-09-22 10:53:01,489 INFO [org.apache.activemq.artemis.core.server] AMQ221031: backup announced
这是正确的行为吗?为什么重启后主服务器没有上线?
但是如果我停止备份服务器,主服务器就会生效。
服务器版本 2.11
我试图在 2.15 上重现这个。 Artemis 2.15 工作正常。
你的配置看起来不错。
请移至the latest release。我相信自 2.11.0 以来已经解决了一些文件锁定问题。
您可以在 the documentation 中找到升级说明。