Skip to content

What's the meaning of HRA's spec.scaleUpTriggers.duration? #890

Answered by toast-gear
brennerm asked this question in Questions
Discussion options

You must be logged in to vote

The scale up trigger’s duration is used to calculate if the replica number added via the trigger is expired or not. On each reconcilation loop, the controller sums up all the non-expiring replica numbers from previous scale up triggers. It then compares the summed desired replica number against the current replica number. If the summed desired replica number > the current number then it means the replica count needs to scale up.

The thing that has the ultimate say on how long a replica lives however is the scaleDownDelaySecondsAfterScaleOut property. If the latest scale-up time + the anti-flapping duration is later than the current time, it doesn’t immediately scale up and instead retries…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@brennerm
Comment options

Answer selected by brennerm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants