mercari / tortoise

Tortoise: Shell-Shockingly-Good Kubernetes Autoscaling
MIT License
316 stars 14 forks source link

don't scale down when the replica number is close to preferredMaxReplicas #393

Closed sanposhiho closed 3 months ago

sanposhiho commented 3 months ago

What this PR does / why we need it:

The current replica number is close or more than preferredMaxReplicas. So, we just keep the current resource request until the replica number goes lower because scaling down the resource request might increase the replica number further more.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer: