Skip to content

Commit

Permalink
Add note about tmpfs memory usage
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Prodan <[email protected]>
  • Loading branch information
stefanprodan committed Nov 18, 2023
1 parent a4906d7 commit 7e29057
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions content/en/flux/installation/configuration/vertical-scaling.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,16 @@ patches:
name: "(kustomize-controller|helm-controller|source-controller)"
```
{{% alert color="info" title="I/O Device Contention" %}}
Note that further increasing the number of concurrent reconciliations for kustomize-controller,
without using a [RAM-backed filesystem](#enable-in-memory-kustomize-builds),
may not have the desired effect due to IO contention on the Kubernetes node disk.
{{% /alert %}}
## Enable in-memory kustomize builds
To speed up the Flux kustomize build operations, it is advised to use tmpfs for the `/tmp` filesystem:
When increasing the number of concurrent reconciliations, it is advised
to use tmpfs for the `/tmp` filesystem to speed up the Flux kustomize build operations:

```yaml
apiVersion: kustomize.config.k8s.io/v1beta1
Expand All @@ -86,13 +93,12 @@ patches:
name: kustomize-controller
```

{{% alert color="info" title="“I/O Device Contention" %}}
Note that increasing the number of concurrent reconciliations for kustomize-controller,
without using a RAM-backed filesystem, may not have the desired effect due to
IO contention on the Kubernetes node disk.
{{% alert color="info" title="Memory usage" %}}
Note that tmpfs will count against the controller's pod memory usage, so it is advised to
make use of the `GitRepository` [ignore feature](/flux/components/source/gitrepositories/#ignore-spec)
to exclude non-YAML files from remote sources.
{{% /alert %}}


## Enable Helm repositories caching

If Flux connects to Helm repositories hosting hundreds of Helm charts,
Expand Down

0 comments on commit 7e29057

Please sign in to comment.