Skip to content
How can I set the machine capacity for my railway service?
marcelonakash
OP

10 months ago

I have a repository resource in railway with the following railway.toml file:

[build]

builder = "dockerfile"

dockerfilePath = "Dockerfile"

[deploy]

restartPolicyType = "on_failure"

restartPolicyMaxRetries = 3

numReplicas = 1

# Medium machine resources (suitable for browser tests)

[deploy.resources]

cpuCores = 2

memoryMB = 2048

Why my container is consuming 6 gb?

Solved$10 Bounty

Pinned Solution

10 months ago

That's not how you set memory and cpu cores.

You can check the available fields in the schema:

https://backboard.railway.app/railway.schema.json

If you take a look at it, there's a [deploy.limitOverride.containers] with the fields cpu and memoryBytes

2 Replies

Status changed to Awaiting Conductor Response noahd • 10 months ago


6 GB of...? Storage? RAM? Egress?

More information would be great.


10 months ago

That's not how you set memory and cpu cores.

You can check the available fields in the schema:

https://backboard.railway.app/railway.schema.json

If you take a look at it, there's a [deploy.limitOverride.containers] with the fields cpu and memoryBytes


Status changed to Awaiting User Response Railway • 10 months ago


Status changed to Solved medim • 7 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...