What is the reason that AWS health status is RED?

I applied the app to AWS Stretch Bean Cord.

after running the application, it works well. But after 5 minutes (I installed a health check every 5 minutes), it fails. I am accessing the url but HTTP 503 is back.

From information about the event, I receive information only about the state of health from YELLOW IN GREEN.

But how can I get detailed information and what can I do with this error?

BTW: I do not understand that this RED health state causes the application to not start or something else did not lead to the application crashing, then the health state turns red?

+4
source share
1 answer

Elastic load balancing has a health check daemon that checks the path you specified for HTTP status over 200 ranges.

If the problem is with the application or the 2xx status code is not returned, or if you incorrectly configured the health check URL, the status will be red.

Two things you can do to see what happens:

  • Click the host name of the individual instance in your web browser - especially the health check path. Do you see what you expected?

  • SSH into the instance and check the logs in /var/log and /opt/elasticbeanstalk/var/log . Are there any errors you may find?

Without knowing more about your application, stack, or container type, this is the best I can do.

Hope this helps! :)

+1
source

Source: https://habr.com/ru/post/1438138/


All Articles