user3620163
user3620163

Reputation: 21

Elastic Beanstalk randomly goes offline

My elastic beanstalk environment keeps switching the environment health from Warning to OK from OK to Warning almost every 15 minutes or so.

The Scale settings is Min: 2 max: 4 and there is 4 EC2 instances running.

Can somebody please help? Screenshot

Upvotes: 1

Views: 1004

Answers (1)

Tal
Tal

Reputation: 7997

I can't tell from your screenshot if new instances were created, so it can be wither the scaling trigger being met, or the load balancing one.

Your load balancer trigger is configured here:

Configuration => Load Balancer => EC2 Instance Health Check

the default value is to perform an HTTP request to the root path (/), but you can configure it as you see fit. In most cases degradation happens because your app response time isn't fast enough. You can change the parameters, or fix the app.

As for the scaling trigger, it's configured here:

Configuration => Scaling => Scaling Trigger

By default this is set to NetworkOut, which is the number of bytes sent out from the node and has nothing to do with your server being overloaded. I'm not sure why beanstalk decided to use this metric by default, but you can change it to CPU utilization or any other metric documented here.

Upvotes: 1

Related Questions