Hi,
I would like to recommend to add configuration "<check-for-live-server>" to
backup server. I tested artemis replication mode with the following
configuration:
Primary:
<ha-policy>
<replication>
<master>
<vote-on-replication-failure>true</vote-on-replication-failure>
<check-for-live-server>true</check-for-live-server>
</master>
</replication>
</ha-policy>
Backup server:
<ha-policy>
<replication>
<slave>
<allow-failback>false</allow-failback>
</slave>
</replication>
</ha-policy>
We also enable ping on both primary and backup server.
1. When the network card in primary was disabled, after around 2 minutes,
the backup server went live while the primary server was still isolated from
network.
2. After network card in primary server was enabled, artemis in primary
woke up but it detected a live server was already active so it announced as
backup.
3. Then, network card in the backup server was disabled, after around 2
minutes, the primary server went live while the backup server was still
isolated from network.
4. After network card in the backup server was enabled, the backup server
woke but because there was no configuration to check for live server, it went
live while the primary server also live (split brain issue).
Any reason why the backup server doesn't have configuration
"<check-for-live-server>"?
Thanks
Regards,
Rahman