5 months 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.jsonor 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!
Pinned Solution
5 months ago
There is a GraphQL mutation called serviceInstanceLimitsUpdate that allows you to limit memory/vCPU on instances.
3 Replies
5 months ago
There is a GraphQL mutation called serviceInstanceLimitsUpdate that allows you to limit memory/vCPU on instances.
5 months ago
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.
5 months ago
thanks a lot man! just downloaded the collection file and found that function. will experiment with it
Status changed to Open brody • 5 months ago
Status changed to Solved brody • 5 months ago
