Repository navigation
Enable operators to pause/unpause web components - #9544
Merged
Merged
Conversation
Signed-off-by: Taylor Silva <[email protected]>
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]>
Signed-off-by: Taylor Silva <[email protected]>
Signed-off-by: Taylor Silva <[email protected]>
Signed-off-by: Taylor Silva <[email protected]>
Signed-off-by: Taylor Silva <[email protected]>
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.
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:
This PR adds some fly commands that only admins (Owner role on
mainteam) can use to manage components. The new commands are:fly get-components- Prints all components, showing when they last run, their interval, and paused statusfly [pause/unpause]-component- Allows operators to pause/unpause one or more components. Can specify a--nameflag one or more times. Has a--all,--runtime-components, and--gc-componentflags for convenience.In #6820 (comment) a concern was raised about how to inform operators about what each component does. I added the
--[runtime/gc]-componentsflags 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.