R
Railway15mo ago
turck

Gateway timeout errors during heavy traffic

Hello we are having some traffic spikes and getting periodic gateway timeout errors
12 Replies
Percy
Percy15mo ago
Please provide your project ID or reply with N/A. Thread will automatically be closed if no reply is received within 10 minutes. You can copy your project's id by pressing Ctrl/Cmd + K -> Copy Project ID.
Percy
Percy15mo ago
No project ID was provided. Closing thread.
Brody
Brody15mo ago
what kind of app?
turck
turck15mo ago
LLM Chat app, uses streaming as well
Brody
Brody15mo ago
flask?
turck
turck15mo ago
next.js we got a heavy spike in traffic, metrics were way up from normal in the last few hours. was wondering if it was related to autoscaling
Brody
Brody15mo ago
railway only scales vertically the gateway timeout wouldn't be railways fault do you run your service behind a caching cloudflare proxy?
turck
turck15mo ago
yes we do, so you think its cloudflare rate limiting us? Actually just double checked, this url is not being proxied
Brody
Brody15mo ago
well there's your problem next js does have a built in production server, but I'm sure it has its limitations
turck
turck15mo ago
I am seeing network drops. If it was the applications fault, wouldn't the inbound not drop?
turck
turck15mo ago
Not trying to point fingers, just want to isolate the issue and resolve @Brody do you know why traffic is dropping
Brody
Brody15mo ago
i don’t, sorry, you'll have to do some debugging