Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add metrics for how many times a worker is marked as terminating
You could already run a query like this to get the number of worker threads synchronizing against the scheduler: buildbarn_builder_in_memory_build_queue_workers_created_total - sum(buildbarn_builder_in_memory_build_queue_workers_removed_total) without (state) That said, this expression does not show how many workers are actually usable for running actions, due to them already being marked as terminating. One may now use the following query to exclude workers that are terminating: buildbarn_builder_in_memory_build_queue_workers_created_total - buildbarn_builder_in_memory_build_queue_workers_terminating_total Relatedly, one can use the folllowing query to obtain the number of workers that are currently terminating: buildbarn_builder_in_memory_build_queue_workers_terminating_total - sum(buildbarn_builder_in_memory_build_queue_workers_removed_total) without (state)
- Loading branch information