Commands icon
If icon
SlackIncomingWebhook icon
Schedule icon

Apache Flink Checkpoint Failure and State Snapshot Lag Sentinel

Audits Apache Flink JobManager for checkpoint failures and duration degradation to prevent streaming state corruption.

Categories
DataInfrastructure

How it works

This workflow connects to the Apache Flink JobManager REST API (/jobs/{job_id}/checkpoints) to audit the status and failure counters of streaming state snapshots. Flink relies on periodic asynchronous checkpoints (RocksDB or FileSystem state backends) to provide exactly-once processing guarantees. When storage I/O stalls (S3, GCS, HDFS), network buffer saturation delays checkpoint barriers, or heavy GC pauses cause task managers to drop heartbeats, checkpoints fail and exceed configured failure tolerances. This workflow monitors checkpoint status and raises immediate alerts before job failure cascades.

What you get

  • Real-time visibility into Apache Flink state persistence reliability.
  • Prevents loss of exactly-once stream processing guarantees.
  • Quantitative tracking of completed versus failed checkpoint attempts.

Who it's for

  • Stream Processing Engineers and Real-Time Analytics Developers.
  • SREs maintaining high-throughput Apache Flink clusters.

Why orchestrate this with Kestra

  • Continuous State Verification: Regularly checks Flink state health without manual dashboard inspection.
  • Decoupled Monitoring: Communicates with standard JobManager REST endpoints.
  • Actionable Alerts: Delivers notifications with job and checkpoint counts directly to Slack.

Prerequisites

  • Apache Flink cluster with JobManager REST API enabled.
  • Secret SLACK_WEBHOOK configured in Kestra.

Quick start

  1. Import the blueprint.
  2. Input Flink JobManager URL and target Job ID.
  3. Run the workflow to inspect checkpoint statistics.

How to extend

  • Inspect end-to-end checkpoint duration (latest.completed.end_to_end_duration) to catch snapshot latency creep.
  • Trigger a manual savepoint via Flink API prior to cluster maintenance.

Links

See How

New to Kestra?

Use blueprints to kickstart your first workflows.