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

a month 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

2 Replies

Status changed to Awaiting Conductor Response noahd 30 days ago


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

More information would be great.


a month 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 29 days ago


Railway
BOT

22 days ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 22 days ago


Loading...