Skip to content

Instantly share code, notes, and snippets.

@menski
Last active July 5, 2018 12:39
Show Gist options
  • Save menski/272c6d804295f31a5b4d6a10dbef83e7 to your computer and use it in GitHub Desktop.
Save menski/272c6d804295f31a5b4d6a10dbef83e7 to your computer and use it in GitHub Desktop.
Zeebe Static Partitions Configuration

Configuration Parameters

Required parameters on every broker in a Zeebe cluster (single topic). Only nodeId has to be unique per broker, other values have to be the same.

nodes = 5       (broker processes)
partitions = 6  (unrestricted)
replication = 3 (constraint <= nodes)
nodeId = x      (constraint unique between 0 and nodes (exclusive))

Partition Layout

With the given config values we can determine which node is responsible for which partition. Also if the partition does not exist locally the L (Leader) node will boostrap it.

  1. nodes 5, partitions 6, replication 3
P|N 0 1 2 3 4 
0   L F F     
1     L F F
2       L F F
3   F     L F 
4   F F     L 
5   L F F
  1. nodes 3, partitions 6, replication 3
P|N 0 1 2
0   L F F
1   F L F
2   F F L
3   L F F
4   F L F
5   F F L
  1. nodes 4, partitions 2, replication 3
P|N  0 1 2 3
0    L F F
1      L F F
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment