1 Answer
- Newest
- Most votes
- Most comments
0
Hello,
The slowdowns in your Elastic Beanstalk + Docker deployment could be due to caching or resource limitations. Check this troubleshooting guide for Elastic Beanstalk deployments: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/troubleshooting.html
Optimize Nginx Configuration:
- Increase timeout settings in Nginx (send_timeout, proxy_read_timeout, proxy_connect_timeout, proxy_send_timeout).
Ensure API Health:
- Add health checks in your Docker Compose file to restart unhealthy containers.
version: '3'
services:
api:
...
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost/ || exit 1"]
interval: 30s
timeout: 10s
retries: 3
Configure Load Balancer:
- Verify ELB settings, health checks, and ensure it has enough capacity.
Enable Auto-Scaling:
- Configure auto-scaling in Elastic Beanstalk for better load handling.
Relevant content
- asked 8 months ago
- asked 2 months ago
- AWS OFFICIALUpdated a year ago
- How do I mount an Amazon EFS volume to an application directory in an Elastic Beanstalk environment?AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated a year ago
Thank you for your answer! Sadly, the problem still persists. The targets are healthy all the time and also enough Resources are available as there isn't any load. The "AWSSupport-TroubleshootElasticBeanstalk" automation runbook says everything is okay.