I am new to AWS, I have auto scaling enabled for my Elastic Beanstalk based server. For some reason the below healthd
process is almost fully consuming the cpu
causing the auto scaler to add a new instance as I have set the expansion policy to add a new instance to the beanstalk
environment when resource utilization is > 70.
healthd 20 0 1024648 43660 9876 S 75.7 1.1 121:16.03 ruby
I have two questions:
- How to avoid 5xx (network) errors when a new instance is added?
- What is the process
Healthd
needed for? why it is running when I didn't start it? and how can I prevent that process from draining the CPU?
Maybe the Load Balancer is starting to send traffic to the new instance before the application is completely up on that instance and this is why I am getting the network errors! How can I verify this is the cause and how to avoid it?