Event-Driven Automation and StackStorm
If-this-then-that for infrastructure. StackStorm sensors, triggers, rules, actions and Orquesta workflows, how the model compares to Event-Driven Ansible and to a Kubernetes operator, and the safety machinery that stops an automation storm from amplifying the incident it was meant to fix.
Overview
Event-driven automation, built on purpose
Every platform team eventually builds this by accident. An alert fires, someone reads a runbook, runs three commands and closes the incident; fifty times later somebody writes a script and wires it to the alert. This topic is about the machinery: the objects, the plumbing, and what separates automation that shortens outages from automation that causes them.
The machinery is a short chain. Something happens in the outside world: an alert fires, an audit event is written, a message lands on a queue. A sensor notices it and emits a trigger, which is a typed event. A rule checks the trigger against its criteria, and only if they match does it run an action or an Orquesta workflow. The action can read shared state from a key-value datastore that is encrypted and supports TTLs (time to live, after which a key expires). The run ends with a ChatOps message, a ticket and an audit record.
Key concepts
- Sensor
- Trigger and trigger instance
- Rule and criteria
- Action and runner
- Orquesta workflow
- Pack
- Datastore with TTL
- Action alias
Interview questions
- Walk me through everything that happens from an external alert to a completed automated remediation.
- A monitoring change causes a burst of two hundred correlated alerts. How do you make sure your automation does not turn that into a bigger outage?
- When would you build this as a Kubernetes operator instead, and when is an operator the wrong tool?
- Compare StackStorm, Event-Driven Ansible, and Rundeck. How do you pick?
- Design an auto-remediation for a disk-filling alert, end to end, including what you would refuse to automate.
- What has to be in the audit trail for automated remediation, and why does an interviewer care?
Sign up free to read the full topic
More DevOps topics
- DORA Metrics — Definitions, the Math, and How to Measure Them
- eBPF Observability
- eBPF Programming
- Ephemeral and Preview Environments
- etcd and the API Server — The Write Path, Raft, and Why 3 vs 5 Members Matters
- Event-Driven Architecture
- External Secrets Operator
- Feature Flags
- FinOps & Cloud Cost Engineering
- Firecracker microVMs
- Flux v2
- GCC Toolchain Internals
Start free on Cariara · Coding problems · System design studio