I am currently facing an issue with my Elastic Beanstalk environment, and I am struggling to understand the root cause or resolve it. Here are the details:
Environment Details:
Platform: Node.js
Instance Type: EC2 with an auto-scaling load balancer setup.
Issue Description:
The environment health frequently transitions from OK to Warning and sometimes even to Degraded. The events log shows a high percentage of HTTP 4xx errors (as seen in the attached screenshot). At one point, over 56.3% of requests were failing with 4xx errors, and it states that “One or more TargetGroups associated with the environment are in a reduced health state.”
I’ve attached a screenshot of the events log for reference. Any guidance or suggestions would be greatly appreciated. Thank you in advance!
What I’ve Tried:
Restarted the application server on all EC2 instances.
Reviewed the configuration settings of the load balancer and target groups.
Checked the application logs for any obvious issues related to request handling.