Skip to content
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

enabling scale-in protection on spot instance type asg #447

Open
GogineniManojkumar opened this issue Sep 1, 2024 · 2 comments
Open

enabling scale-in protection on spot instance type asg #447

GogineniManojkumar opened this issue Sep 1, 2024 · 2 comments
Labels

Comments

@GogineniManojkumar
Copy link

Issue Details

Describe the bug
plugin is enabling the scale-in(newInstancesProtectedFromScaleIn) protection on ASG with spot instances. due to that asg could not able to make instance could not terminate instances.

Activity on asg:
Could not scale to desired capacity because all remaining instances are protected from scale-in.

To Reproduce
ec2-fleet ASG with spot instances
etc.

Cloud Trail Logs
"userAgent": "ec2-fleet-plugin, aws-sdk-java/1.12.633 Linux/4.14.281-212.502.amzn2.x86_64 OpenJDK_64-Bit_Server_VM/17.0.12+7-LTS java/17.0.12 groovy/2.4.21 vendor/Amazon.com_Inc. cfg/retry-mode/legacy",
"requestParameters": {
"autoScalingGroupName": "jenkins-slave",
"minSize": 0,
"maxSize": 1,
"desiredCapacity": 0,
"newInstancesProtectedFromScaleIn": true
},

Environment Details

Plugin Version?
3.20

Jenkins Version?
2.246

Spot Fleet or ASG?
ASG(spot instances)

Label based fleet?
NO

Linux or Windows?
Linux

@GogineniManojkumar
Copy link
Author

@pdk27 if you can help here that would be great!

What I am looking for is I want to terminate instance idel > 5 minutes, currently it's not happening.

@maxsargentdev
Copy link

Also seeing this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants