Snapshot Pages to the Wayback Machine After Deploy
Triggers a Wayback Machine save of a URL, verifies the snapshot landed, and alerts on failure.
Monitor Infinispan in-memory data grid health, partition rebalancing, node membership, and cache metrics with automated Slack incident response.
Continuously audits Infinispan in-memory data grid and distributed cache clusters by querying management REST endpoints, evaluating cluster partition health and topology rebalancing states, verifying minimum node quorum thresholds, and alerting incident response teams via Slack.
probe_cluster_health (io.kestra.plugin.core.http.Request) submits an authenticated HTTP GET request to the Infinispan cache manager health endpoint (/rest/v2/cache-managers/{manager}/health), pulling real-time metadata including cluster_name, health_status, number_of_nodes, and individual cache degradation states.probe_cache_stats (io.kestra.plugin.core.http.Request) queries the target cache metrics endpoint (/rest/v2/caches/{cache}/stats) to monitor live entry counts, off-heap memory consumption, and cache eviction pressures.classify_cluster_posture (io.kestra.plugin.core.debug.Return) evaluates response status codes and cluster telemetry using a declarative Pebble expression:CLUSTER_UNREACHABLE if endpoints cannot be reached over the network or return non-200 responses.CLUSTER_DEGRADED if the cluster health state indicates partition loss or node failure (DEGRADED).REBALANCING_IN_PROGRESS if partition rebalancing is actively migrating data across nodes (HEALTHY_REBALANCING).NODE_MEMBERSHIP_DEFICIT if active cluster nodes fall below the configured min_expected_nodes threshold.HEALTHY_OPTIMAL when all health checks and quorum thresholds succeed.route_by_posture (io.kestra.plugin.core.flow.Switch) branches execution based on the evaluated classification:HEALTHY_OPTIMAL: Dispatches an informational audit log with cluster topology, member names, and cache entry metrics.CLUSTER_DEGRADED: Dispatches a critical Slack alert highlighting degraded cache names and requesting immediate failover intervention.REBALANCING_IN_PROGRESS: Sends a warning Slack notification alerting engineering teams of active topology rebalancing.NODE_MEMBERSHIP_DEFICIT: Sends a Slack warning flagging missing cluster nodes before quorum is permanently lost.CLUSTER_UNREACHABLE: Posts an urgent incident alert indicating network partitions or container runtime crashes.audit_summary (io.kestra.plugin.core.output.OutputValues) exports structured metrics for downstream monitoring and compliance auditing.errors captures unexpected workflow execution failures and alerts on-call teams via Slack.Infinispan data grid failures are severe incidents that immediately cascade into dependent microservices, API gateways, and session stores. Standard port liveness checks are blind to internal cluster health transitions such as HEALTHY_REBALANCING or cache-level DEGRADED states. Kestra provides declarative, resilient multi-stage orchestration that probes cluster management APIs, validates quorum policies, isolates transient connection blips, dispatches formatted Slack alerts, and maintains auditable execution logs without managing brittle custom scripts.
INFINISPAN_PASSWORD: Password for the administrative user used to authenticate HTTP requests against the Infinispan REST API.SLACK_WEBHOOK_URL: Incoming Slack webhook URL used by alert_cluster_degraded_slack, alert_rebalancing_slack, alert_membership_deficit_slack, alert_unreachable_slack, and alert_workflow_failure.INFINISPAN_PASSWORD and SLACK_WEBHOOK_URL in your Kestra namespace secrets.docker run -d --name infinispan -p 11222:11222 -e USER="admin" -e PASS="adminPassword123!" infinispan/server:latest
infinispan_host: "localhost").classify_cluster_posture outputs HEALTHY_OPTIMAL and review the recorded metrics in audit_summary.scheduled_cluster_audit trigger to establish recurring health audits every 15 minutes.NODE_MEMBERSHIP_DEFICIT is detected.approximate_in_memory_bytes against configured quotas to warn before out-of-memory evictions occur.