Repository navigation
Manage the risk worker pool from Jobs & Infrastructure - #320
Merged
Merged
Conversation
Signed-off-by: zerodrift <zerodrift@users.noreply.github.com>
Signed-off-by: zerodrift <zerodrift@users.noreply.github.com>
Signed-off-by: zerodrift <zerodrift@users.noreply.github.com>
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.
Worker pool
Jobs & Infrastructure can request one or two replicas of an installation-registered risk worker service, drain the pool to zero, show worker heartbeats and read recent worker app logs or Swarm node events. Installations assign the new scale and diagnostics permissions to their own roles. Scaling also requires current installation operator registration.
Each replica claims a complete job through the existing PostgreSQL queue. The controller checks the approved service specification and uses Docker's service version to reconcile a lost update response. A digest-pinned service template sets one replica per eligible node, one CPU and 2 GiB per worker.
Verification
Deployment gate
The qualification uses a simulated manager transport and task inventory. A two-node Swarm exercise is still required to verify actual placement, networking, resource enforcement, restart and retirement. The work distributes independent jobs. Partitioning a single VaR calculation across replicas remains separate work.