From 05d22959a4bd125f3b0f7c0d6c5e8312d72362f9 Mon Sep 17 00:00:00 2001 From: x1e9 <75582606+x1e9@users.noreply.github.com> Date: Fri, 30 Sep 2022 14:31:48 +0200 Subject: [PATCH] Prevent Marathon to scale down instances to zero (#62) When : - a deployment is stuck in an unsuccessful state (constraint impossible to satisfy) - maximumOverCapacity is used - a new deployment has been requested and cancelled The periodic scale thread removes all instances because number of instances to decom is processed as max(goalRunning-scaleTo, sentencedTasks). This patch aims to change this behaviour by using number of actual instances running instead of target number of instances (goalRunning). JIRA: MESOS-5576