Have you checked the health check requests from your load balancer to your EC2 instances are not timing out or failing intermittently? For example, can you connect to your instance and check to see if you getting a non-200 response for your configured health check?
Other things to diagnose the target timeout...
- Is the instance failing to respond within the configured response timeout period?
- Is your instance under significant load and taking longer than your configured response timeout period to respond?
- Try using a simpler health check to see if that works.
elastic beanstalkasked 8 months ago
Elastic beanstalk Enhanced health not generating healthd/application.log filesAccepted Answerasked 8 months ago
How to deploy to single instance Elastic Beanstalk worker environment using CodePipeline?asked a year ago
Deploy to elastic beanstalk across accountsAccepted Answerasked 9 months ago
Elastic Beanstalk health is in Severeasked 10 months ago
Elastic Beanstalk Error deploy python flask application sqlite3asked 6 months ago
AWS Elastic beanstalkasked 16 days ago
How do I change my Elastic Beanstalk instance type?asked 3 months ago
Elastic BeanStalk shows unhealthy; health check not workingasked 6 months ago
Restart Elastic Beanstalk App Server when Health is Severeasked 9 months ago