Skip to content

Allow an operator to pause periodic goroutines (radar, scheduling, etc) on the ATC #2473

Closed

Description

@topherbullock

ATCCommand is really just a bag of Ifrit-managed goroutines, some of which are run periodically (eg. GC, Scheduling, Radar) and some which are kept up (eg API & Web servers).

As an operator (especially when there's a fire), it would be nice to be able to turn off internal components of the ATC, so that the system can be recovered. Often operators are left doing some manual surgery to the DB while rolling their workers and chanting incantations hoping their users' pipelines don't all come crashing down. It would be nice if an operator could disable things like scheduling ( so that no new builds are created ), or radar ( so that all resource checking is paused )

This would work really well in conjunction with #2290

Caveats / Wild Thoughts

  • How do we surface this to end users of the cluster? (for now, maybe we don't)
  • Should there be kill-switches per-pipeline for scheduling, or just one big lever ?
  • Should this be on an internal debug endpoint similar to the pprof stuff?
  • Everything is constructed in the atccmd package currently, so we'll need to figure out how to stop those ifrit.Runners and respawn them while keeping the dependencies passed in originally (db connection, metrics and logging mostly). There could be one big periodic goroutine spawner which ensures each component which isn't enabled is up, and an endpoint to enable/disable them.
  • Should each of these things just be separate microservices so they're easier to digest?

Activity

  1. jamieklassen commented on Oct 30, 2019

    @jamieklassen

    #4583 opens up some possibilities here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions