RAM & CPU per instance?
devlzcode
PROOP

6 months ago

I understand that we're alotted 32 vcpu and 32 gb ram per service (corret me if im wrong) but how much is actually used by a single instance? my postgres db is a bit too slow for me and i believe the perf gain i want can be solved by some slight vertical scaling

Solved

4 Replies

Railway
BOT

6 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


If you check the usage tab on your DB, you can see the resources that your DB is using. There wouldn't be more vertical scaling we would do, if your DB needs the CPU, it can use the CPU. There are however other things we can check to see what might be impacting performance. Things such as if you are using the public network, or queries you are doing.

Can you share some metrics about the DB performance that you can see that can be made faster?


Status changed to Awaiting User Response Railway 6 months ago


angelo-railway

If you check the usage tab on your DB, you can see the resources that your DB is using. There wouldn't be more vertical scaling we would do, if your DB needs the CPU, it can use the CPU. There are however other things we can check to see what might be impacting performance. Things such as if you are using the public network, or queries you are doing.Can you share some metrics about the DB performance that you can see that can be made faster?

devlzcode
PROOP

6 months ago

I meant to use the DB as an example but this is more of a general question. Is a single instance the same as an ec2 instance? If I increase the # of instances to 2 is it then halving the allocated resources for a single instance?


Status changed to Awaiting Railway Response Railway 6 months ago


devlzcode

I meant to use the DB as an example but this is more of a general question. Is a single instance the same as an ec2 instance? If I increase the # of instances to 2 is it then halving the allocated resources for a single instance?

Great question.

No, each instance isn't sharing the same quota. You'd just get 2x the resources. We can't scale DBs like that because volumes and services are 1:1 but for say queue workers, you'd get a new CPU budget for each instance, up to 64 cores in this case (32 x 2).


Status changed to Awaiting User Response Railway 6 months ago


Railway
BOT

5 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 5 months ago


Loading...