R
Railway9mo ago
rom5031

Buggy deployment since migration to EU West

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
No description
19 Replies
Percy
Percy9mo ago
Project ID: 946c760b-c58f-4c9a-98b8-b3fe1d360c6c
rom5031
rom50319mo ago
946c760b-c58f-4c9a-98b8-b3fe1d360c6c Any hint? Or should we move back our production to US servers? We won't be able to handle tomorrow load with those latencies.
Brody
Brody9mo ago
have you tried a simple redeploy?
rom5031
rom50319mo ago
Yes, restart/redeploy/re-build image, does not work, I don't even see the echo from my docker entrypoint
Brody
Brody9mo ago
are you also getting no logs from postgres?
rom5031
rom50319mo ago
I do get logs from postgres
Brody
Brody9mo ago
is postgres itself slow?
rom5031
rom50319mo ago
No, seems ok
Brody
Brody9mo ago
okay and can you define slow in this case?
rom5031
rom50319mo 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
Brody
Brody9mo ago
and what are those numbers when in us?
rom5031
rom50319mo ago
https://heatpump-backend-staging.up.railway.app/ping/ 30 to 40ms (staging is hosted on US) I'll try to get back to US for now
Brody
Brody9mo ago
are you located in EU?
rom5031
rom50319mo ago
yes, created the service when EU servers were not available and we were trying to migrate to reduce latency
Brody
Brody9mo ago
is your service back in US now?
rom5031
rom50319mo ago
Being migrated, there's a volume attached, so it's taking a bit Back in Oregon, logs are working fine again and steady 30ms runtime on /ping.
Brody
Brody9mo ago
can you try to deploy a minimal reproducible example to EU?
rom5031
rom50319mo ago
Will do before attempting to migrate again, but another day, it's getting late here. Thanks for the help !
Brody
Brody9mo ago
no prob
Want results from more Discord servers?
Add your server