Extremely Slow Speeds without change
alex-bytes
PROOP

9 months ago

I've had a sveltekit / laravel deployment up for a week in production without issues. Out of nowhere today, data fetching has become so slow that I had to increase timeouts from 10 to 25 seconds just so that the data wouldn't time out. It's been incredibly frustrating.

I have the identical code running in a staging environment and my local also uses staging. These systems have been working fast and fine for this past week too. I literally cannot figure out why this would be the case? What's happening?

Solved

25 Replies

alex-bytes
PROOP

9 months ago

cdf1815d-d3de-4820-866b-7fea03248e92


alex-bytes
PROOP

9 months ago

I've tried switching up servers, locations, redeploying all code inside the production environment.. even reverted to git branches from weeks ago to see if it's anything related to code.


alex-bytes
PROOP

9 months ago

But it can't be the code. Staging runs perfectly fine and fast. So does my local.


alex-bytes
PROOP

9 months ago

What happened today some hours ago is that my postgresql in production was migrated to metal


alex-bytes
PROOP

9 months ago

I migrated it once more back to legacy "just in case"


alex-bytes
PROOP

9 months ago

project: cdf1815d-d3de-4820-866b-7fea03248e92
service: 6fc7d6e6-2ed1-4887-8a2a-7fd8d8722cd9
env: c78560a7-98ec-4264-9b77-000a99c91588


alex-bytes
PROOP

9 months ago

Hello? Still the same issue..


alex-bytes
PROOP

9 months ago

I have switched the frontend back to metal and still, it's just extremely slow. staging works flawlessly. I haven't made code changes in over a week


alex-bytes
PROOP

9 months ago

it seems I'm able to narrow it down to the laravel backend


alex-bytes
PROOP

9 months ago

That's the slowpoke


alex-bytes
PROOP

9 months ago

I'm migrating it to metal servers along with everything else to hopefully have it back up to speed


alex-bytes
PROOP

9 months ago

This fixed it…


9 months ago

Hey, I have a simillar issue - (though using Django backend with postgres and NextJS front). All in the same region, just a few days ago the delay on write requests is slow. For example when saving or creating a new object it takes a few seconds for the request to come back, if I repeat a simillar request right after it works at normal fast speed.

Started happening just a few days ago


fredgig
PRO

9 months ago

Similar issue with a Django backend and Postgres database. Write queries can be extremely slow and cause timeouts after 30+ seconds. Started just a few days ago.


alex-bytes
PROOP

9 months ago

@fred my issue was that railway migrated the postgresql database to another location and my laravel backend stayed where it was. Deploying my laravel backend to the same server region fixed this.

Imo this is a major oversight on railway @Percy


alex-bytes
PROOP

9 months ago

You should migrate connected systems in one go.


alex-bytes
PROOP

9 months ago

I know it's a high ask but not impossible


alex-bytes
PROOP

9 months ago

@fred even if same Region, try moving both your deployments somewhere else, then back onto the same metal server of your choice.


9 months ago

please do not ping the team. if you have feedback, post it on the station or #🤗|feedback


okarmazin
PRO

9 months ago

I'll be writing my own help thread for sure, just quickly commenting here to confirm what fred said that initial WRITE database query seems to have become 2 orders of magnitude slower on Metal a few days ago (during the weekend I think, didn't have monitoring in place…) without any changes to the application data access patterns. But I don't want to cry wolf yet without being sure I didn't cause that.


xmo
HOBBY

9 months ago

had a similar issue on us west metal. starting a few days ago without warning my postgres requests would spike and take like 20+ seconds to complete. it appeared to only happen when writing to the db not reading from the db and not all the time it was inconsistent. i fixed by migrating over to us east metal which seemingly resolved the problems immediately


aridstudio
PRO

9 months ago

I have the same problem now


9 months ago

please share project/service ids and timestamps everyone. without specific details, the team can’t identify what’s happening.


okarmazin
PRO

9 months ago

My problem is hopefully being worked on - you can read about it here https://station.railway.com/questions/assistance-requested-postgre-sql-sudden-04258f1a

I encourage all other people who commented in this thread to write their own help threads similar to mine. Your reports will help the Railway team prioritize.


9 months ago

!s


Status changed to Solved brody 9 months ago


Loading...