IntelliOps

How it is built

Seven services in Rust talking over Redis Streams, a React console, Postgres for what must survive, and Kubernetes as the thing being repaired.

The services

ServiceJob
ingestionPolls Prometheus and accepts pushed events
correlationDetects anomalies and groups them into incidents
rcaProposes causes and ranks runbooks
actionRuns the checks, waits for approval, acts and verifies
governancePermissions, approvals, audit, runbook registry
feedbackLabels outcomes, graduates and demotes runbooks
readBuilds what the console shows, streamed live

Rebuilt from Python

Both versions were measured with one script on the same laptop, on fresh containers, twice each.

MeasurePythonRust
Most service images495 MiB42 to 54 MiB
Correlation and action images3,916 MiB42 and 54 MiB
RCA image495 MiB, without the model219 MiB, with it
Idle memory, seven services486 to 507 MiB111 MiB
Events accepted per second1,763 to 2,61718,282 to 20,000
Events through detection per second1,195 to 1,87710,235 to 10,241
Slowest 1% of ingest batches156 to 234 ms31 to 32 ms
Start-up to ready2.6 to 5.6 s1.8 to 5.4 s

Part of the throughput gain is publishing in batches, which Python could also have done. Start-up and the time from fault to incident did not meaningfully change. The multi-gigabyte Python images were mostly machine learning libraries.

What it cost

The first image build takes several minutes, there is no River or scikit-learn so the isolation forest was written by hand, and trying a new model is slower than in Python.

Keeping the behaviour

Before any Python was removed its behaviour was recorded, and the Rust tests replay it: 20,800 correlation operations, 9,000 detector samples, 2,500 remediation gate cases, 600 health checks, 3,015 permission matches and 400 diagnoses. The original is kept on the python-legacy branch.

Bugs the rebuild found

Open the repository