503 using fly-machine-id cookie

Following the session affinity doc found here, I’m setting a response cookie (fly-machine-id) to the value in the request header with an expiration of 6 days. However if I scale out to different regions within those 6 days, and those original Fly.io machine id’s go down, any requests to my app with the old fly-machine-id will return a 503 error.

My assumption would be if a machine ID is no longer associated with the domain/app, that the load balancer would strip the cookie and return a new machine id. The client would be completely oblivious to change in the machine IDs, so without it, the only way to reach the site is to wait for the cookie expiration, or clear the cookie.

Here’s the behavior:

Looks like @khuezy hit this too:

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