You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When deploying behind a load balancer its good to configure the application server with a longer timeout than the load balancer. See AWS ALB reccomendation
We also recommend that you configure the idle timeout of your application to be larger than the idle timeout configured for the load balancer.
AWS defaults a ALB to a 60 second idle timeout so it would be desirable to configure next to have a 61 second timeout.
It looks like this has been discussed in a few places with little to no response from the maintainers:
Here is a discussion of a similar issue in node. nodejs/node#27363
and two blogs about people hitting similar issues with ALB's generating 502s using express servers where the solution was to increase the keepAliveTimeout.
Allow setting keepAliveTimeout and headersTimeout.
Describe alternatives you've considered
Ugly hacks
We are doing something similar to patch, just an awk on the bundle after build. As patch replaces the whole file (IIRC) it’s more likely to break things than a regex search and insert.
Heya the only solution I was able to find was to modify the IdleTimeout on the AWS ELB to be 4 seconds, i.e 1 second less than node's default 5 seconds.
Describe the feature you'd like to request
When deploying behind a load balancer its good to configure the application server with a longer timeout than the load balancer. See AWS ALB reccomendation
AWS defaults a ALB to a 60 second idle timeout so it would be desirable to configure next to have a 61 second timeout.
It looks like this has been discussed in a few places with little to no response from the maintainers:
Here is a discussion of a similar issue in node. nodejs/node#27363
and two blogs about people hitting similar issues with ALB's generating 502s using express servers where the solution was to increase the keepAliveTimeout.
Describe the solution you'd like
Allow setting keepAliveTimeout and headersTimeout.
Describe alternatives you've considered
Ugly hacks
#19618 (comment)
#19618 (comment)
or setting the ALB/ELB to a timeout of 4 seconds
#16544 (comment)
The text was updated successfully, but these errors were encountered: