How can I set the machine capacity for my railway service?
marcelonakash
PROOP

5 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

5 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 5 months ago


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

More information would be great.


5 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 5 months ago


Status changed to Solved medim 3 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...