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
- Verify the JobManager service account can manage the required Kubernetes ConfigMaps and both JobManager replicas can access high-availability.storageDir and checkpoint storage.
- Send uniquely identifiable test records and record the latest completed checkpoint. In staging interrupt just the elected JobManager, leaving durable state untouched.
- 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.
