Cross-region failover: European requests fail when only a healthy US Machine remains

Hi,

I’m testing failover for an app running in two European regions and one US region. All Machines use the same image and service configuration. Caddy handles TLS directly, with TCP services on ports 80/443 and PROXY protocol v2.

When all Machines are running, everything works normally.

However, after stopping both European Machines and leaving only the US Machine running:

  • The US Machine remains healthy, with both HTTP and HTTPS service checks passing.
  • Requests from several non-European locations still succeed.
  • Requests from European locations fail: HTTPS connections close during the TLS handshake, while HTTP returns an empty response.

Restarting the US Machine did not help. Explicitly cordoning the stopped European Machines also did not resolve it. Starting the European Machines again restored access from Europe.

Is Fly Proxy expected to route European traffic to the healthy US Machine in this situation? Is there any additional configuration needed for cross-region failover with this TCP/TLS setup, or a known limitation involving stopped or cordoned Machines?

Any suggestions for further diagnostics would be appreciated.

If your app terminates TLS itself and uses raw TCP services on our side, unfortunately there are limits to how much we can retry failed connections. Because presumably in many cases our load balancer will only see a TCP RST, and we have no further app-level protocol knowledge to tell whether it is safe to retry that TCP stream. If your client is fast enough, it is also possible to overflow our retry buffer before the failure is communicated. I’m not sure if this is exactly what happened in your case, it is possible that there is still something we can improve here, but I will say that the experience of using a raw TCP service will never be the same as letting us terminate TLS and HTTP. If your app is still up and running, you could share one of the machine IDs with us and we can possibly check out what might be going on.

If you want reliable multi-region failover, please consider letting us terminate TLS and HTTP and act as a L7 load balancer. This means setting up [http_services] or adding handlers = ["tls", "http"] to your service definition.

Thanks for the explanation. I understand the limitations around retrying raw TCP streams.

I wanted to clarify the difference we’re observing:

Failover between our European regions works: when Frankfurt is stopped, London takes over, and vice versa. We have occasionally seen initial connection interruptions during the transition, but in the browser this generally appears as a short wait followed by the page loading successfully.

With only the US Machine running, requests from my European connection fail immediately instead, and repeated fresh connections continue to fail. It does not recover after the initial transition.

I also repeated the test with a newly created Machine in Chicago, using the same image and service configuration. It showed the same behavior as Ashburn: service checks were passing and local HTTPS worked, but requests from Europe failed. During that test, an HTTPS request made from the Chicago Machine through the app’s public IP succeeded.

Could the raw TCP retry limitations also explain this persistent behavior for fresh connections, or does it warrant further routing investigation?

The Ashburn Machine ID is 2865537dfeee98. I have restored the European Machines, but this US Machine remains available for investigation. I can reproduce the US-only setup again if you need a live diagnostic window.

Thanks!

I will say it could explain this, but it is slightly a stretch and probably does need a bit more investigation to understand why the retry failed. I would still recommend using our full TLS + HTTP termination setup for optimal load balancing.

Thanks for your help. We ran a more targeted test that may help narrow this down.

On 2026-10-28, 16:33:47–16:33:54 UTC, only IAD Machine 2865537dfeee98 was running; FRA/LHR were stopped.

We temporarily added external port 18443 exclusively to IAD, forwarding to the same internal port 443 as the normal service. Both mappings used PROXY protocol v2, with the same Caddy process and unchanged TLS configuration.

Alternating requests from Poland, using the same public IPv4 and Host/SNI, produced:

External 443: all three connections failed during TLS establishment. No corresponding incoming connections appeared in the packet capture on IAD.

External 18443: all three returned HTTPS 200 with successful certificate validation. These connections appeared in the same capture.

The capture covered all interfaces on internal port 443 and reported no kernel packet drops.

Port 443 remained configured on the stopped European Machines, whereas 18443 existed only on IAD. This leaves port-specific behaviour versus backend selection unresolved, but confirms that Poland → IAD connectivity with Caddy terminating TLS works through the separate port.

Would these timestamps and the Machine ID help investigate how the shared 443 service selected its backend?

Europe has been restored and the temporary port removed. IAD remains available for investigation.

One additional observation from OpenStatus checks: I tested the reverse direction as well.

With FRA and LHR running and IAD suspended, probes from US locations also failed instead of being successfully served by the European Machines.

We have therefore observed failures in both tested directions:

  • FRA/LHR stopped, IAD running: probes from Europe failed.
  • IAD suspended, FRA/LHR running: probes from US locations failed.

The state difference is worth noting: the European Machines were stopped in the earlier test, whereas IAD was suspended in this one.

Together with the successful separate-port test described above, this suggests the issue may involve backend selection or routing for the shared service, rather than a general inability to connect between Europe and the US.

My main concern is what this means for failover during a real Machine or host outage. We have tested explicit Stop/Suspend operations, not an actual infrastructure failure.

Do stopped/suspended Machines follow the same backend-exclusion and cross-region failover path as failed or unreachable Machines, or are different mechanisms involved? I’d like to establish whether the shared-port failure we reproduced could also leave clients unable to reach healthy Machines in another region during a real outage.

I can reproduce the failing state and collect another synchronized capture if that would help investigate.

Hi, just following up on the diagnostic results above.

The key observation was that, with only IAD running, the shared external port 443 failed with no corresponding connections reaching the Machine, while the IAD-only port 18443 worked through the same Caddy instance, internal port 443 and PROXY v2 configuration.

Could someone from the networking team review the shared-port delivery path using the timestamps and Machine ID provided above?

Our main concern is failover during an actual Machine or host failure. It would also help to clarify whether failed/unreachable Machines follow the same backend-exclusion path as stopped/suspended Machines, so we can understand the expected behavior with TLS terminated in Caddy.

I can arrange another short reproduction window if needed. Thanks for your help.