Skip to content

Repair playbooks

Reflex includes built-in self-healing playbooks that detect and resolve common production incidents automatically — without waking your team.

How playbooks work

  1. The Reflex agent continuously monitors your server's health metrics, logs, and process states
  2. When an incident is detected, the matching playbook executes automatically
  3. A health check confirms the fix was successful
  4. You receive a detailed incident report with the timeline, root cause, and actions taken

Every step is logged and auditable — you always know exactly what happened and when.

Available playbooks

PHP & Laravel

PlaybookWhat it monitors
PHP-FPM OOM recoveryMemory exhaustion in PHP-FPM workers
PHP-FPM pool exhaustionAll workers busy, requests queuing
Laravel queue deathQueue workers stopped processing
Horizon crash recoveryLaravel Horizon supervisor failures

Web server

PlaybookWhat it monitors
Nginx 502 Bad GatewayUpstream services not responding
Nginx config failureConfiguration syntax errors after changes
SSL certificate expiryCertificates approaching expiry

Database

PlaybookWhat it monitors
MySQL connection stormConnection count spikes
MySQL slow query spikeSlow query rate exceeding baseline
Redis memory pressureMemory exceeding safe thresholds

System

PlaybookWhat it monitors
Disk full emergencyDisk usage approaching capacity
High load averageSustained high CPU load
Cron job failureScheduled tasks failing

Node.js / Python

PlaybookWhat it monitors
PM2 process crashPM2-managed processes entering error state
Gunicorn worker timeoutWorkers not responding

Enabling playbooks

Each playbook can be enabled or disabled per server in the dashboard under Server → Playbooks. Trigger thresholds and cooldown periods are configurable to match your environment.

Notifications

Configure who gets notified when a playbook executes:

  • Slack — Post to a specific channel
  • PagerDuty — Escalate to on-call
  • Email — Send to team members
  • Webhook — Fire a custom webhook

Incident reports

Every playbook execution generates a detailed incident report in the dashboard, including trigger conditions, timing, diagnostic output, and resolution confirmation.

© Reflex by ExpertWeb. All rights reserved.