remix-serve
isn't load balancer friendly
#5196
Replies: 8 comments 6 replies
-
For more info and a proposed solution:
I propose a config key and a CLI flag. I'll try to implement this into |
Beta Was this translation helpful? Give feedback.
-
Might take me a few days as I'm pretty busy, but I'll get to it if I can. |
Beta Was this translation helpful? Give feedback.
-
As if this a feature request, I'm going to convert it to a Proposal |
Beta Was this translation helpful? Give feedback.
-
I'm having the same issue. so... now I see it's not possible. |
Beta Was this translation helpful? Give feedback.
-
seems like #5753 is potentially a dupe or at least highly related. |
Beta Was this translation helpful? Give feedback.
-
Is this still on the plan to be added to |
Beta Was this translation helpful? Give feedback.
-
Is there any update on a solution here? Is the current work around of using express the only option? |
Beta Was this translation helpful? Give feedback.
-
I believe Im having a similar issue. I have a remix app dockerized and deployed to ECS with the default remix server. I put a load balancer and cloudfront in front ECS but when I go to the CDN url I first see the landing page. Then go to login and when I try to login I get redirect to the next page with only the loader json date returned and not the route component. If changing to express fixing this then Im game but I just wanted to see if from my description I may have a different error and changing to express is not going to fix all my problems. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What version of Remix are you using?
1.7.1
Steps to Reproduce
Configure Remix to run inside an ECS container.
Setup an Application Load Balancer instance and point this at Remix.
Thrash the server, eventually (not very long after) you'll start seeing 502 errors!
This causes a failed health check from ALB and the container dies, or in this case is savagely murdered by the load balancer.
Expected Behavior
These 502s shouldn't occur.
Remix should have an option to configure the default keepAliveTimeout.
Actual Behavior
The socket gets closed by Remix, which then causes the load balancer to panic!
Silly brittle things they are.
Beta Was this translation helpful? Give feedback.
All reactions