-
Notifications
You must be signed in to change notification settings - Fork 212
allow init cooldown to jobAutoScaler #811
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| boolean applyInitialCooldown = Boolean.parseBoolean( | ||
| Optional.ofNullable(MantisProperties.getProperty(SystemParameters.JOB_AUTOSCALE_APPLY_INITIAL_COOLDOWN_PARAM)) | ||
| .orElse("true")); | ||
| this.lastScaledAt = applyInitialCooldown ? System.currentTimeMillis() : 0L; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you update description to add context of why do we need this cooldown at the init?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated desc
|
|
||
| boolean applyInitialCooldown = Boolean.parseBoolean( | ||
| Optional.ofNullable(MantisProperties.getProperty(SystemParameters.JOB_AUTOSCALE_APPLY_INITIAL_COOLDOWN_PARAM)) | ||
| .orElse("true")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Defaulting to true means we change the behavior for existing users, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah that's the intention and i don't think it should cause impact on regular jobs.
Some users would like to have the scaler cooldown period applied when the job starts (especially when they use custom scaler rules to change the scaler config) to avoid a scaling decision made right after new scaler is created.