Restore Kafka: a cluster, a topic, or a recovery test

Three situations every Kafka platform team meets sooner or later, each with the evidence streamkeepr produces. Disaster recovery for Kafka after an outage, a misconfiguration or ransomware.

The cluster is lost or compromised

A cluster deleted by an infrastructure change, an attacker with admin rights, or a mistake that reached the replica too. Mirroring with MirrorMaker or Cluster Linking copies the mistake; a backup lets you go back. streamkeepr rebuilds the cluster from the backup in your S3 bucket, in order.

  • The Schema Registry is part of the backup: subjects, versions and schema IDs come back unchanged.
  • After the preflight checks pass, every topic is restored to the chosen point in time, with its consumer offsets.
  • Services resume where they were.
Restoring a whole cluster: from the backup in the S3 bucket the cluster is rebuilt at the chosen point in time, with Schema Registry, topics and consumer offsets.

A topic is gone

A GitOps change deletes a topic, or a wrong retention setting empties a compacted master-data topic. The rest of the cluster keeps running, and so should it. Restore just that topic to the point in time before the change.

  • One topic, one point in time, under the same name or a new one.
  • Only the consumer groups that read it are moved to their offsets.
  • Everything else stays untouched.
Point-in-time restore of a single topic. Only the consumer groups that read it get their offsets; all other topics and groups stay untouched.

Prove you can recover

The yearly recovery test or the audit has to include Kafka, and a slide is not evidence. Regulations such as DORA expect restores to be tested regularly and documented. Restore into an isolated test cluster from the same backup, and hand in the report.

  • The same restore definition as in an emergency, pointed at a test cluster.
  • A report with result, scope, window, records and consumer groups, printable.
  • Repeat it whenever the auditor asks.
Recovery test: the same restore definition as in an emergency, pointed at an isolated test cluster. The restore report documents the result.

Questions

Do our services resume at the right offset after a restore?

Consumer group offsets are part of the backup. streamkeepr translates each group’s offset at the chosen point in time into the restored topics, so the group resumes where it was; you review the plan, apply it to stopped groups and roll it back if needed. Offsets that your services keep outside Kafka are yours to adjust.

Can we rehearse a recovery?

Yes. Point the same restore definition at an isolated test cluster and keep the report as evidence for your recovery test.

See it on a cluster like yours

We show a backup, a point-in-time restore with consumer groups and a production data clone on a test cluster, and answer your recovery questions.