Skip to content

Commit

Permalink
Add block validator memory settings
Browse files Browse the repository at this point in the history
  • Loading branch information
a-thomas-22 committed Dec 18, 2024
1 parent 70390be commit 6ce5355
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/nitro/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ maintainers:

type: application

version: 0.6.20
version: 0.6.21

appVersion: "v3.2.1-d81324d"
2 changes: 2 additions & 0 deletions charts/nitro/ci/sepolia-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ resources:
env:
resourceMgmtMemFreeLimit:
enabled: true
blockValidatorMemFreeLimit:
enabled: true

configmap:
data:
Expand Down
4 changes: 4 additions & 0 deletions charts/nitro/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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_MEM__FREE__LIMIT
value: {{ printf "%dB" (int (mulf $valueMi ($.Values.env.blockValidatorMemFreeLimit.multiplier | default 0.05) 1048576)) }}
{{- end }}
{{- end -}}
{{- end -}}

Expand Down
5 changes: 5 additions & 0 deletions charts/nitro/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 6ce5355

Please sign in to comment.