diff --git a/charts/nitro/Chart.yaml b/charts/nitro/Chart.yaml index fe5fbdf..ccca64b 100644 --- a/charts/nitro/Chart.yaml +++ b/charts/nitro/Chart.yaml @@ -7,6 +7,6 @@ maintainers: type: application -version: 0.6.20 +version: 0.6.21 appVersion: "v3.2.1-d81324d" diff --git a/charts/nitro/README.md b/charts/nitro/README.md index 28bc357..5d2498c 100644 --- a/charts/nitro/README.md +++ b/charts/nitro/README.md @@ -96,6 +96,8 @@ helm install xai offchainlabs/nitro -f values.yaml | `env.nitro.goMemLimit.multiplier` | The multiplier of available memory to use for nitro | `0.9` | | `env.resourceMgmtMemFreeLimit.enabled` | Enable nitro resource management | `false` | | `env.resourceMgmtMemFreeLimit.multiplier` | The multiplier of available memory to use | `0.05` | +| `env.blockValidatorMemFreeLimit.enabled` | Enable block validator memory management | `false` | +| `env.blockValidatorMemFreeLimit.multiplier` | The multiplier of available memory to use | `0.05` | | `persistence.enabled` | Enable persistence | `true` | | `persistence.size` | Size of the persistent volume claim | `500Gi` | | `persistence.storageClassName` | Storage class of the persistent volume claim | `nil` | diff --git a/charts/nitro/ci/sepolia-values.yaml b/charts/nitro/ci/sepolia-values.yaml index 3c07d39..6463cae 100644 --- a/charts/nitro/ci/sepolia-values.yaml +++ b/charts/nitro/ci/sepolia-values.yaml @@ -43,6 +43,8 @@ resources: env: resourceMgmtMemFreeLimit: enabled: true + blockValidatorMemFreeLimit: + enabled: true configmap: data: diff --git a/charts/nitro/templates/_helpers.tpl b/charts/nitro/templates/_helpers.tpl index ddc7728..b690b4a 100644 --- a/charts/nitro/templates/_helpers.tpl +++ b/charts/nitro/templates/_helpers.tpl @@ -115,6 +115,10 @@ nitro args - name: {{ $envPrefix }}_NODE_RESOURCE__MGMT_MEM__FREE__LIMIT value: {{ printf "%dB" (int (mulf $valueMi ($.Values.env.resourceMgmtMemFreeLimit.multiplier | default 0.05) 1048576)) }} {{- end }} +{{- if $.Values.env.blockValidatorMemFreeLimit.enabled }} +- name: {{ $envPrefix }}_NODE_BLOCK__VALIDATOR_MEMORY__FREE__LIMIT + value: {{ printf "%dB" (int (mulf $valueMi ($.Values.env.blockValidatorMemFreeLimit.multiplier | default 0.05) 1048576)) }} +{{- end }} {{- end -}} {{- end -}} diff --git a/charts/nitro/values.yaml b/charts/nitro/values.yaml index dcbc13b..5254d8c 100644 --- a/charts/nitro/values.yaml +++ b/charts/nitro/values.yaml @@ -49,6 +49,8 @@ updateStrategy: ## @param env.nitro.goMemLimit.multiplier The multiplier of available memory to use for nitro ## @param env.resourceMgmtMemFreeLimit.enabled Enable nitro resource management ## @param env.resourceMgmtMemFreeLimit.multiplier The multiplier of available memory to use +## @param env.blockValidatorMemFreeLimit.enabled Enable block validator memory management +## @param env.blockValidatorMemFreeLimit.multiplier The multiplier of available memory to use env: splitvalidator: goMemLimit: @@ -61,6 +63,9 @@ env: resourceMgmtMemFreeLimit: enabled: false multiplier: 0.05 + blockValidatorMemFreeLimit: + enabled: false + multiplier: 0.05 ## @param persistence.enabled Enable persistence ## @param persistence.size Size of the persistent volume claim