Apache Pulsar Topic Compaction Backlog and Retention Guard
Audit Apache Pulsar key-value changelog topics for uncompacted ledger bloat, trigger on-demand compaction, and verify convergence.
Audit Vitess SHOW VITESS_TABLETS for non-serving primary and replica tablets, dispatch Slack incident alerts, and correlate shard topology.
Vitess is a cloud-native database clustering system designed for horizontal scaling and sharding of MySQL. Traffic routing, connection pooling, and cross-shard query aggregation are handled by stateless VTGate proxy servers, which direct SQL operations to backend VTTablet management daemons. In production, host hardware crashes, network partitioning between VTGate and cell topologies, pod evictions during Kubernetes rolling updates, or failed emergency reparenting (VTOrc failover) can leave tablets in a NOT_SERVING state. When a primary tablet ceases serving, VTGate cannot route writes to that shard partition, causing immediate application query errors and transaction rollbacks. This blueprint provides automated continuous surveillance over SHOW VITESS_TABLETS, differentiates primary write outages from replica read degradations, alerts engineering teams via Slack, and audits SHOW VITESS_SHARDS topology layouts during cluster degradation.
every_fifteen_minutes) initiates diagnostic health verification every 15 minutes, with manual runs supported via customizable inputs.probe_vitess_tablets) connects to the Vitess VTGate proxy over the MySQL wire protocol (port 15306) via io.kestra.plugin.jdbc.mysql.Query and executes SHOW VITESS_TABLETS; to inspect all registered cluster tablets.NOT_SERVING state (CRITICAL), if replica or read-only tablets are degraded (WARNING), if all tablets are serving (HEALTHY), or if the VTGate connection failed (PROBE_FAILED).route_by_tablet_health) switches execution along dedicated paths according to the classified severity.CRITICAL or WARNING states, structured Slack incident cards notify operations channels with impacted gateway endpoints, tablet counts, severity classifications, and targeted keyspaces.audit_shard_topology is enabled, query_vitess_shards executes SHOW VITESS_SHARDS; to capture the shard partitioning boundaries and primary assignments across the affected keyspace.PROBE_FAILED, dedicated alerts notify administrators of unreachable proxy ports or authentication failures.log_audit_summary) writes execution metadata and evaluated tablet counts to task logs.SHOW VITESS_TABLETS and SHOW VITESS_SHARDS via VTGate.VITESS_USERNAME: Username for authenticating to the Vitess VTGate MySQL interface.VITESS_PASSWORD: Password for the Vitess database user.SLACK_WEBHOOK_URL: Incoming webhook URL for posting incident cards to Slack.VITESS_USERNAME, VITESS_PASSWORD, and SLACK_WEBHOOK_URL in your Kestra namespace secrets.SHOW VITESS_TABLETS.every_fifteen_minutes schedule trigger to activate automated continuous monitoring.SHOW VITESS_REPLICATION_STATUS; checks to detect replication lag and throttler delays across replica tablets.io.kestra.plugin.pagerduty.notifications.PagerDutyAlert for immediate on-call escalation during primary shard dropouts.