2 months ago
Since ~04:40 UTC on 2026-10-01, our production service zone6.in suffers recurring windows where new connections fail to establish at the edge while the instance stays healthy. Fresh connections still show degradation as of 2026-10-05 ~06:43 UTC (details below).
Evidence (2026-10-01): On one held-open keep-alive connection, 36/36 requests succeeded 05:41:05–05:51:10 UTC (request IDs e.g. QbKj4UrXQBeoUmOFmrpb1w, CtQaLn29QReLGtMN-8Y8hA; traces sin1.98a6,hnd1.y5sc/df23/2zrd/4cm0/sx1d and earlier sin1.98a6,ams1.aydy) — while fresh connections to our custom domain AND both of its Railway LB endpoints intermittently timed out at TLS handshake with no x-railway-request-id (05:49:22, 05:49:37, 05:50:14, 05:50:23 UTC; also a 05:37:43–05:39:30 window). A redirect request took 8.9s (05:47:18) and an edge-served 404 took 10.83s (05:48:47) — pure edge/mesh time, no app involvement. Control site railway.app blipped at the same timestamps (05:42:11: 5.64s; 05:47:16: 4.19s) but never hard-failed.
Current status (2026-10-05 06:42–06:44 UTC): no hard TLS failures in an 80s sample, but fresh-connection /r/* redirects take 1.1–2.4s (3/3) and /api/health spikes to 2.3–2.8s (median ~0.5s) — consistent with the same impairment in milder form.
Instance info: service deployed in Southeast Asia (Singapore); database in EU West; serverless disabled on both; no restarts during the windows — the affected deployment's container started 2026-09-30T14:11:59Z and has run continuously since (background jobs logged through Oct 5; 1-month CPU/RAM metrics normal — screenshot attached).
Questions: (1) For a Singapore-deployed service, are hnd1/ams1 handlers expected, or is our instance's mesh/handler placement degraded? (2) Can you check edge/handler logs for dial failures to our instance during those windows? Happy to redeploy for host migration if advised — is a 2nd replica the recommended mitigation?
1 Reply
2 months ago
This thread has been opened as a bounty so the community can help solve it.
Status changed to Open Railway • about 2 months ago
2 months ago
The held-open keep-alive succeeding 36/36 while fresh connections failed at TLS is the most diagnostic thing in your report. It isolates the fault to connection establishment — not your app, not your instance. Established connections kept working because they'd already been dialed through a path that worked.
But question (1) is pointing at the wrong thing.
hnd1/ams1 are expected and aren't evidence of degradation. Railway's edge is anycast: the client hits whichever PoP is nearest to the client, and that PoP dials your Singapore instance over the internal mesh. So the handler reflects where your probe traffic originated and how BGP routed it, not where your service lives. Shifting second hops mean the mesh rerouted — a symptom of path instability, not misplacement. Redeploying for host migration won't change it, and asking about placement will send staff looking in the wrong place.
The detail you've under-weighted: railway.app itself blipped at your exact timestamps — 5.64s at 05:42:11, 4.19s at 05:47:16. Railway's own property, their own edge, nothing to do with your service, slow at the same moments. Add your edge-served 404 at 10.83s (that response never touched your container) and the 8.9s redirect, and you have three independent measurements of pure edge/mesh latency degrading simultaneously. That's a platform-side event in the Singapore region with your instance as a bystander. Lead with those three — they're far harder to attribute to your service than anything involving your own domain.
On a second replica: no, not for this. Replicas protect against instance failure. Yours never failed — continuous since 2026-09-30T14:11:59Z, normal CPU/RAM, background jobs logging throughout. A second replica in Singapore sits behind the same edge and mesh and inherits the identical failure path. The real lever would be a second region, and only after staff confirm what the Oct 1 event was.
The gap in your report: where were you probing from? Your TLS failures had no x-railway-request-id, so the handshake died before the edge logged it — consistent with your reading. But if every fresh-connection probe came from one network or one CI runner, a routing problem between that origin and the Singapore PoP reproduces every symptom including the railway.app blips, since those probes took the same path. Probe from two unrelated origins — another cloud region plus a residential connection or a third-party checker. Both see it → Railway's edge. Only one → transit between you and the PoP, and nothing Railway-side will fix it. Cheapest thing you can do while waiting, and staff would ask anyway.
On the Oct 5 numbers: 1.1–2.4s redirects and /api/health at 2.3–2.8s vs ~0.5s median does look like the same impairment, milder. But 80 seconds and 3/3 is thin for separating residual impairment from variance. Get a continuous probe running — fresh connection each time, no keep-alive reuse, every 30s for a few hours, with phase timings split out. curl -w with %{time_namelookup}, %{time_connect}, %{time_appconnect}, %{time_starttransfer} is enough. Which phase absorbs the time is the answer: all in time_appconnect confirms TLS/edge, time in time_connect points at the TCP dial, time appearing only in time_starttransfer would move suspicion back to your instance.
For staff, the asks worth making: edge/handler dial-failure logs to your instance in sin1 for 05:37:43–05:39:30 and 05:49:00–05:50:30 UTC on 2026-10-01, and whether there was a known Singapore edge/mesh event then. With no x-railway-request-id on the failures, those requests exist only in Railway's edge logs — that's the one thing you genuinely can't get yourself.
Your instance is fine. Stop looking at it.