Skip to content

remix-serve isn't load balancer friendly #4970

@joshocalico

Description

@joshocalico

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions