FluxOS 8.22: Nodes That Know Their Own Health
Fluxers! FluxOS 8.22 is live across the network. Where 8.21 made single-writer apps hand over cleanly, 8.22 is about the machine underneath: every node now checks its own health, from its database to its kernel to its UDP ports, and steps aside on its own the moment it can no longer serve apps well. Apps land only on nodes that can really run them, and their data stays intact through every handover. In numbers: 11 merged pull requests, 250 files and close to 30,000 lines, most of them tests.
A node that knows when its host is unwell
A node is only as healthy as the machine it runs on. FluxOS 8.22 keeps watch over the services every app depends on (the database, Docker, file sync, the Flux daemon and the benchmark service) and notices when the host holds one of them still.
- Early caution. One stalled reading of five minutes and the node stops taking new apps, while the ones it runs carry on.
- A clean exit. If the stall lasts half an hour, the node takes itself out of service and stops every app at once, so the network places them on healthy machines instead of waiting on a frozen one.
- Every app in its own slice. Each app’s containers now live in their own systemd slice, which gives FluxOS a reliable way to stop exactly that app, and gives apps an equal share of the machine under heavy load.
Database calls that always end
Every node keeps the network’s app registry in its own database, and 8.22 makes every call to it bounded. A call that cannot finish ends with a clear error, and an error never decides anything: a failed read is never taken to mean “no apps” or “no locations”, and no database error ever uninstalls an app or touches its data. A node whose database keeps timing out pauses new installs until it recovers, and at boot a node waits for its database before it serves anything at all.
Single-writer apps, whole and intact
The single-writer (g:) work from 8.21 continues. In 8.22 the elected primary runs every single-writer component of an app, not only the first, so a multi-component app moves as one. When a primary goes quiet and then fails, its standby takes over with the data intact: a change that exists on only one machine is always kept, never reverted, and a cold start seeds every folder from a single node that is known to hold it.
Ports proven over UDP
Game servers, voice and VPNs talk UDP. Before an app installs, FluxOS has long proven that its ports are reachable over TCP. Now it proves UDP too, with a per-test token sent to a UDP test server and checked on return. A node whose router forwards only TCP is not given UDP apps, and /flux/health reports a new udp check. The TCP check is sharper as well: a port now counts only when this node itself answers on it.
Full speed for game servers
Game servers from the Flux games hub are now never CPU-throttled. The list of servers that qualify is a signed network policy document, already published, so every node applies it the same way. A server still gets exactly the resources its plan reserves, and now it always gets all of them, even in the busiest moments of a match.
Better at home routers
Many FluxNodes run on home connections behind UPnP routers. 8.22 moves to @runonflux/nat-upnp 2.0.5, with TP-Link keep-alive, IPv6-first discovery and cleanup that understands FRITZ!Box descriptions. A node whose router table is full now keeps running on the mappings it already holds. On the lab and incident nodes behind one popular TP-Link model, all eight now verify and run cleanly.
Seniority that sticks
Each node now keeps its own record of when it took each app. Seniority among an app’s holders no longer resets when a location row lapses, so the network’s choice of which instances to keep stays steady. App announcements are judged entry by entry, and app names and owners are validated wherever a specification arrives.
Tested like infrastructure
Every pull request in 8.22 adds integration suites that fail on the code without its fix. The release gate ran 234 harness suites with 234 passing, beside close to 10,000 passing unit tests. The harness boots whole simulated networks, stalls their hosts, times out their databases and blocks their UDP, and checks that every node reaches the right verdict.
Get it
FluxOS updates itself on every node, and 8.22 is already running across the network. The full list of changes is in the FluxOS releases on GitHub, and the previous release is covered in FluxOS 8.21.
Posted in Product Updates
by RunonFlux
Tags:
Comments
Leave a Reply
You must be logged in to post a comment.
