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?
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
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