Dynamic Request Router Hinting

Hello – our upcoming app is designed with long-running services, and in the event that a machine needs to halt, we need a way to hint to the “dynamic request router” / load balancer that we don’t want to accept new traffic on that instance without actually closing existing sockets. Is there a good way to do that, or should we just stop accepting new connections?

Not exactly the same thing, but perhaps reply to all new connections with Fly-Replay elsewhere=true?

@kenkeiter I think fly machine cordon stops the proxy accepting new connections but should leave existing ones alone.

Probably the best “hint” you can give the proxy :slight_smile:

  • Daniel
2 Likes

Oh, that is awesome. And it can be accessed via the API, as well. This is exactly what I was looking for! :+1: Thank you for your help.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.