Why is my autoscaling group instance unhealthy?Can you change an AWS Elastic Load Balancer health check...

Where is the fallacy here?

Magento 2: Override XML file from vendor folder to app folder doesn't work/update

A "strange" unit radio astronomy

Logistics of a hovering watercraft in a fantasy setting

Does music exist in Panem? And if so, what kinds of music?

How to acknowledge an embarrassing job interview, now that I work directly with the interviewer?

How would we write a misogynistic character without offending people?

Which aircraft had such a luxurious-looking navigator's station?

Is there a frame of reference in which I was born before I was conceived?

Is my plan for fixing my water heater leak bad?

How to deny access to SQL Server to certain login over SSMS, but allow over .Net SqlClient Data Provider

Can you use a beast's innate abilities while polymorphed?

How to count words in a line

What if I store 10TB on azure servers and then keep the vm powered off?

Make me a metasequence

"Murder!" The knight said

What's the difference between a cart and a wagon?

Pure Functions: Does "No Side Effects" Imply "Always Same Output, Given Same Input"?

When should a commit not be version tagged?

How to speed up a process

Compare four integers, return word based on maximum

Why does the 31P{1H} NMR spectrum of cis-[Mo(CO)2(dppe)2] show two signals?

Series pass transistor, LM7812

How can I be pwned if I'm not registered on that site?



Why is my autoscaling group instance unhealthy?


Can you change an AWS Elastic Load Balancer health check without causing instances to go out of service?How to set up ELB health checks with multiple applications running on each EC2 instance?ELB Health Checks incorrectly failing / being unhealthyHow are autoscaling group termination policies combined?Grace Period? - AWS EC2 Container Service and Elastic Load BalancersELB Health check passes. Scaling Group Shows unhealthy. With scaling group set to the ELB checkWhy do EC2 status checks fail when instance is reachable and serving requests?How to use the same target group of instances with 2 ELBs (ALBs) + auto-scalingAWS Application ELB sometimes responds 502 without calling the backendAWS Autoscaling Group won't honor five minute draining policy of the Target Group when scaling down













1















I'm noticing a very strange issue with an AWS auto-scaling group.



Instances are being reported (incorrectly) as being unhealthy. The instances are then being terminated and replaced unnecessarily. This is causing problems because it is leaving the ASG with insufficient capacity to cope with the load.



To try to identify the problem, I've temporarily suspended the "Terminate" process for the ASG.



Right at the moment I have a single instance in the group reported by the ASG as being unhealthy. Logging in to the instance and testing the health check directly proves that it is in fact healthy.



Additionally, the load balancers associated with the ASG also report all instances as healthy.



My question is. How can my ASG consider an instance to be "UNHEALTHY", if the health check type for the group is set to "ELB", and the load balancers report the instance as healthy?



Is there a way I can find out when and why the ASG flagged the instances as "Unhealthy"?



There particular ASG is currently associated with 2 classic ELB's, and 2 ALB Target Groups. We're in the process of migrating from ELB to ALB.



As mentioned though, both ELB's, and both Target Groups report all instances as healthy.










share|improve this question



























    1















    I'm noticing a very strange issue with an AWS auto-scaling group.



    Instances are being reported (incorrectly) as being unhealthy. The instances are then being terminated and replaced unnecessarily. This is causing problems because it is leaving the ASG with insufficient capacity to cope with the load.



    To try to identify the problem, I've temporarily suspended the "Terminate" process for the ASG.



    Right at the moment I have a single instance in the group reported by the ASG as being unhealthy. Logging in to the instance and testing the health check directly proves that it is in fact healthy.



    Additionally, the load balancers associated with the ASG also report all instances as healthy.



    My question is. How can my ASG consider an instance to be "UNHEALTHY", if the health check type for the group is set to "ELB", and the load balancers report the instance as healthy?



    Is there a way I can find out when and why the ASG flagged the instances as "Unhealthy"?



    There particular ASG is currently associated with 2 classic ELB's, and 2 ALB Target Groups. We're in the process of migrating from ELB to ALB.



    As mentioned though, both ELB's, and both Target Groups report all instances as healthy.










    share|improve this question

























      1












      1








      1








      I'm noticing a very strange issue with an AWS auto-scaling group.



      Instances are being reported (incorrectly) as being unhealthy. The instances are then being terminated and replaced unnecessarily. This is causing problems because it is leaving the ASG with insufficient capacity to cope with the load.



      To try to identify the problem, I've temporarily suspended the "Terminate" process for the ASG.



      Right at the moment I have a single instance in the group reported by the ASG as being unhealthy. Logging in to the instance and testing the health check directly proves that it is in fact healthy.



      Additionally, the load balancers associated with the ASG also report all instances as healthy.



      My question is. How can my ASG consider an instance to be "UNHEALTHY", if the health check type for the group is set to "ELB", and the load balancers report the instance as healthy?



      Is there a way I can find out when and why the ASG flagged the instances as "Unhealthy"?



      There particular ASG is currently associated with 2 classic ELB's, and 2 ALB Target Groups. We're in the process of migrating from ELB to ALB.



      As mentioned though, both ELB's, and both Target Groups report all instances as healthy.










      share|improve this question














      I'm noticing a very strange issue with an AWS auto-scaling group.



      Instances are being reported (incorrectly) as being unhealthy. The instances are then being terminated and replaced unnecessarily. This is causing problems because it is leaving the ASG with insufficient capacity to cope with the load.



      To try to identify the problem, I've temporarily suspended the "Terminate" process for the ASG.



      Right at the moment I have a single instance in the group reported by the ASG as being unhealthy. Logging in to the instance and testing the health check directly proves that it is in fact healthy.



      Additionally, the load balancers associated with the ASG also report all instances as healthy.



      My question is. How can my ASG consider an instance to be "UNHEALTHY", if the health check type for the group is set to "ELB", and the load balancers report the instance as healthy?



      Is there a way I can find out when and why the ASG flagged the instances as "Unhealthy"?



      There particular ASG is currently associated with 2 classic ELB's, and 2 ALB Target Groups. We're in the process of migrating from ELB to ALB.



      As mentioned though, both ELB's, and both Target Groups report all instances as healthy.







      amazon-web-services amazon-ec2 amazon-elb autoscaling amazon-alb






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 3 hours ago









      user1751825user1751825

      19819




      19819






















          1 Answer
          1






          active

          oldest

          votes


















          1














          I guess the problems come from having the instance part of multiple ELBs / ALB TGs. I suspect that any one of those ELBs / ALBs can then trigger the instance termination if it deems it unhealthy for whatever reason.



          Change the health check type to EC2 until you're done with the migration.



          The best practice is to have ASG bound to only a single load balancer.



          Hope that helps :)






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "2"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f956763%2fwhy-is-my-autoscaling-group-instance-unhealthy%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1














            I guess the problems come from having the instance part of multiple ELBs / ALB TGs. I suspect that any one of those ELBs / ALBs can then trigger the instance termination if it deems it unhealthy for whatever reason.



            Change the health check type to EC2 until you're done with the migration.



            The best practice is to have ASG bound to only a single load balancer.



            Hope that helps :)






            share|improve this answer




























              1














              I guess the problems come from having the instance part of multiple ELBs / ALB TGs. I suspect that any one of those ELBs / ALBs can then trigger the instance termination if it deems it unhealthy for whatever reason.



              Change the health check type to EC2 until you're done with the migration.



              The best practice is to have ASG bound to only a single load balancer.



              Hope that helps :)






              share|improve this answer


























                1












                1








                1







                I guess the problems come from having the instance part of multiple ELBs / ALB TGs. I suspect that any one of those ELBs / ALBs can then trigger the instance termination if it deems it unhealthy for whatever reason.



                Change the health check type to EC2 until you're done with the migration.



                The best practice is to have ASG bound to only a single load balancer.



                Hope that helps :)






                share|improve this answer













                I guess the problems come from having the instance part of multiple ELBs / ALB TGs. I suspect that any one of those ELBs / ALBs can then trigger the instance termination if it deems it unhealthy for whatever reason.



                Change the health check type to EC2 until you're done with the migration.



                The best practice is to have ASG bound to only a single load balancer.



                Hope that helps :)







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 2 hours ago









                MLuMLu

                8,79212142




                8,79212142






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Server Fault!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f956763%2fwhy-is-my-autoscaling-group-instance-unhealthy%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    As a Security Precaution, the user account has been locked The Next CEO of Stack OverflowMS...

                    Список ссавців Італії Природоохоронні статуси | Список |...

                    Українські прізвища Зміст Історичні відомості |...