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.jsonor similar), orCLI 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
23 days ago
There is a GraphQL mutation called serviceInstanceLimitsUpdate that allows you to limit memory/vCPU on instances.
3 Replies
23 days ago
There is a GraphQL mutation called serviceInstanceLimitsUpdate that allows you to limit memory/vCPU on instances.
23 days 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.
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
