Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kafka Cluster Disaster Recovery (Persistent disk with Retain Policy) #1022

Open
tanuj83 opened this issue Jul 24, 2023 · 0 comments
Open

Kafka Cluster Disaster Recovery (Persistent disk with Retain Policy) #1022

tanuj83 opened this issue Jul 24, 2023 · 0 comments

Comments

@tanuj83
Copy link

tanuj83 commented Jul 24, 2023

Problem Statement

Using Kafka cluster with Persistent disk and in case Kafka cluster gets deleted we will loose whole Kafka cluster data.

  1. The persistent reclaimPolicy: Retain in storage class doesn't help in this problem as this is not stateful set and not even static pod name. Once the cluster gets recreated, it has new pod name which gets new PV assigned, so no recovery of data.
  2. The alternate is, we use reclaimPolicy: Delete in storage class and use KafkaBackup (faster recovery if huge data on disks ) along with MirrorMaker2 (for remaining data recovery), but this is a costly solution and will not save the purpose of cost saving on the K8s. This will increase operation work too.

Proposed Solution

The proposal to have reclaimPolicy: Retain working in cluster, either by hardcoded the broker pod name or using only format like <clusterName>-<brokerID>, that way the broker pod name will not be changed and we can reuse same PV

Alternatives Considered

Additional Context

@tanuj83 tanuj83 changed the title Kafka Cluster with Persistent disk with Retain Policy Kafka Cluster Disaster Recovery (Persistent disk with Retain Policy) Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant