Apache Flink high availability

Rehearse standby JobManager takeover and state recovery from a completed checkpoint in a Flink application cluster on Kubernetes.

Last updated

On this page (5)

Apache Flink ยท High availability

Before you start

  • Existing FlinkDeployment with Kubernetes HA, at least two JobManager replicas and configured durable HA storage.
  • Recent completed checkpoints, recoverable source offsets, and a staging stream with a sink that can be reconciled.

Procedure

  1. Verify the JobManager service account can manage the required Kubernetes ConfigMaps and both JobManager replicas can access high-availability.storageDir and checkpoint storage.
  2. Send uniquely identifiable test records and record the latest completed checkpoint. In staging interrupt just the elected JobManager, leaving durable state untouched.
  3. Watch standby leadership and job restart, then reconcile test records in the sink against its configured delivery guarantee.

Verify the result

  • New leader restores the expected checkpoint and the job resumes and completes a fresh checkpoint.
  • Recovery duration is recorded; duplicate or missing sink records are evaluated against the actual source and sink guarantees, not assumed away by JobManager HA.

Official documentation

Have Pilae operate Apache Flink

We agree what to monitor, how to recover and who responds when something breaks. Bring your existing deployment or start with a new one.