Script icon
Docker icon
If icon
SlackIncomingWebhook icon
Log icon
Return icon
Schedule icon

Garage Object Storage Cluster Ring Sync and Disk Healing Sentinel

Audits Garage distributed object storage metrics to detect cluster ring sync stalls, resync lag, and disk healing errors.

Categories
CloudInfrastructure

Automates continuous health and durability surveillance for Garage geo-replicated distributed object storage clusters.

How it works

  1. A schedule trigger executes the Garage object storage audit workflow every 15 minutes.
  2. The Python task queries the Garage administration endpoint on port 3903 to parse Prometheus telemetry.
  3. The script extracts healthy and disconnected node counts, partition resync queue lengths, and physical disk I/O errors.
  4. An evaluation gate determines whether resync queue backlogs or disconnected nodes breach operational tolerance bounds.
  5. When thresholds are breached, a high-priority Slack alert is dispatched to storage engineering and cluster SREs.
  6. When partition replication proceeds cleanly with full quorum, nominal telemetry is logged.
  7. A structured JSON audit manifest is emitted for storage reliability records and compliance capacity archives.

Architecture diagram

graph TD
    Trigger[Schedule Trigger: 15m] --> ScanMetrics[Python Script: Scrape Garage Admin Metrics]
    ScanMetrics --> EvalBreach{Resync Queue > Threshold OR Unhealthy Nodes > 1?}
    EvalBreach -- Yes --> SlackAlert[Slack: High-Urgency Storage Alert]
    EvalBreach -- No --> LogNominal[Log: Nominal Storage State]
    SlackAlert --> EmitManifest[Debug Return: Garage Audit Manifest]
    LogNominal --> EmitManifest

Architecture components

  • Trigger: Automated schedule polling at 15-minute intervals.
  • Script Task: Scrapes Garage administration telemetry endpoints using Docker container isolation.
  • Decision Gate: Evaluates whether partition resync backlog or node disconnects exceed durability safety limits.
  • Notification Task: Dispatches structured Slack alerts with cluster identity and queue counts.
  • Audit Manifest: Emits JSON execution payloads containing object storage durability health and timestamps.

Key capabilities

  • Continuous surveillance of Garage cluster ring partition synchronization and inter-node peer connectivity.
  • Rapid detection of physical disk I/O errors and local LMDB metadata store degradation.
  • Automated tracking of background partition resync queue length during cluster rebalancing.
  • Zero external dependency execution via isolated containerized Python runners.

What you get

  • Preemptive alerting on distributed storage replication stalls before object read/write quorum is lost.
  • Automated tracking of sector corruption and physical NVMe read/write errors on underlying storage volumes.
  • Real-time audit manifests capturing object storage cluster health for SOC 2 data durability compliance.
  • Configurable tolerance thresholds adaptable to edge PoP and multi-datacenter storage deployments.

Who it's for

  • Storage SREs operating self-hosted, lightweight distributed S3-compatible object storage across edge or multi-DC environments.
  • Infrastructure Operations teams safeguarding backup data archives against silent replication stalls.
  • Edge Computing Architects deploying localized object storage clusters with intermittent network partitions.
  • Compliance Officers requiring continuous verification of object replication quorum and data durability.

Why orchestrate this with Kestra

  • Deterministic Scheduling: Guarantees regular storage durability audits without fragile local crontab scripts.
  • Containerized Runners: Runs Python tasks inside isolated Docker containers without host library dependencies.
  • Condition Branching: Flowable If tasks route alerts and nominal logging cleanly without spaghetti code.
  • Enterprise Secret Safety: Securely injects Slack webhook credentials without plain-text exposure.

Use cases

  • Cluster Ring Partition Sync Alerting: Alerts operators when network splits prevent nodes from syncing partition tables.
  • Disk Healing Backlog Detection: Identifies when disk replacement triggers sustained resync queues that impact throughput.
  • Hardware Storage Failure Detection: Detects sector errors and read/write failures on underlying storage volumes.
  • Continuous Data Durability Auditing: Emits periodic manifests proving full replication across distributed zones.

Inputs

Name Type Default Description
garage_admin_api_url STRING http://garage-admin.storage.svc.cluster.local:3903 Base HTTP URL exposing Garage admin metrics.
storage_cluster STRING production-garage-cluster Target Garage distributed storage cluster identifier.
max_resync_queue_threshold INT 100 Max allowable pending partition block resync queue size.
max_unhealthy_nodes_threshold INT 1 Max allowable disconnected nodes before escalating.
alert_on_any_unhealthy_node BOOL false Whether any single disconnected node triggers an alert.

Expected outputs

  • {{ outputs.scan_garage_storage_telemetry.vars.total_nodes_count }}: Total cluster nodes evaluated in the ring.
  • {{ outputs.scan_garage_storage_telemetry.vars.unhealthy_nodes_count }}: Count of unreachable or disconnected nodes.
  • {{ outputs.scan_garage_storage_telemetry.vars.resync_queue_len }}: Number of blocks queued for inter-node resynchronization.
  • {{ outputs.scan_garage_storage_telemetry.vars.disk_errors_total }}: Total physical disk I/O errors reported.
  • {{ outputs.scan_garage_storage_telemetry.vars.is_alerting }}: Boolean flag indicating durability threshold violation.
  • {{ outputs.emit_audit_manifest.value }}: Structured JSON audit manifest emitted for compliance archives.

Prerequisites

  • Garage daemon deployed with admin API and metrics endpoint enabled on port 3903.
  • Metrics port reachable from the Kestra worker execution environment.
  • Docker daemon running on the Kestra host to execute containerized Python tasks.

Secrets

  • SLACK_WEBHOOK_URL: Incoming webhook URL for the target Storage SRE Slack alerting channel.

Quick start

  1. Ensure Garage admin service exposes port 3903 for Prometheus metrics scraping.
  2. Configure the SLACK_WEBHOOK_URL secret in your Kestra namespace settings.
  3. Specify your storage cluster identifier in storage_cluster.
  4. Execute a manual test run via the Kestra UI to verify metric ingestion.
  5. Enable the periodic_garage_audit trigger to establish automated continuous surveillance.

Common pitfalls and troubleshooting

  • Admin Token Authentication: If Garage admin API requires a bearer token, include the Authorization header in scraper requests.
  • Port Exposure: Ensure port 3903 is accessible across Kubernetes namespaces via proper NetworkPolicy definitions.
  • Network Flapping Between Zones: Temporary inter-region latency spikes can cause transient node disconnects; adjust thresholds.
  • LMDB Corruptions: High disk error counts often indicate underlying filesystem or physical NVMe wear; check node kernel logs.

How to extend

  • Automated Layout Rebalance: Trigger a garage layout apply task to rebalance ring topology after permanent node eviction.
  • Object Roundtrip Probe: Chain an S3 put/get object verification task during sentinel executions.
  • PagerDuty Escalation: Escalate to on-call storage engineers if unreachable nodes exceed 2 in 15 minutes.

Links

See How

New to Kestra?

Use blueprints to kickstart your first workflows.