Sudden resource spikes
xplusai
HOBBYOP

2 years ago

Hi, I'm having a bit of an issue with the spike in volume. I have multiple apps all connected to one postgres database which has a front volume attached to it. It's size is 500mb and for a while it was fine. My usage is slowly climbing up but it was still around 370mb today.

Suddenly it jumped up to 500mb and all my services shut down. I am on the Hobby plan so I grew the volume to 5gb and restarted my apps and services. Before I even did that, I noticed that the volume usage has jumped up to 788mb right now.

I am wondering if someone can help me diagnose what happened and how to fix it? I've cleaned up my database and deleted some useless data but it did nothing to help. I'm thinking maybe my logs are too much so can someone point me to how I can delete the logs stored on Railway?

I am quite sure that around the time that the volume usage spikes happened, nothing significant was happening and my apps and services were not being bombarded. It was actually quiet as I was handling some bug fixing and the services were actually down for the day. So I really am not sure what attributed to the volume usage spike and how to prevent it in the future.

3 Replies

2 years ago

Hello,

I'm sorry to say this but we aren't able to provide you such insights, we have no observability into what your code does, we are simply running your code as-is.

I will say that neither Build, Deploy, or HTTP logs take up any space on the volume, those are stored internally in our systems, thus they will not take up space in the Volume.

I would recommend adding more observability into your application so you can better understand the situation when such things happen.

Best,

Brody


xplusai
HOBBYOP

2 years ago

Would it be an issue with one of my apps and services or an issue with the database? The volume is only tied to the database right?


2 years ago

Personally, I don't see any issues with that usage.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...