How a rollout works
Push a change to every collector at once and you find out it was wrong from every collector at once. Armatta takes a config, a package or a key to a fleet's agents in waves: one of each kind first, then twice as many after each clean wave, and it stops by itself when too many fail.
Gradual rollouts with built-in failure detection
Cohorts
Armatta groups the agents a rollout moves by fleet, OS, architecture, collector version and role label. Each cohort moves on its own, so a problem only one kind of agent has shows up early, and only in that cohort.
Start small, then expand each successful wave
The first wave takes one agent from each cohort. Each time a cohort comes through a wave clean, its next wave is twice as large. Agents are picked from those connected now.
Verify collector health before continuing
An agent counts as done only when it reports the change applied and then stays healthy for the soak time: 30 seconds unless the server or the rollout sets another.
Control how many collectors update at once
However large a wave is, no more than a set number of a fleet's agents change at once. By default that is a tenth of the fleet's agents that have the config or package, and at least one.
One change at a time
Only one rollout at a time has a given agent in flight, so when something fails there is one change to look at.
Offline collectors won't block a rollout
Armatta measures a rollout over the agents that are connected. An offline one counts as pending, and when it comes back it is moved under the same limits as the rest.
Validate on stage collectors first
Stage collectors
Mark a few of a fleet's agents as its stage collectors. Until a version is verified for the fleet, they are the only ones that get it.
Approve the rest of the fleet
Once the connected stage collectors have applied the change and stayed healthy, with none failed, someone with the operator role or higher on the fleet verifies it, and the rest of the fleet gets it in waves. Armatta refuses while any reason against it stands.
Approved once per version
Armatta keeps the verification for the fleet and the version, with who gave it and when, and does not ask again for that version.
What happens when collectors fail
A failure pauses only its cohort
An agent that rejects the change, turns unhealthy after it, or gives no result within the timeout, five minutes by default, pauses its cohort. The other cohorts carry on.
A halt at the failure limit
When a fleet has as many failed agents as the limit, three by default, the rollout takes no more of it. That fleet's part halts, and an alert names each agent that failed and what it reported.
Failures stay in their fleet
Agents of one fleet can slow or halt only that fleet's part. The other fleets carry on.
Rolling back
Config rollback in waves
To roll back a config, Armatta runs a rollout to the version the fleet came from, through the same waves, limits and halts.
Reverting a package
To revert a package update, roll out the previous version again or recall the release. Downgrades must be explicitly allowed on the host, and ase install does not allow them.
Automatic recovery when an upgrade fails
Each host keeps the previous collector or supervisor version beside the new one. If the new one is not confirmed within five minutes, or fails three times first, the watchdog restores the previous version and the rollout counts it as a failure.
Rotating a fleet's key without touching a host
A new key, in waves
A fleet admin starts a key rotation from the server. Each agent is offered the new key as OpAMP connection settings, through the same cohorts, waves and halt on failures as a config. A key has no stage step.
Tried before it is used
The supervisor tries the new key on a second connection and switches only if that connects. A bad offer changes nothing on the host. No offer can move an agent off TLS, lower its minimum TLS version or turn off certificate checks: the supervisor refuses one that would, without trying it.
No reinstall
A host installed with ase install takes the new key by itself. Nothing is reinstalled, and no one edits the host's config file. An agent that cannot take connection settings stays on its old key.
The old key works until the fleet has moved
The old key keeps working until the rotation is closed, and an agent that was away is offered the new key when it comes back. Closing the rotation can then revoke the old key.
What a rotation does not change
Only the fleet's key is rotated from the server. Client certificates, the CA and the endpoint are not. A key that has leaked is not rotated away from: make a new key, put it on the hosts you trust, and revoke the leaked one.
Take control of your collector fleet.
Early access is available for teams managing OpenTelemetry collectors on Linux. We'd like to hear what you're running and the challenges you're trying to solve.
Request early access