I have three "replication" mode servers, one is master the two are slaves.
Master has "check-for-live-server" enabled. The slave has "allow-failback" enabled.
Failover works fine, but when the master is available again, after waiting for at least 5 minutes, the slave still does not do the auto-failback.
Here are the HA settings below.
Master (192.168.102.55) broker.xml:
<connectors>
<connector name="netty-connector">tcp://192.168.102.55:61616</connector>
</connectors>
<acceptors>
<acceptor name="netty-acceptor">tcp://192.168.102.55:61616</acceptor>
</acceptors>
<cluster-user>user</cluster-user>
<cluster-password>password</cluster-password>
<broadcast-groups>
<broadcast-group name="bg-group">
<group-address>231.7.7.7</group-address>
<group-port>9876</group-port>
<broadcast-period>5000</broadcast-period>
<connector-ref>netty-connector</connector-ref>
</broadcast-group>
</broadcast-groups>
<discovery-groups>
<discovery-group name="dg-group">
<group-address>231.7.7.7</group-address>
<group-port>9876</group-port>
<refresh-timeout>10000</refresh-timeout>
</discovery-group>
</discovery-groups>
<cluster-connections>
<cluster-connection name="my-cluster">
<connector-ref>netty-connector</connector-ref>
<message-load-balancing>ON_DEMAND</message-load-balancing>
<max-hops>2</max-hops>
<discovery-group-ref discovery-group-name="dg-group"/>
</cluster-connection>
</cluster-connections>
<ha-policy>
<replication>
<master>
<check-for-live-server>true</check-for-live-server>
</master>
</replication>
</ha-policy>
Slave (192.168.102.53) broker.xml:
<connectors>
<connector name="netty-connector">tcp://192.168.102.53:61616</connector>
</connectors>
<acceptors>
<acceptor name="netty-acceptor">tcp://192.168.102.53:61616</acceptor>
</acceptors>
<cluster-user>user</cluster-user>
<cluster-password>password</cluster-password>
<broadcast-groups>
<broadcast-group name="bg-group">
<group-address>231.7.7.7</group-address>
<group-port>9876</group-port>
<broadcast-period>5000</broadcast-period>
<connector-ref>netty-connector</connector-ref>
</broadcast-group>
</broadcast-groups>
<discovery-groups>
<discovery-group name="dg-group">
<group-address>231.7.7.7</group-address>
<group-port>9876</group-port>
<refresh-timeout>10000</refresh-timeout>
</discovery-group>
</discovery-groups>
<cluster-connections>
<cluster-connection name="my-cluster">
<connector-ref>netty-connector</connector-ref>
<message-load-balancing>ON_DEMAND</message-load-balancing>
<max-hops>2</max-hops>
<discovery-group-ref discovery-group-name="dg-group"/>
</cluster-connection>
</cluster-connections>
<ha-policy>
<replication>
<slave>
<allow-failback>true</allow-failback>
</slave>
</replication>
</ha-policy>
The Artemis version I used is 2.11.0. Does anyone know what I possibly could do wrong?