Hi team, How are CPU cores and Kafka partitions co...
# troubleshooting
j
Hi team, How are CPU cores and Kafka partitions corelated? If My server cluster has
X
cores can I have
x
partitions on my Kafka topic? (For max performance) Second question How are segments replicated? Are they created during the consumption of segments - meaning we would have 3 consuming segments for 1 partition if we have replication set to 3? Are they cloned after the segment is built - meaning we would have 1 consuming segment for 1 partition if we have replication set to 3 but once it is written to disk the segment is propagated to the followers?
m
There isn't a directly constraint on cores. The loose correlation is that each partition has a dedicated consumer that uses one thread. You don't need to match number of cores to number of partitions. If you set RF = 3, then there will be 3 consumers for the same partition for redundancy and availability.