Higher latency on Metal
cruvex
HOBBYOP

a year ago

Hi

I did a test where I deployed a rust axum rest api twice, one on Metal and one on GCP. But the latency on Metal is just way higher.
The increased latency seems to be coming from the database connection.
I apologise in advance if I did something stupid :)

36 Replies

cruvex
HOBBYOP

a year ago

ebfe176f-63cb-441f-bcb3-f4a8de975077


cruvex
HOBBYOP

a year ago

Following is a screenshot of the HTTP logs of the app deployed on GCP

1356390962888184000


cruvex
HOBBYOP

a year ago

And the one on Metal

1356391075920482600


a year ago

did you also put the database on metal?


cruvex
HOBBYOP

a year ago

should be yes. Metal app -> Metal database. GCP app -> GCP database


cruvex
HOBBYOP

a year ago

I am EU btw


a year ago

is your metal service using the metal edge as well?


cruvex
HOBBYOP

a year ago

I have tried switching between the metal edge and the old one but doesnt seem to make that much of a difference


a year ago

its a DNS update so please be patient, how long has the domain been on the metal edge?


cruvex
HOBBYOP

a year ago

Well ive been switching between them pretty quickly. Just switched back to the Metal edge. How long do you recommend waiting before testing again?


a year ago

you can dig the domain, when it starts returning a list of IP addresses you should be good


cruvex
HOBBYOP

a year ago

not too familiar with networking. Could you elaborate?


a year ago

dig, the cli tool


cruvex
HOBBYOP

a year ago

Is it this you're looking for?

edge.railway.app.       152     IN      A       66.33.22.3
edge.railway.app.       152     IN      A       66.33.22.1
edge.railway.app.       152     IN      A       66.33.22.4
edge.railway.app.       152     IN      A       66.33.22.2

a year ago

yep thats the metal edge


cruvex
HOBBYOP

a year ago

Have a couple dipping below 10ms now. But still on the higher side

1356395245083951400


a year ago

can you run a traceroute to one of the ip addressees?


cruvex
HOBBYOP

a year ago

traceroute to 66.33.22.1 (66.33.22.1), 30 hops max, 60 byte packets
 1  172.20.64.1 (172.20.64.1)  0.222 ms  0.151 ms  0.164 ms
 2  mymodem (192.168.1.1)  0.707 ms  1.157 ms  0.891 ms
 3  10.24.49.76 (10.24.49.76)  9.628 ms  9.678 ms  10.193 ms
 4  * * *
 5  ae-64-100.ibrstr6.isp.proximus.be (91.183.241.200)  17.692 ms  17.436 ms  19.219 ms
 6  brx-b4-link.ip.twelve99.net (213.248.97.112)  19.279 ms  15.113 ms  15.188 ms
 7  adm-bb2-link.ip.twelve99.net (62.115.116.230)  17.139 ms  15.470 ms  15.726 ms
 8  adm-b12-link.ip.twelve99.net (62.115.137.191)  16.426 ms  17.138 ms  17.142 ms
 9  railwaycorp-ic-390073.ip.twelve99-cust.net (62.115.196.223)  18.081 ms  18.836 ms  17.939 ms
10  * * *
11  * * *
12  * * *
13  * * *
14  * * *
15  * * *
16  * * *
17  * * *
18  * * *
19  * * *
20  * * *
21  * * *
22  * * *
23  * * *
24  * * *
25  * * *
26  * * *
27  * * *
28  * * *
29  * * *
30  * * *

a year ago

and if you could please visit https://rlwy-edge-info-production.up.railway.app/ and paste the response body here + your current location


cruvex
HOBBYOP

a year ago

edge=railway/europe-west4-drams3a
zone=europe-west4-drams3a
ip=::ffff:100.64.0.2
forwarded=91.177.28.24
hs=f09480be9e4a
req=T6a7ncZgTVaGcj5738lYAA_3554946428

How accurate should my current location be? :)


a year ago

as accurate as you feel comfortable announcing publicly


cruvex
HOBBYOP

a year ago

3550 Heusden-Zolder, Limburg, Belgium


a year ago

fr?


cruvex
HOBBYOP

a year ago

always welcome


a year ago

you know these threads are indexed publically on google?


cruvex
HOBBYOP

a year ago

thats just zipcode btw


cruvex
HOBBYOP

a year ago

not street


a year ago

fair enough


cruvex
HOBBYOP

a year ago

xd


a year ago

cc @Phineas - slightly slower response times on Metal.

✅ - db on metal
✅ - app on metal
✅ - region same as user
✅ - metal edge enabled
✅ - priv net for db comms

I can't think of anything else that could cause issues.


cruvex
HOBBYOP

a year ago

Side note:
Even when querying an endpoint with no database interaction its still slightly slower.
GCP:

1356403919466528800


cruvex
HOBBYOP

a year ago

Metal:

1356403990585147400


a year ago

interesting, ill let phin weigh in on this, so lets wait to hear back from him


cruvex
HOBBYOP

a year ago

Thanks for your time and help in advance!


cruvex
HOBBYOP

9 months ago

Not sure if you guys looked any further into this but I just tested again and this seems to mostly be fixed. GCP still seems to be faster but its by a difference of <5ms on average.


9 months ago

so sorry that this thread got lost, we made some changes and are seeing metal response times faster from our testing data now


Loading...