Decreasing the replicas for kafka and zookeeper pods #4984
Replies: 1 comment 1 reply
-
First of all, you should always have an odd number of ZooKeeper replicas - for example 3 or 5. Zookeeper always needs a majority of nodes to have a quorum - so having 4 nodes makes only a little sense. (For Kafka, having 4 nodes might be fine) Re 1) Scaling down always removes the last pod - the one with the highest index number. Re 2) In general, Kubernetes leaves the deletion of the volumes to the user - as a protection against accidentally deleting the data. I think you should be able to set the Re 3) Partition replicas are always assigned to specific brokers. If you want to move some of them to the new broker after scale-up, you can use the |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
All reactions