Repository navigation
Add the build nodes pages - #614
Open
eabdullin1 wants to merge 1 commit into
Open
eabdullin1 wants to merge 1 commit into
eabdullin1 wants to merge 1 commit into
Conversation
eabdullin1
force-pushed
the
build-node-balancing
branch
from
November 25, 2026 12:31
5f77ba1 to
ab80c83
Compare
A "Build nodes" section for superusers to watch and manage the build nodes registered by the web server (/api/v1/build_nodes): - /build-nodes: a queue summary per arch (queued tasks, accepting nodes, busy/total slots of the nodes taking new tasks, tasks of nodes not in the registry yet), a table of nodes with status badges (disabled, maintenance, offline, drain, online), arches, slots and effective capacity, load per CPU, RAM used, free disk, version and last seen time, and an expandable row with the running tasks and the done/failed/excluded counters of the last 24 hours; - /build-nodes/:nodeId: the node details with its instance ID, host metrics, running and recent tasks and the 24 hours statistics; - host metrics above the thresholds are highlighted and stale ones greyed out, long running tasks are marked; - both pages refresh every 15 seconds while the tab is visible and can be refreshed by hand. Drain/undrain, enable/disable and the manual slot limit are applied with PATCH and ask for a confirmation where needed. The limit dialog follows the server rule: a limit only lowers the reported slots, and a node that reports no slots gets one slot unless the limit says otherwise; a limit of 0 asks for a separate confirmation. An action goes to the node its dialog was opened for: the table rows are keyed by node, the list is not refreshed while a dialog or its request is open, and the node id and name are fixed when the dialog opens; if the component is handed another node anyway, the dialog is closed and nothing is sent. The menu link and the routes are for superusers only, like the Administration section: the routes refresh isAdmin from the server and send other users to the build feed, and /users uses the same guard. A 401 or a 403 turns the auto-refresh off and is shown in a banner, a 404 tells that the API is not deployed, and the FastAPI 422 details are shown as messages. API datetimes without a timezone are read as UTC. The Version column is the albs-node commit the node runs, the first 12 characters of the git hash, and the pages say so; nodes without a version run an older albs-node or are not deployed from a git clone. The pure helpers and the node actions are covered by unit tests on the built-in Node.js test runner (npm test); the actions are mounted with a renderer of Vue that needs no DOM. A small loader hook loads src/ as ES modules, so the tests also run on the Node.js 16 of the Docker image.
eabdullin1
force-pushed
the
build-node-balancing
branch
from
December 2, 2026 19:45
ab80c83 to
e51d000
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A "Build nodes" section for superusers to watch and manage the build nodes registered by the web server (/api/v1/build_nodes):
Drain/undrain, enable/disable and the manual slot limit are applied with PATCH and ask for a confirmation where needed. The limit dialog follows the server rule: a limit only lowers the reported slots, and a node that reports no slots gets one slot unless the limit says otherwise; a limit of 0 asks for a separate confirmation. An action goes to the node its dialog was opened for: the table rows are keyed by node, the list is not refreshed while a dialog or its request is open, and the node id and name are fixed when the dialog opens; if the component is handed another node anyway, the dialog is closed and nothing is sent.
The menu link and the routes are for superusers only, like the Administration section: the routes refresh isAdmin from the server and send other users to the build feed, and /users uses the same guard. A 401 or a 403 turns the auto-refresh off and is shown in a banner, a 404 tells that the API is not deployed, and the FastAPI 422 details are shown as messages. API datetimes without a timezone are read as UTC.
The Version column is the albs-node commit the node runs, the first 12 characters of the git hash, and the pages say so; nodes without a version run an older albs-node or are not deployed from a git clone.
The pure helpers and the node actions are covered by unit tests on the built-in Node.js test runner (npm test); the actions are mounted with a renderer of Vue that needs no DOM. A small loader hook loads src/ as ES modules, so the tests also run on the Node.js 16 of the Docker image.