Buggy deployment since migration to EU West
benjpujol
PROOP

2 years ago

Hello,

I just migrated our backend service (Django) + pg database to EU West.
The service is up, but:

  • it's slow compared to the staging service (that is hosted on US servers). The service is correctly setup and is using the private database address.

  • there is no deploy logs (cf screenshot)

Thanks for the help

22 Replies

benjpujol
PROOP

2 years ago

946c760b-c58f-4c9a-98b8-b3fe1d360c6c


benjpujol
PROOP

2 years ago

Any hint? Or should we move back our production to US servers? We won't be able to handle tomorrow load with those latencies.


2 years ago

have you tried a simple redeploy?


benjpujol
PROOP

2 years ago

Yes, restart/redeploy/re-build image, does not work, I don't even see the echo from my docker entrypoint


2 years ago

are you also getting no logs from postgres?


benjpujol
PROOP

2 years ago

I do get logs from postgres


2 years ago

is postgres itself slow?


benjpujol
PROOP

2 years ago

No, seems ok


2 years ago

okay and can you define slow in this case?


benjpujol
PROOP

2 years ago

https://heatpump-backend-production.up.railway.app/ping/ sometimes takes 40ms of runtime (X-Runtime header) sometimes 200ms. It does nothing but a query to the db. And other endpoints behave similarly


2 years ago

and what are those numbers when in us?


benjpujol
PROOP

2 years ago


benjpujol
PROOP

2 years ago

(staging is hosted on US)


benjpujol
PROOP

2 years ago

I'll try to get back to US for now


2 years ago

are you located in EU?


benjpujol
PROOP

2 years ago

yes, created the service when EU servers were not available and we were trying to migrate to reduce latency


2 years ago

is your service back in US now?


benjpujol
PROOP

2 years ago

Being migrated, there's a volume attached, so it's taking a bit


benjpujol
PROOP

2 years ago

Back in Oregon, logs are working fine again and steady 30ms runtime on /ping.


2 years ago

can you try to deploy a minimal reproducible example to EU?


benjpujol
PROOP

2 years ago

Will do before attempting to migrate again, but another day, it's getting late here.
Thanks for the help !


2 years ago

no prob


Loading...