DEV Community

Discussion on: Serving EC2 traffic over HTTPS

Collapse
 
bmitchinson profile image
Ben Mitchinson

@mayank , thank you so much for the write up!

I'm looking to use a classic load balancer with my single EC2, but initial requests are ~1.5 minutes. Then for the next 300 seconds, requests are fast and responsive.

Is it required to have my EC2 in more than one subnet?

Thanks

Collapse
 
mbadola profile image
Mayank Badola

Thanks, Ben.

As for your question, to my knowledge, the problem you're facing happens during releases or fresh deployment of the load balancers. CLBs have a warm-up time where the EC2 instances gets attached to the load balancer and pass health checks.

What about the underlying application? Does it lazy load data? What's the idle timeout configured on your load balancers?

You gotta give these things a lookover too ...