Skip to content

Commit

Permalink
Log when spot instance request is reduced
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Byrd <[email protected]>
  • Loading branch information
ansoncfit and abyrd authored Sep 21, 2022
1 parent 4474fac commit d41ae5b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ public void createWorkersInCategory (WorkerCategory category, WorkerTags workerT
// configured maximum
if (workerCatalog.totalWorkerCount() * 2 > config.maxWorkers()) {
nSpot = Math.min(nSpot, (config.maxWorkers() - workerCatalog.totalWorkerCount()) / 2);
LOG.info("Worker pool over half of maximum size. Number of new spot instances set to {}", nSpot);
}

if (workerCatalog.totalWorkerCount() + nOnDemand + nSpot >= config.maxWorkers()) {
Expand Down

0 comments on commit d41ae5b

Please sign in to comment.