Skip to content

Commit

Permalink
fix(charts): add resources for sequencer/cometbft (#1254)
Browse files Browse the repository at this point in the history
## Summary
Adds resource request and limit defaults + lower for local dev values.

## Background
Want to ensure sequencer and cometbft get adequate resources
  • Loading branch information
joroshiba authored Jul 9, 2024
1 parent 0fe870c commit 69db1bd
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/sequencer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.18.0
version: 0.18.1
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
Expand Down
14 changes: 14 additions & 0 deletions charts/sequencer/templates/statefulsets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ spec:
- containerPort: {{ .Values.ports.sequencerMetrics }}
name: seq-metric
{{- end }}
resources:
requests:
cpu: {{ .Values.resources.sequencer.requests.cpu }}
memory: {{ .Values.resources.sequencer.requests.memory }}
limits:
cpu: {{ .Values.resources.sequencer.limits.cpu }}
memory: {{ .Values.resources.sequencer.limits.memory }}
- name: cometbft
imagePullPolicy: IfNotPresent
command: [ "cometbft", "start" ]
Expand All @@ -78,6 +85,13 @@ spec:
- containerPort: {{ .Values.ports.cometbftMetrics }}
name: cometbft-metric
{{- end }}
resources:
requests:
cpu: {{ .Values.resources.cometbft.requests.cpu }}
memory: {{ .Values.resources.cometbft.requests.memory }}
limits:
cpu: {{ .Values.resources.cometbft.limits.cpu }}
memory: {{ .Values.resources.cometbft.limits.memory }}
volumes:
- name: cometbft-config-volume
configMap:
Expand Down
16 changes: 16 additions & 0 deletions charts/sequencer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,22 @@ cometbft:
secret:
resourceName: "projects/$PROJECT_ID/secrets/privValidatorKey/versions/latest"

resources:
cometbft:
requests:
cpu: 4000m
memory: 4Gi
limits:
cpu: 4000m
memory: 4Gi
sequencer:
requests:
cpu: 4000m
memory: 4Gi
limits:
cpu: 4000m
memory: 4Gi

sequencer-relayer:
enabled: false

Expand Down
16 changes: 16 additions & 0 deletions dev/values/validators/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,21 @@ genesis:
- address: astria13ahqz4pjqfmynk9ylrqv4fwe4957x2p0h5782u
balance: "48"

resources:
cometbft:
requests:
cpu: 1000m
memory: 500Mi
limits:
cpu: 1000m
memory: 500Mi
sequencer:
requests:
cpu: 1000m
memory: 500Mi
limits:
cpu: 1000m
memory: 500Mi

storage:
enabled: false

0 comments on commit 69db1bd

Please sign in to comment.