Repair broker , zookeeper by scaling replicas ? #10437
-
Hi all,
Sometimes there is a problem with the folder attached to the pvc of 1 of the 3 broker or zookeeper nodes, which causes the data in it to be corrupted and 1 pod in the 3 pod statefulsets to be corrupted as well. Can I fix it by this way : scale down replicas to 2 , remove pod and pvc , then scale up replicas to 3 again so new pod and pvc will run ok ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I think that in the first place, you should stop using NFS. NFS is not the right file system for Kafka and ZooKeeper and has known issues. You should use block storage instead. If you have a broken storage, and you want to delete and recreate it (the PVC), you can use an annotation for it. I do not remember it out of my head, but it will be described int he docs. But keep in mind that every operation like that weakens at least for some time until things sync up again your availability and reliability and can lead to data loss. |
Beta Was this translation helpful? Give feedback.
Well, up to you I guess. But as I said, NFS does not work in general. So not sure what will you really get out of such a cluster.
You annotate the Pod you want to delete together with the PVC with the annotation and wait. in the next reconciliation, the operator will delet…