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
Project ID:
N/A
N/A
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
So if I had a web app, redis, postgres, and potentially some workers then it would all compete for the same resource?
no, each service or plugin would get dedicated resources
but of course, that means depleting your 5$ trial credits faster
How much would they get?
as I've previously stated, I think it's 2 vcpu and 512mb of ram
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 resourcesSo if I spin up 5 postgres then does each service get
512 MB of RAM, 1 GB of Disk, and 2 vCPU
?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
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?
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
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?
that's correct
Got it
the next plan up would be the pro plan, with 32gb of ram
(and 32 vcpu)
Realistically those specs are more than enough for many things
indeed they are
$20/mo/seat
Seat = account on railway, correct?
correct
or a seat could refer to a team member you've paid to be a part of your pro team
okay
any other questions? 🙂
Yes, I think I have 1 more question
ask away
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
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
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?
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
okayokay, cool! thanks for answering all the questions
very helpful
the equivalent would be removing the active deployment
I've been looking for an alt to render, so might give this a try this week or so
I've heard render is expensive
Its a bit. The only thing I liked about it is that its pricing was predictable.
railway's hobby plan costs 5$ /month and comes with 5$ you use towards resource usage
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
yeah railway's discord is pretty great, if it wasn't me here it would be someone else helping you all the same
thanks again!
no problem!