I have a Rube Goldberg system where I launch spot-priced instances in autoscaling groups, without actually being interesting in autoscaling features. It all comes from not being able to get spot-priced instances directly using CloudFormation. Don't ask...
Anyway, for my use case, I want to effectively disable health checks. I never want instances terminated and replaced, ever. I will do all that manually. Because of health checks I am rather often seeing my carefully constructed instances being terminated, and it is very annoying.
So, what are my options?
set-instance-health
which they advertise for custom health checks: does that override EC2 status checks? Is it permanent?Thanks for your help!
On the Listener tab, find the listener for which you want to disable the health check feature and click Modify Listener in the Actions column. On the Configure Listener page, click Next to proceed to the Health Check wizard page. Turn off the Enable Health Check switch and click Next. Click Submit and click OK.
If the instance is in any Amazon EC2 state other than running , or if its status for the status checks becomes impaired , Amazon EC2 Auto Scaling considers the instance to be unhealthy and replaces it.
On the Automatic scaling tab, under Dynamic scaling policies, select the check box in the top right corner of the desired scaling policy. Scroll to the top of the Dynamic scaling policies section, and choose Actions, Disable.
If an instance fails these status checks, it is marked unhealthy and is terminated while Amazon EC2 Auto Scaling launches a new replacement instance. You can attach one or more load balancer target groups, one or more Classic Load Balancers, or both to your Auto Scaling group.
So, I asked AWS Support and the kind Dan H. told me about suspending processes, which is exactly what I need: http://docs.aws.amazon.com/autoscaling/latest/userguide/as-suspend-resume-processes.html - I can actually disable health checks directly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With