Database pricing
If I spin up a standalone database, get some amount of traffic, depending on what resources and prices will I be charged?
If I understand correctly, it would be CPU, RAM, Network egress, and $0,25 per GB per month.
Am I right?
Can you provide real life examples of usage?
Solution:Jump to solution
I'd like to note egress is only traffic going out, you are not charged for incoming traffic (ingress) and furthermore, if you communicate with your database exclusively through the private network then there will be zero network costs, you are not charged for any network traffic within the private network
23 Replies
Project ID:
N/A
N/A
yes you would be charged (every billing cycle) you do get 5$ in credits though.
databases are subject to the exact same resource pricing as everything else, 10$ per 1gb mem, 20$ per 1 vcpu, etc etc
Just wondering about how the resources usage is typically distributed. For instance, the database pricing example does not indicate how much persistent storage is used.
how much persistent storage used is going to be vastly different from user to user
you are only charged minutely, so if what you're doing ends up using more resources than you'd like you can shut down the stuff and only pay for what you used
Agreed
so unfortunately I don't have any metrics and costs to show you as all my databases sit idle
True, but I found myself thinking about what would be cheaper between different database hosting services, and wanted to log my thoughts here for others to easily find
No worries π
If anyone has some real life metrics, I won't say no!
hopefully someone can come by with metrics of databases in use, might be helpful to state what database you are interested in
I'll take any database for future readers comparison basis
hey i have one running so ill check it out when im home (1-2hrs approx)
im pretty sure you are only billed for the bandwidth of GBs leaving or entering your database
so when it's idle you should be fine as the plan gives you some gbs shared storage
That would be surprising
woops im a monkey
so disk volumes carry 2 costs:
Egress (like brody said) data leaving/entering: $0.10 / GB
Disk (idle too even when deploy is off): $0.00000579 / GB / Minute
so to store 5gb disk for a whole month:
0.00000579 * 5 * 60 * 24 * 30 = 1.25$
i believe this is correct
You're missing a x24 in there but it seems correct for a database with no activity
With an active database, wouldn't you get memory and cpu usage aswell?
oops
If you are running the deploy then yes ofcourse!
but if your deploy is offline however data is still retained then its only these
if youre deployed it's those + cpu & ram
Agreed
Is your database active?
Solution
I'd like to note egress is only traffic going out, you are not charged for incoming traffic (ingress) and furthermore, if you communicate with your database exclusively through the private network then there will be zero network costs, you are not charged for any network traffic within the private network
as you've probably seen, you can now sleep your database, during sleep you won't be charged for any cpu/mem but you would still be charged for the volume storage of course
internal none?? so from service to service would only cost me disk volume ?
Disk volume
Memory
CPU
Just no network egress
Hey @Brody ! Since you've been quite helpful today, I thought l'd try my luck
The docs say to reach out if we need more db space, l'd like to know how that works!
railway has been going through a lot of changes fast, thus the docs are slightly out of date, the hobby plan is limited to 5gb volumes and the pro plan is limited to 50gb volumes, so if you wanted more spcae for your databases you would want to upgrade to pro, and then if 50gb is still not enough thats when you can email the team and work on how much more storage you want and what it would cost
at this time 5gb is the limit per volume, the team may look into increasing it in the future
Hope they do!
And love all the new features and the trend
train hasn't stopped yet π