Update queue.ts

This commit is contained in:
Nicolas 2024-08-23 22:07:49 -03:00
parent b23bf2eef9
commit 28d7a637c2

View File

@ -115,7 +115,8 @@ export async function autoscalerController(req: Request, res: Response) {
let targetMachineCount = activeMachines;
const baseScaleUp = 10;
const baseScaleDown = 5;
// Slow scale down
const baseScaleDown = 2;
// Scale up logic
if (webScraperActive > 9000 || waitingAndPriorityCount > 2000) {