Skip to content

Commit 77edb1f

Browse files
committed
docs: self host machine override
1 parent 6e21e01 commit 77edb1f

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

docs/self-hosting/overview.mdx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ While [limits](#limits) are generally configurable when self-hosting, some featu
4141
| Community support ||| Access to our Discord community |
4242
| ARM support ||| ARM-based deployments |
4343

44-
4544
## Limits
4645

4746
Most of the [limits](/limits) are configurable when self-hosting, with some hardcoded exceptions. You can configure them via environment variables on the [webapp](/self-hosting/env/webapp) container.
@@ -92,6 +91,18 @@ All fields are optional. Partial overrides are supported:
9291
}
9392
```
9493

94+
You can also set cpu/memory requests for each machine type. This is used in k8s environments to set the minimum resources required for each machine type.
95+
We do not recommend setting these values to zero, as it can cause the k8s scheduler to schedule an infinite number of pods in parallel and cause the pods to get killed due to resource exhaustion.
96+
97+
```json
98+
{
99+
"defaultMachine": "small-2x",
100+
"machines": {
101+
"small-1x": { "cpu": 0.5, "memory": 0.5, "cpuRequest": 0.25, "memoryRequest": 0.25 }
102+
}
103+
}
104+
```
105+
95106
## Community support
96107

97108
It's dangerous to go alone! Join the self-hosting channel on our [Discord server](https://discord.gg/NQTxt5NA7s).

0 commit comments

Comments
 (0)