R
Railway•16mo ago
tansan

Specs and cost for postgres?

I am playing with the service and added a postgres, but I am unclear of its specs and what the pricing for it is. Could anyone point me to some resources to read more on pricing?
37 Replies
Percy
Percy•16mo ago
Project ID: N/A
tansan
tansanOP•16mo ago
N/A
Brody
Brody•16mo ago
the specs are the same as what your plan allows for, you are on the trial plan, so I think that's 2vcpu and 512mb of ram and usage is calculated the same as it would be for your services https://railway.app/pricing
tansan
tansanOP•16mo ago
So if I had a web app, redis, postgres, and potentially some workers then it would all compete for the same resource?
Brody
Brody•16mo ago
no, each service or plugin would get dedicated resources but of course, that means depleting your 5$ trial credits faster
tansan
tansanOP•16mo ago
How much would they get?
Brody
Brody•16mo ago
as I've previously stated, I think it's 2 vcpu and 512mb of ram
tansan
tansanOP•16mo ago
Am I think about this wrongly? It sounds like to me that I get a server with some resources and I can install any services on there. They all just share the same ram, cpu, etc... In this case, I am on this plan: 512 MB of RAM, 1 GB of Disk, and 2 vCPU The part that confused me is when you said each plugin would get dedicated resources:
no, each service or plugin would get dedicated resources
So if I spin up 5 postgres then does each service get 512 MB of RAM, 1 GB of Disk, and 2 vCPU?
Brody
Brody•16mo ago
that's correct but it's not like those resources will be used up, postgres doesn't use all 2vcpu and 512mb of ram, you are only charged for what you use postgres at idle uses like 0.0 vcpu and under 100mb of ram
tansan
tansanOP•16mo ago
Got it. I'm not suggesting I am at a scale that needs to be met, but just want to understand the pricing structure. So if my web app needed more than 512mb of ram, then I would essentially have to upgrade to a larger plan to get more resources right?
Brody
Brody•16mo ago
well you are on a trial plan, regardless if you need higher resources or not, you will eventually run out of the trial 5$ credit then you'd have to upgrade to the hobby plan to continue using the platform
tansan
tansanOP•16mo ago
Okay, let me rephrase the question. If I am on the hobby plan at $5/m which has 8gb of ram, and let's say I had one service that needed more than 8gb of ram then would I need to upgrade to a larger plan to accommodate that 1 service?
Brody
Brody•16mo ago
that's correct
tansan
tansanOP•16mo ago
Got it
Brody
Brody•16mo ago
the next plan up would be the pro plan, with 32gb of ram (and 32 vcpu)
tansan
tansanOP•16mo ago
Realistically those specs are more than enough for many things
Brody
Brody•16mo ago
indeed they are
tansan
tansanOP•16mo ago
$20/mo/seat Seat = account on railway, correct?
Brody
Brody•16mo ago
correct or a seat could refer to a team member you've paid to be a part of your pro team
tansan
tansanOP•16mo ago
okay
Brody
Brody•16mo ago
any other questions? 🙂
tansan
tansanOP•16mo ago
Yes, I think I have 1 more question
Brody
Brody•16mo ago
ask away
tansan
tansanOP•16mo ago
Is there a way to cap usage? or cap the $ amount per month? Just in case of some dev makes an infinite loop mistake or DDoS of resources or something
Brody
Brody•16mo ago
there is not I've done that myself, an infinite loop bug in code I pushed before bed, woke up the next morning with a usage alert from railway, deployed a fix and usage went back to normal, you are charged per minute, so I probably only costed myself 3$ tl;dr the lack of a usage cap is not nearly as much of a problem as you might think
tansan
tansanOP•16mo ago
Oh man infinite loops on AWS lambda and step functions scare the crap out of me if caught too late, rekt But not an applicable scenario here. Are there any scale-to-zero services similar to fly.io machines?
Brody
Brody•16mo ago
and my infinite loop was multiple threaded infinite loops, so i promise, not a big deal railway doesn't have scale to zero at all, manually or automatically
tansan
tansanOP•16mo ago
okayokay, cool! thanks for answering all the questions very helpful
Brody
Brody•16mo ago
the equivalent would be removing the active deployment
tansan
tansanOP•16mo ago
I've been looking for an alt to render, so might give this a try this week or so
Brody
Brody•16mo ago
I've heard render is expensive
tansan
tansanOP•16mo ago
Its a bit. The only thing I liked about it is that its pricing was predictable.
Brody
Brody•16mo ago
railway's hobby plan costs 5$ /month and comes with 5$ you use towards resource usage
tansan
tansanOP•16mo ago
It definitely adds up quick though The more i think about it, the more I think railway's model might be better fit for one of my projects really appreciate the quick replies! especially on discord! other hosting services aren't really discord oriented
Brody
Brody•16mo ago
yeah railway's discord is pretty great, if it wasn't me here it would be someone else helping you all the same
tansan
tansanOP•16mo ago
thanks again!
Brody
Brody•16mo ago
no problem!
Want results from more Discord servers?
Add your server