So lets say if I have 6 nodes and I did 6 partitio...
# troubleshooting
a
So lets say if I have 6 nodes and I did 6 partition so each user ID in each node now I have 10 nodes so should the no of PARTITIONS change as the hash of them will still be the same as its hard coded. or will it rebalance the exsisting data even tho I have 6 partition ? or do I need to make it 10 ? and if I make it 10 how will I rebalance the entire data set ?
r
If you increase the number of partitions then the partition assignment will change (partition = hash mod partitions)
If you increase the number of nodes/servers then a rebalance is needed to redistribute the segments across the new set of servers
Check the docs for more about rebalancing
a
My understanding of partition is that the no of nodes = no of partitions . Means if I have 6 nodes and I can modulo based on that in 6 partitions and the nodes will be utilized. If the nodes are increased the 6 partitions will be still utilizing 6 nodes only based on the hash so in that case I might need to change the partition on both the sides to utilize the other nodes as well based on the hash partitioning
Please correct me.
r
What do you mean by “change the partition on both sides”?
a
From Kafka and from Pinot . Keeping 6 and 6 on both the sides as I have initially 6 nodes . As we discussed yesterday on call with Gonzales So just keeping that scenarios in consideration of equal partitions
r
As I pointed out during that call, and Gonzalo confirmed, you can have less or equal partitions in Pinot than in Kafka
Also, you don’t need to configure partition assignment explicitly. By default Pinot should balance the Kafka partitions equally across your Pinot servers
A Pinot server can consume from multiple Kafka partitions
Also multiple Pinot servers can consume the same Kafka partitions. The is one way replication is achieved
a
Okay got it So in Murmur partitions No of partitions doesn’t really mean no of nodes on the Pinot sides ? So I can have 6 partitions in Pinot and 10 nodes and the data still will be distributed in 10 nodes regardless of that partition
r
No, if you want to use all 10 servers then you need to have 10 Pinot partitions
And when you change your Pinot partitions you need to manually trigger a rebalance
a
Yes that’s what I was talking about actually Thanks a lot for clarifying it