I would like to direct any node in Aeron Cluster to become leader, no elections. The previous leader automatically becomes a follower, never attempting to assume leadership (unless directed externally).
I looked at Cluster/Role
, ClusterTool
and AeronCluster
APIs and nothing seemed helpful. I also checked AppointedLeaderTest
and it boils down to initially specify leader with ConsesusModule.Context.appointedLeaderId
, but no way to change it afterwards dynamically?
How to do this?