Programmatically setting instance memory and vCPU in Railway
phukon
HOBBYOP

23 days ago

Hi everyone,

I’m trying to find out whether it’s possible to programmatically configure instance resources in Railway, specifically memory and vCPU allocation.

Is there a way to set these values using:

  • the Railway API,

  • configuration files (e.g., railway.json or similar), or

  • CLI commands during deployment?

My goal is to automate deployments and dynamically control resource allocation without manually changing settings through the dashboard.

If this is supported, could someone point me to the relevant documentation or an example workflow?

Thanks in advance!

Solved$10 Bounty

Pinned Solution

There is a GraphQL mutation called serviceInstanceLimitsUpdate that allows you to limit memory/vCPU on instances.

3 Replies

There is a GraphQL mutation called serviceInstanceLimitsUpdate that allows you to limit memory/vCPU on instances.


There's also a limitOverride attribute in the railway.json schema. (https://backboard.railway.app/railway.schema.json)


0x5b62656e5d

There is a GraphQL mutation called serviceInstanceLimitsUpdate that allows you to limit memory/vCPU on instances.

phukon
HOBBYOP

23 days ago

thanks a lot man! just downloaded the collection file and found that function. will experiment with it


Status changed to Open brody 23 days ago


Status changed to Solved brody 23 days ago


Loading...