FluxOS 8.25: Apps That Stay Put
In FluxOS 8.25, an app that has run on a node stays on that node, even if an update or redeploy fails halfway. That’s the change app owners will feel most in the release, which reached GitHub on 27 November, twelve days after 8.24. It also makes restores safer and holds nodes to real hardware. Several parts of it come straight from the FluxOS v9 design.
One manager per app
Every operation on an app now goes through that app’s own manager, one at a time: installs, removals, redeploys, backups, restores, and an owner’s start, stop or restart. A removal stops whatever is running at its next step. Long steps such as an image pull or an unpack check for that, so they can end mid-way instead of finishing work nobody wants. Different apps no longer wait for each other, and a node can bring several new apps up at once without promising more resources than it has.
The manager also changes what happens when something goes wrong. Before an update or a redeploy touches anything, FluxOS checks that the node can take the new specification. If it can’t, the app keeps running exactly as it is. If a component’s recreate does fail, and any part of the app has run on this node for at least a minute, the app is kept, that one component waits, and FluxOS retries it on its normal restart schedule. An update that now asks for a different kind of node, such as a static IP or a data centre, is handed back to the network so it can land somewhere that fits.
You’ll see the new manager at deploy time too. The test install that FluxCloud, Orbit and the games hub run before a deployment is now a clean test run. It starts your containers at 0.2 CPU and 300 MB of memory, judges each one as it comes up, and removes everything straight after, without writing an app record or opening a port. A container that exits tells you its exit code and its last log lines.
A restore that fails holds still
If a restore stops partway, the component’s data is neither the old version nor the new one. In 8.25, FluxOS keeps that component stopped and its synced folder receive-only, so half-restored data is never sent to the app’s other instances. The hold lifts when a restore succeeds, when the owner starts the component (which accepts the data as it is), or when the folder heals from a connected peer that holds good data. A new owner route, /apps/componentstates/<app>, shows for each component whether it’s running and, if not, why.
Real machines, measured fairly
A Flux node runs on its own hardware or in a virtual machine. FluxOS 8.25 can tell when it is running inside a container instead, and since 28 November the signed network policy holds such nodes out of service. A node in a container shares its host’s kernel and load, so its benchmark can’t measure it fairly. Keeping them out keeps rewards tied to real capacity. Bare metal, virtual machines and ArcaneOS nodes are unaffected, and only a small number of nodes are affected.
Smaller fixes, and groundwork
- Folders created by an upload take the owner of the folder they land in. A Minecraft modpack uploaded as folders now boots, where its 1,889 files used to arrive owned by root. Folders uploaded before 8.25 keep their old owner.
- The node’s web dashboard updates in one step, so it’s always a complete build, and
/flux/inforeports which release is installed. - Docker images that no container uses are removed at boot and about once a day, which gives disk space back on its own.
- Every short Docker request has a deadline, so a stuck Docker daemon can’t hold an app forever.
- A node waiting on its daemon asks for the next block every five seconds instead of as fast as it can.
/flux/peersnow marks which links are authenticated, the ArcaneOS links that 8.24’s quorum relies on.
Under the hood, 8.25 also carries the groundwork for running FluxOS on ArcaneOS as a signed, read-only image behind a front proxy. It stays switched off until new ArcaneOS images turn it on.
Most operators have nothing to do. If your node runs inside LXC, OpenVZ, systemd-nspawn, Docker or Podman, move it to bare metal or a virtual machine and restart FluxOS. If you keep your own Docker images on a node, expect unused ones to be cleaned up. The retired testnet and development settings are now ignored.
The 8.25 unit suite has more than 13,600 tests, and the release passed all 343 integration suites in its full gate. FluxOS updates itself on every node; the list of changes is in the FluxOS releases on GitHub.
Posted in Product Updates
by RunonFlux
Tags:
Comments
Leave a Reply
You must be logged in to post a comment.
