Is high p99 latency from railway overhead is expected?

I have a very simple http service (doesn't do any IO and it immediately returns a cached value from memory). It usually takes <15ms (through private network) but I occasionally see 100 or even 200+ ms. Somewhat related to this, I also see 502 time to time.. I'm curious if anyone has a similar experience. I don't see any sign from my logs that it is an application error. I am wondering if these hiccups are from Railway.
No description
39 Replies
Percy
Percy11mo ago
Project ID: e9b4f99b-4d10-4dae-9884-a2be0a1637eb
ChubbyAvocado
ChubbyAvocado11mo ago
e9b4f99b-4d10-4dae-9884-a2be0a1637eb
Brody
Brody11mo ago
the uptime kuma template didnt support testing services on the private network, are you sure youre testing the private network?
ChubbyAvocado
ChubbyAvocado11mo ago
I'm not using the public template. I'm pretty sure I'm using the private network (http://foobar.railway.internal:PORT/...). I'm actually testing both public and private endpoints and I see that latency is noticeably lower on private endpoint. My question is more around these unexpected spikes 🥲
Brody
Brody11mo ago
those are from the internal dns server
Brody
Brody11mo ago
with this test i see spikes of up to 160ms
No description
Brody
Brody11mo ago
with just tcp, the biggest spike was 7ms
No description
ChubbyAvocado
ChubbyAvocado11mo ago
interesting.. so internal DNS lookup could be pretty slow
Brody
Brody11mo ago
yep, but as for the 502, thats not railway, there is no gateway involved in the private network, its a wireguard tunnel
ChubbyAvocado
ChubbyAvocado11mo ago
I see. I will look more into what's causing 502. For DNS lookup latency I guess there is no way around it?
Brody
Brody11mo ago
use a caching dns resolver? though i dont know how well that would work, pretty sure the service would get a new ipv6 ip on every deployment
ChubbyAvocado
ChubbyAvocado11mo ago
right 😦
Brody
Brody11mo ago
ill ping char in next time i see him online, maybe he will have some ideas
ChubbyAvocado
ChubbyAvocado11mo ago
thanks for looking into it! for my info, how did you get these numbers?
Brody
Brody11mo ago
uptime kuma, same as you
Want results from more Discord servers?
Add your server