Clear Pulsar backlogs held by subscriptions nobody consumes
Detect Apache Pulsar subscriptions with no consumers that still pin a large backlog, then clear or remove them behind a dry run, an approval pause and a live re-read that fails the run.
Audit TiDB TiKV Raft region peer states, detect offline or lagging replicas, alert Slack on quorum risks, and inspect storage node health.
TiDB is an open-source, distributed Hybrid Transactional and Analytical Processing (HTAP) database powered by the TiKV distributed key-value storage engine. In TiDB, all table data and secondary indexes are partitioned into dynamic continuous ranges called Raft Regions, which are replicated across multiple TiKV storage nodes via Multi-Raft consensus. When a storage node experiences hardware failure, disk I/O stall, network partitioning, or ungraceful shutdown, region replicas enter DOWN or PENDING states. If offline peers exceed fault tolerance intervals or multiple peers in the same region fail, Raft quorum is compromised, resulting in partition unavailability, transaction write stalls, and potential data loss. This blueprint provides automated surveillance over information_schema.tikv_region_peers and information_schema.tikv_region_status, classifies peer replication health, escalates incidents to Slack, and correlates offline replicas with degraded TiKV store daemons.
every_fifteen_minutes) initiates diagnostic health verification every 15 minutes, with manual runs supported via customizable inputs.probe_degraded_region_peers) connects to TiDB over the MySQL wire protocol (port 4000) via io.kestra.plugin.jdbc.mysql.Query and inspects information_schema.tikv_region_peers joined with information_schema.tikv_region_status for any peers in DOWN or PENDING states.down_seconds_threshold (CRITICAL), if peers are temporarily pending/lagging (WARNING), if all peers are healthy (HEALTHY), or if the database connection failed (PROBE_FAILED).route_by_cluster_health) switches execution along dedicated paths according to the classified severity.CRITICAL or WARNING states, structured Slack incident cards notify operations channels with impacted cluster endpoints, degraded peer counts, and affected table scopes.inspect_offline_stores is enabled, query_offline_stores interrogates information_schema.tikv_store_status to identify specific storage node addresses that have fallen out of the Up state.PROBE_FAILED, dedicated alerts notify administrators of unreachable ports or authentication failures.log_audit_summary) writes execution metadata and evaluated region counts to task logs.PENDING) from severe node failure (DOWN).information_schema.tikv_region_peers, information_schema.tikv_region_status, and information_schema.tikv_store_status.TIDB_USERNAME: Username for authenticating to the TiDB MySQL wire interface (e.g. root or monitoring user).TIDB_PASSWORD: Password for the TiDB database user.SLACK_WEBHOOK_URL: Incoming webhook URL for posting incident cards to Slack.TIDB_USERNAME, TIDB_PASSWORD, and SLACK_WEBHOOK_URL in your Kestra namespace secrets.information_schema.tikv_region_peers.every_fifteen_minutes schedule trigger to activate automated continuous monitoring.io.kestra.plugin.pagerduty.notifications.PagerDutyAlert for immediate on-call dispatch during persistent storage store loss.information_schema.tiflash_replica to verify columnar analytical replica synchronization freshness.