Random CPU spike and unresponsive server

We switched from Vercel to Railway one week ago, and everything was going well until today.

For some reason the CPU usage spiked (no more users than usual) and most queries were hanging.

Is there any reason why?

Note the screenshot shows that 3 deployments were made (2 during the first spike), one at the end of the last spike.
But in fact, the first 2 deployments where not pushed to the bugged environment so shouldn't have an effect on the CPU usage.

The last deployment was made to the environment and seems to have fixed the issue for whatever reason.

Other than today, the CPU usage was super stable before that.
This is very likely a code issue. No incidents have been raised on Railway’s end
Strange because the code has been running flawlessly for multiple days with no changes
Is your traffic routed through cloudflare? It sounds to me like you got a lot of traffic/your code got overwhelmed and you crashed the db
Railway itsself could not have been the cause of this issue. All the platform does is host the code that you wrote
Yep routed through cloudflare indeed. Using the same code on multiple providers with even bigger traffic and no issues encountered before
Issue is happening again..
I am hosting an app not a db on railway. I have multiple replicas so even if one server was to crash I expect for the other replicas to pick up
As you can see on the screenshot, there were no major issues before yesterday
No traffic spike either during the last 2 days
Yeah I get it, obviously. It just seems strange that it happens suddenly the first time now. We didn't encounter any issues on Vercel (serverless so not really comparable) but also render and fly
Interesting, you’re on the pro plan so you can reach out to the team directly through support@railway.app

Make sure to include all the details mentioned here as well as your project id and account email

Looking for more? Join the community!

Recommended Posts
Incorrect hostname with private networkingI've set `mongo-2.railway.internal` (or mongo-2) as the endpoint name for private networking on the Do I need to configure anything in the Docker Image to support TCP proxy?For some reason I can't use the TCP proxy in the Minecraft Server template, I get "connection reset"Cron JobsHey everyone. I'm moving from Vercel to Railway so this is my first Railway project. I'm trying to iHow to connect FastAPI with Planetscale (mysqlclient error)Hey, how are you guys doing? I have a backend on Railway who is running with FastAPI (using this teHobby PlanI have a Discord bot which needs to be hosted, I had it hosted on railway before the recent pricing AttributeError: 'DatabaseWrapper' object has no attribute 'set_schema'I'm using django with mutlitenants using the package django-tenants==3.5.0 When i deployed the app tHosting errori am hosting my discord bot written in python using nextcord library and when i deploy it then it shDeploy angular applicationerror: ```2 minutes ago via GitHub Init main View Logs Removed Deployed 3 minutes ago vimongo on railwayI am trying to get mongo v7 up and running on railway. When using default options, I am getting follTCP Proxy timeoutI'm trying to start a Redis server with the official Docker image from Docker Hub with #TCP + LogginHow to move from Working Localhost w/ Django Websockets to Railway production?I had a functioning django websocket fantasy draft on my local host using daphne and redis. However,There's suddenly two new random columns in my database??I went in and checked my railway dashboard and to my surprise there's two new completely random dataRailway having issues with Mongoose NPM package???Locally my code works fine, I can connect to Mongo using Mongoose no issues but when on Railway it rNo VAT taxes on invoicesHello everyone I've just joined this server. On my invoices, I don't see any VAT tax prices includeIssue with mounting volumeHello, I have an instance of n8n running, I need to attach a volume to keep community node persistenPin memory usageI'm running a service that scales memory usage unpredictably and quickly, and it crashes in these caVariables redeploy infoSometimes when I don't have an active deployment and I change the variables it triggers a redeploy bStatic IPsIs there any updates for static IPs? I would love to use Railway for a Discord bot so everything is Prebuilt Mqtt Service and PortsLooking for some guidance. Currently have a couple different services in my project, including a posMySQL queries timeout or lead to blank screen on web versionFor the last 2 days or so I've been running into some problems with my personal project database. It