Slow postgres queries
molhar
PROOP

5 months ago

We are experiencing slow Postgres queries since being moved to Metal. We had previously seen this issue when running our staging environment on Metal too.

This is resulting in some requests to our API taking multiple seconds to complete and consequently having a severe impact on user experience (we are literally losing sign ups right now as a result).

Not sure if there are modifications we need to make on our side or if this issue lies more with railway?

23 Replies

Railway
BOT

5 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


Hey there Mark,

Unfortunately this is a known issue, we're trying to investigate the root cause of this regression. Do you have some logs or traces when the spikes occurred with the slow reads/writes?


Status changed to Awaiting User Response Railway 5 months ago


molhar
PROOP

5 months ago

Hi Angelo, I can see the spike in API latency in Sentry. It's hard to get Sentry to label the graph nicely, those previous spikes are back on July 14th, then July 9th.
There doesn't seem to be a correlation with server activitiy. The site isn't especially busy today, we're not curently running anything like billing runs etc.

Is it possible to revert back to GCP till the issue is better understood? It's really hurting performance.

Attachments


Status changed to Awaiting Railway Response Railway 5 months ago


That was the next thing I was going to suggest, I have enabled the ability to migrate back for your account. You should see a dropdown with options that say: "Legacy"


Status changed to Awaiting User Response Railway 5 months ago


molhar
PROOP

5 months ago

Thanks, currently though I see two different EU Wests but no legacy label? I've tried refreshing the dashboard.

Attachments


Status changed to Awaiting Railway Response Railway 5 months ago


molhar
PROOP

5 months ago

I don't see anything in account settings.


molhar
PROOP

5 months ago

Hi Angelo, any update on this? Whilst our API/postgres latency has settled for now, we would still like to move to GCP until the underlying issue can be identified. Obviously happy to help with any investigation.


Jeez, that must be frustrating. We merged a PR that removed the labels, going to ping the team.


Status changed to Awaiting User Response Railway 5 months ago


iruffeyi
PRO

5 months ago

Hi Angelo, before I open another thread, I'll write here. We have been having the same problems for some time. Very simple queries often take 3-5 seconds and sometimes up to 12 seconds. I first thought it was due to our application, but I run simple UPDATE methods directly on the database and these also take 3-5 seconds. I have the feeling that this is the case since we switched to Metal. Though I have a feeling it's only in the prod environment. Is there anything we/you can change or do I need to create a separate thread for this?


Status changed to Awaiting Railway Response Railway 5 months ago


iruffeyi

Hi Angelo, before I open another thread, I'll write here. We have been having the same problems for some time. Very simple queries often take 3-5 seconds and sometimes up to 12 seconds. I first thought it was due to our application, but I run simple UPDATE methods directly on the database and these also take 3-5 seconds. I have the feeling that this is the case since we switched to Metal. Though I have a feeling it's only in the prod environment. Is there anything we/you can change or do I need to create a separate thread for this?

itsrems
EMPLOYEE

5 months ago

Heya, we'll need you to make a separate thread


Status changed to Awaiting User Response Railway 5 months ago


itsrems

Heya, we'll need you to make a separate thread

iruffeyi
PRO

5 months ago


Status changed to Awaiting Railway Response Railway 5 months ago


Status changed to Awaiting User Response itsrems 5 months ago


Railway
BOT

4 months ago

🛠️ The ticket Performance issue with disk operations on metal has been marked as todo.


Railway
BOT

4 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 4 months ago


Railway
BOT

2 months ago

✅ The ticket Performance issue with disk operations on metal has been marked as completed.


Railway
BOT

2 months ago

🛠️ The ticket Performance issue with disk operations on metal has been marked as in progress.


Railway
BOT

2 months ago

✅ The ticket Performance issue with disk operations on metal has been marked as completed.


Railway
BOT

2 months ago

🛠️ The ticket Performance issue with disk operations on metal has been marked as in progress.


Railway
BOT

2 months ago

🛠️ The ticket Performance issue with disk operations on metal has been marked as in progress.


Railway

🛠️ The ticket `Performance issue with disk operations on metal` has been marked as in progress.

molhar
PROOP

2 months ago

Just seeing the status updates on the ticket here, wondering if there's more information on progress with the slow postgres disk performance under metal?


Status changed to Awaiting Railway Response Railway about 2 months ago


sarahkb125
EMPLOYEE

2 months ago

Hi there - this is an in progress ticket with our platform team. We will let you know if there's an update!


Status changed to Awaiting User Response Railway about 2 months ago


molhar
PROOP

2 months ago

Thanks, can you let me know if we are being charged different rates for being on the legacy GCP servers?


Status changed to Awaiting Railway Response Railway about 2 months ago


You are not charged different rates for being on the legacy GCP servers.


Status changed to Awaiting User Response Railway about 2 months ago


angelo-railway

You are not charged different rates for being on the legacy GCP servers.

molhar
PROOP

2 months ago

Thanks Angelo. Look forward to the postgres issue being resolved and being able to migrate to metal.


Status changed to Awaiting Railway Response Railway about 2 months ago


Railway
BOT

2 months ago

✅ The ticket Performance issue with disk operations on metal has been marked as completed.


Loading...