Skip to content

Enable operators to pause/unpause web components - #9544

Merged
taylorsilva merged 7 commits into
masterfrom
component-commands
Apr 23, 2026
Merged

taylorsilva merged 7 commits into
masterfrom
component-commands

Conversation

@taylorsilva

@taylorsilva taylorsilva commented Apr 22, 2026 •

Copy link
Copy Markdown
Member

Changes proposed by this PR

Implements #6820

Internally on Concourse web nodes, everything runs as a "component". The build tracker, scheduler, garbage collection, etc., are all made up of multiple "components". It's always been technically possible to pause components, but the only way was to go into the database and run:

UPDATE components
SET paused = true;

This PR adds some fly commands that only admins (Owner role on main team) can use to manage components. The new commands are:

  • fly get-components - Prints all components, showing when they last run, their interval, and paused status
  • fly [pause/unpause]-component - Allows operators to pause/unpause one or more components. Can specify a --name flag one or more times. Has a --all, --runtime-components, and --gc-component flags for convenience.

In #6820 (comment) a concern was raised about how to inform operators about what each component does. I added the --[runtime/gc]-components flags since these will probably be the main components someone would want to pause. We can also document some of this in the docs.

Pausing everything also shouldn't be an issue. As noted in that issue, any builds currently running will finish running, new one just won't be started.

Focused on adding the Pause/Unpause stuff right now. In the future we
could also enable operators to set the interval for individual
components as well, though we'll have to think about how this interacts
with the existing env vars that set some of those intervals already.

Signed-off-by: Taylor Silva <[email protected]>
Signed-off-by: Taylor Silva <[email protected]>
@taylorsilva
taylorsilva requested a review from a team April 22, 2026 21:05
@taylorsilva taylorsilva added this to the v8.2.0 milestone Apr 22, 2026
@taylorsilva
taylorsilva merged commit 94329ae into master Apr 23, 2026
12 checks passed
@taylorsilva
taylorsilva deleted the component-commands branch April 23, 2026 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant