From 0087e0d899bc90257bcc429074768fa55787ac6c Mon Sep 17 00:00:00 2001 From: ansons Date: Thu, 29 Dec 2022 14:30:05 -0500 Subject: [PATCH] Increase autoscaling limits for freeform analyses --- .../java/com/conveyal/analysis/components/broker/Broker.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/conveyal/analysis/components/broker/Broker.java b/src/main/java/com/conveyal/analysis/components/broker/Broker.java index d8895e6e3..1eeb93641 100644 --- a/src/main/java/com/conveyal/analysis/components/broker/Broker.java +++ b/src/main/java/com/conveyal/analysis/components/broker/Broker.java @@ -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); }