Skip to content

Commit

Permalink
Merge pull request #850 from conveyal/autoscaling-limits
Browse files Browse the repository at this point in the history
Increase autoscaling limits for freeform analyses
  • Loading branch information
abyrd authored Feb 2, 2023
2 parents f36dec3 + 1777a05 commit 4433f1d
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -530,8 +530,9 @@ private void requestExtraWorkersIfAppropriate(Job job) {

// Do not exceed the limit on workers per category TODO add similar limit per accessGroup or user
targetWorkerTotal = Math.min(targetWorkerTotal, MAX_WORKERS_PER_CATEGORY);
// Guardrail until freeform pointsets are tested more thoroughly
if (job.templateTask.originPointSet != null) targetWorkerTotal = Math.min(targetWorkerTotal, 5);
// Guardrails until freeform pointsets are tested more thoroughly
if (job.templateTask.originPointSet != null) targetWorkerTotal = Math.min(targetWorkerTotal, 80);
if (job.templateTask.includePathResults) targetWorkerTotal = Math.min(targetWorkerTotal, 20);
int nSpot = targetWorkerTotal - categoryWorkersAlreadyRunning;
createWorkersInCategory(job.workerCategory, job.workerTags, 0, nSpot);
}
Expand Down

0 comments on commit 4433f1d

Please sign in to comment.