Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ML] Reduce no-scale events from serverless autoscaling
Recently the Elasticsearch serverless autoscaler has been changed to reset the stabilization window when it receives a no-scale event. It needs to receive a continuous stream of downscale events for the entirety of the stabilization window or it won't scale down. Prior to this change the ML autoscaling stats would flip to a no-scale every 5 minutes, when the ML memory tracker was considered to be stale. This prevents the ML tier ever scaling down. This change alters the flow so that a stale ML memory tracker does not automatically cause a no-scale event to be returned. In the majority of cases the ML memory tracker will only be "stale" by 5 seconds, which is not really worth worrying about. In cases where the ML memory tracker does not contain all required information (because for example it hasn't even been initialised on a new master node) we will still return no-scale events while it is refreshed due to the null checks in MlAutoscalingResourceTracker.
- Loading branch information