Skip to content

Commit

Permalink
Removed info about limits.memory (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
satr authored Jan 16, 2024
1 parent dd1791f commit 2fc69c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
1 change: 0 additions & 1 deletion public-site/docs/src/guides/jobs/configure-jobs.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ spec:
memory: "256Mi"
cpu: "400m"
limits:
memory: "384Mi"
cpu: "500m"
node:
gpu: nvidia-k80
Expand Down
12 changes: 4 additions & 8 deletions public-site/docs/src/references/reference-radix-config/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -367,12 +367,13 @@ spec:
memory: "64Mi"
cpu: "50m"
limits:
memory: "64Mi"
cpu: "1000m"
```

The `resources` section specifies how much CPU and memory each component needs, that are shared among all Radix environments in a component. These common resources are overridden by environment-specific resources.

The property `limits.memory` cannot be explicitly set, it is set automatically with the same value as `requests.memory` to reduce potential risk of not sufficient memory on a node. [Read more](https://kubernetes.io/blog/2021/11/26/qos-memory-resources/) about memory resources and QoS.

### `variables` (common)

```yaml
Expand Down Expand Up @@ -430,12 +431,13 @@ spec:
memory: "128Mi"
cpu: "100m"
limits:
memory: "128Mi"
cpu: "2000m"
```

The `resources` section specifies how much CPU and memory each component needs, that are defined per Radix environment in a component. `resources` is used to ensure that each component is allocated enough resources to run as it should. `limits` describes the maximum amount of compute resources allowed. `requests` describes the minimum amount of compute resources required. If `requests` is omitted for a component it defaults to the settings in `limits`. If `limits` is omitted, its value defaults to an implementation-defined value. [More info](https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/)

The property `limits.memory` cannot be explicitly set, it is set automatically with the same value as `requests.memory`

For shared resources across Radix environments, refer to [common resources](./#resources-common).

#### `variables`
Expand Down Expand Up @@ -811,7 +813,6 @@ spec:
memory: "256Mi"
cpu: "400m"
limits:
memory: "384Mi"
cpu: "600m"
```

Expand Down Expand Up @@ -842,7 +843,6 @@ spec:
memory: "6Gi"
cpu: "1000m"
limits:
memory: "12Gi"
cpu: "2000m"
```

Expand Down Expand Up @@ -930,7 +930,6 @@ spec:
memory: "6Gi"
cpu: "1000m"
limits:
memory: "12Gi"
cpu: "2000m"
```

Expand Down Expand Up @@ -1285,7 +1284,6 @@ spec:
memory: "64Mi"
cpu: "100m"
limits:
memory: "128Mi"
cpu: "200m"
authentication:
clientCertificate:
Expand All @@ -1301,7 +1299,6 @@ spec:
memory: "128Mi"
cpu: "200m"
limits:
memory: "256Mi"
cpu: "400m"
authentication:
clientCertificate:
Expand Down Expand Up @@ -1339,7 +1336,6 @@ spec:
memory: "256Mi"
cpu: "400m"
limits:
memory: "384Mi"
cpu: "600m"
variables:
DB_NAME: "compute-db"
Expand Down

0 comments on commit 2fc69c7

Please sign in to comment.