7 months ago
Hello,
I have a question about the hard limit when using volumes (like for example db), if for any reason I'll reach the hard limit, am I going to lose all the data in the db? or you will just shut down the db and once I remove the hard limit I'll just need to redeploy the db?
Will these policies apply in this case?
https://docs.railway.com/reference/pricing/plans#how-long-does-railway-keep-my-volume-data-if-i-am-no-longer-on-a-paid-plan
Also, one more question, I've seen that a backup can be scheduled daily/weekly/monthly, is there a way to schedule hourly or even less? like every 10 min?
14 Replies
7 months ago
To be honest, I am not really sure about this one. The database will crash when the volume attached to it is full. On a paid plan, as long as the subscription is active, it wouldn't get deleted, as per the documentation. On the free/trail plan, it will also crash when the volume is full, it won't get deleted immediately but if you want to access them, you will have to upgrade to a paid plan, resize the volume and redeploy it. The docs mentions an expiry, I am not sure how that applies to the free plan, perhaps it's just for the trial?
Backups are a pro plan feature and no, you can't have an hourly backup, only daily, weekly or monthly.
I'm not speaking about the volume being full, I mean hard limit in terms of money, this one:
https://docs.railway.com/guides/optimize-usage
but I might have understood wrongly how this works…in my mind, when I set this limit, all the services will be shut down whenever I spend all the money in the pot (and tbh, I love this thing 😍 compared to aws where you can spend billions)
atm I'm on the free trial but I'm planning to upgrade to hobby or pro (I'm not sure yet), given I'm new to railway I'm just trying to understand how things works to do the right choice.
if I can give a feedback I think it might be a good thing to let us doing more backups (obviously paying more if needed)
7 months ago
Your db will enter recovery mode and keep crashing in a loop when it doesn't have enough space left. You may lose some recent data from last checkpoint
Yes those policies do apply
As for the volume backups, they are only available to Pro plans and can only be made at most daily
But you can use this template: https://railway.com/deploy/I4zGrH
Attach it to your db and configure it to do the backup to any s3 bucket. It's based on a cron schedule so yeah you can do anything, even 10 minutes if you like.
Let me know if these have answered your question
7 months ago
I think your services will shut down but railway will keep your volume data for the specified period as stated in the link you posted.
7 months ago
You are right on this one, once the hard limit is reached, everything will be shut down to ensure that you won't be charged for more than what you have set it as. Feel free to create a feedback thread for more frequent backups on the pro plan.
ok, so in theory, the db volume will be deleted right? because even if the db is shut down (so no RAM & no CPU are used) the volume it is still a cost for you (1/10/100gb or whatever)….
for example if I have an app with 100k users, I set a 200£ limit, I reach the limit, you will STOP all the services and DELETE the data in the volume? this is a logical solution but also a bit scaring….I would expect like 24/48h margin to be able to remove/update the hard limit without loosing everything….
7 months ago
Data is the most important and valuable. Railway will eat the cost and keep the data
You will be charged when you do renew your plan but if you simply leave as i said railway will eat the cost
As for your concern about going on a spending spree on AWS, it can happen on railway too which is why they have a spending limit which you can set but it's not bad like AWS where it's notification only. you can specify a hard limit
7 months ago
This is a good question, I'll ask internally.
7 months ago
Hey, no this is not the case, once you hit the hard limit, the volume won't be deleted and it won't increase your usage, despite it still being there.
7 months ago
Great, do you have any further questions? If not, then I'll go ahead and mark this thread as solved.
You can close it for now, if I need something else I'm open a new one! Have a good evening!
7 months ago
!s
Status changed to Solved uxuz • 7 months ago