Blog · 2026-10-19 · Gardience Engineering

Self-healing servers with event-driven automation

Restart a stopped service in seconds, warn before a disk fills, configure new machines the moment they join. How event-driven automation works with Salt's beacons and reactors, compared with Event-Driven Ansible and cron-style tools.

"Self-healing" usually means something modest and valuable: when a known thing breaks, fix it before a person has to. A service stops, so start it. A disk passes 90 percent, so warn someone while there is still time. A new machine appears, so give it its configuration. The question is how fast, and how safely.

Three ways to react

ApproachHow it noticesHow fast
Scheduled runs (cron, Puppet-style agent runs, nightly playbooks)It doesn't; it re-applies config on a timerMinutes to hours
Event-Driven AnsibleRulebooks listen to outside sources (monitoring alerts, webhooks, queues), then run playbooks that connect into the machineSeconds after the alert, plus the connection
Salt beacons and reactorsThe agent on the machine watches it and reports events over its open connection; the master reactsSeconds

Event-Driven Ansible is a real, supported product from Red Hat and a good fit if your monitoring already produces the events. Salt's model differs in one useful way: the machine is the sensor. You do not need a monitoring system to notice a stopped service first, and you do not need an inbound connection to fix it.

Doing it on Salt without writing YAML

Salt's beacons and reactors can do a lot, and they are fiddly to set up: beacon configuration in pillar, reactor files in Jinja, and the security question of trusting data that a minion sent. Gardience turns the common cases into event rules you set in the console, through the API, or with Terraform:

Every firing is recorded in the tamper-evident audit log. Events are checked before anything acts on them: an event is trusted only if it comes from the machine it names, names only plain values, and refers to a service an admin chose to watch.

Keep it safe

Automatic fixes are changes, so the same rules should apply as for people:

Questions

What is the difference between Event-Driven Ansible and Salt reactors?

Event-Driven Ansible listens to outside event sources and then runs playbooks that connect into machines. Salt beacons run on the machine itself and report events over the agent's existing connection, so the master can react without monitoring in between or an inbound connection.

Can Windows services be restarted automatically?

Yes. Service rules work on Windows and on Linux machines that use systemd.

Will a self-healing rule fight my maintenance work?

Not in Gardience: locked machines refuse automatic restarts, and join rules skip them.

Try Gardience on your own machines

One supported console for Windows and Linux on open-source Salt: patching, a scored STIG/CIS-aligned baseline, drift repair, event-driven automation, two-person approval and a tamper-evident audit log. Flat yearly pricing, not per node.

Free 90-day trial (25 nodes)See it work Compare

Salt is a trademark of its owner, Ansible is a trademark of Red Hat, Inc., and other names are trademarks of their owners. Gardience is independent and not affiliated with any of them.