Reputation: 1836
Current environment:
Node.js API server is hosted on EC2 instance (Ubuntu20.04) with Load balancer and Security Group, we are serving as HTTPS. Front End is on S3 linked with Cloudfront.
These two servers are using Route 53 as a DNS provider and everything works well.
Problem:
Everything works fine, but it's not working properly in a specific region - South Windsor CT, US. (Internet provider is Cox Cable). Frequently API requests return 504(Gateway timeout) error without any reason. UI works well. Only API requests. But it works in different regions eg, Mexico and Russia.
I've tried many things on Load balancer, but actually there's no 504 error spotted on the Load balancer log. (I have checked that in cloudwatch). This means requests didn't arrive. Maybe Route 53 bug? There's only thing configured - CNAME, nothing else. And why this happening for a specific region?
Any experiences are all welcome!
Upvotes: 2
Views: 7440
Reputation: 511
Cause 1: The application takes longer to respond than the configured inactivity timeout.
Cause 2: registered instances are closing the connection to Elastic Load Balancing.
Notes:
Upvotes: 2