I set up the zeebe cluster with zeebe-docker-compose on 3 hosts, not k8s.
The cluster configuration:
clusterSize: 3
replicationFactor: 3
partitionsCount: 12
With zeebe v0.23.x, it performs well. Every zeebe node has 4 leader partitions, and 8 follower partitions.
host-1-docker-zeebe-node-leader-partitionId: {1, 4 , 7, 10}
host-2-docker-zeebe-node-leader-partitionId: {2, 5 , 8, 11}
host-3-docker-zeebe-node-leader-partitionId: {3, 6 , 9, 12}
However, when it comes to zeebe v0.24.x / v0.25.0-alpha1, the partitions distribute unevenly on 3 cluster nodes. Node-1 always has 11 leader partitions, while node-2 has 1 leader and node-3 has none.
Just for example:
host-1-docker-zeebe-node-leader-partitionId: {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}
host-2-docker-zeebe-node-leader-partitionId: {12}
host-3-docker-zeebe-node-leader-partitionId: {none}
I start the cluster with “docker-compose up -d”, and try my best to execute the command on 3 hosts at same time.