-
Notifications
You must be signed in to change notification settings - Fork 82
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
Instance are not shutting down due to "Protection from scale In" #432
Comments
I will observe it for few days but changing values for min and spare from 0 to 1 seems to speed it up or maybe it just me. Seems somehow related to this: #425 |
I got recent case on this. We wanted to scale to keep one instance at a time. It's ASG using Spot. We were starting in point were min = 1, spare = 1, max = 3 I've applied following settings:
2 hours has passed, on AWS I see that auto-scaling group has following settings:
Yet there are 2 instances running, both with
On Jenkins logs I don't see anything about scaling it down. In Jenkins UI I can see those are idling. On AWS I can see:
|
Have you enabled the Scale-in Protection in you ASG? As this issue is more related to the setup of the ASG than the plugin itself. |
I didn't, but plugin indeed. As it was stated in other issue tickets, plugin is doing to prevent ASG to kill instances on it's own. What I can see is, plugin is not fast enough to maintain this replacement on it's own. |
any updates? |
Issue Details
Describe the bug
Instances are not shutting down as expected.
I've set following setting in the plugin
I've also tried with turning on and off option
No Delay Provision Strategy
.I tried to increase Max to 20 and Min to values bigger than 0.
I tried to change idle to 5, 15 etc
In all of those cases instances were not shutdown after expected idle time.
It even seems that new instances were added when there were multiple free executor on existing.
It seems that this "Protected From Scale In" kicks in automatically.
I didn't set it via IaC nor manually (I tried to setup this up even without IaC just to confirm). ASG starts without this option and then Jenkins via this plugin must change it somehow.
I've rollback to legacy Spot Fleet and issue is not present there.
To Reproduce
Set values it above and play around.
** Logs **
In AWS I can see:
Environment Details
Plugin Version?
3.2.0
Jenkins Version?
2.426.3
Spot Fleet or ASG?
ASG
Label based fleet?
No
Linux or Windows?
Linux
EC2Fleet Configuration as Code
N/A
Anything else unique about your setup?
No
The text was updated successfully, but these errors were encountered: