Commands icon
If icon
SlackIncomingWebhook icon
Schedule icon

Apache Pinot Real-Time Segment Consumption Delay Sentinel

Audits Apache Pinot controller and broker endpoints to detect consuming segment lag in real-time tables.

Categories
DataInfrastructure

How it works

This workflow connects to the Apache Pinot controller REST API (/tables/{tableName}/externalview) to inspect Helix segment routing and real-time ingestion state. For real-time tables reading from Kafka or Apache Pulsar, segments transition from CONSUMING to ONLINE once commit thresholds (row count or time duration) are reached. If consumers hang, offsets stall, or server partitions encounter unhandled errors, segments remain in CONSUMING state or transition into ERROR. This sentinel tallies segment states and triggers an incident alert if abnormal lag is detected.

What you get

  • Real-time health monitoring of Apache Pinot streaming ingestion.
  • Detection of stuck consuming segments and Helix partition errors.
  • Context-rich Slack alerts detailing consuming and error counts.

Who it's for

  • Real-time analytics engineers managing low-latency OLAP on Apache Pinot.
  • Platform engineers operating Kafka-to-Pinot ingestion pipelines.
  • SREs maintaining Helix and Zookeeper cluster orchestration.

Why orchestrate this with Kestra

  • Continuous Telemetry: Audits high-velocity OLAP systems without requiring custom daemons.
  • Unified Alerting: Bridges real-time database state with Slack, Discord, and incident responders.
  • Automated Operations: Allows triggering segment commit calls or restarting lagging server instances.

Prerequisites

  • Running Apache Pinot cluster with accessible controller port (9000).
  • Pinot real-time table name.
  • Secret SLACK_WEBHOOK configured in Kestra.

Quick start

  1. Import this blueprint into Kestra.
  2. Add SLACK_WEBHOOK to your namespace secrets.
  3. Specify pinot_controller_url and target table_name.
  4. Enable the schedule trigger to commence automatic audits.

How to extend

  • Execute a Helix rebalance command via REST API when segment imbalance occurs.
  • Add partition-level lag inspection by querying broker debug endpoints.
  • Correlate with Kafka consumer group lag using Kestra's Kafka sentinel blueprints.

Links

See How

New to Kestra?

Use blueprints to kickstart your first workflows.