Skip to content

Commit

Permalink
Add DASer config
Browse files Browse the repository at this point in the history
  • Loading branch information
aWN4Y25pa2EK committed Jul 18, 2024
1 parent d01ad48 commit b3afd04
Show file tree
Hide file tree
Showing 4 changed files with 97 additions and 66 deletions.
13 changes: 12 additions & 1 deletion charts/celestia-node/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,17 @@ data:
RangeRequestTimeout = "{{ .Values.node.config.configtoml.Header.Client.RangeRequestTimeout }}"
[Pruner]
EnableService = {{ .Values.node.config.configtoml.Pruner.EnableService }}
{{- if or (eq .Values.node.settings.nodeType "full") (eq .Values.node.settings.nodeType "light") }}
[DASer]
SamplingRange = {{ .Values.node.config.configtoml.DASer.SamplingRange }}
ConcurrencyLimit = {{ .Values.node.config.configtoml.DASer.ConcurrencyLimit }}
BackgroundStoreInterval = "{{ .Values.node.config.configtoml.DASer.BackgroundStoreInterval }}"
SampleFrom = {{ .Values.node.config.configtoml.DASer.SampleFrom }}
SampleTimeout = "{{ .Values.node.config.configtoml.DASer.SampleTimeout }}"
SamplingWindow = "{{ .Values.node.config.configtoml.DASer.SamplingWindow }}"
{{- else }}
# DASer configuration is not included because node type is not full or light (Node type: {{ .Values.node.type }})
{{- end }}
---
apiVersion: v1
kind: ConfigMap
Expand All @@ -108,4 +119,4 @@ metadata:
data:
config.yaml: |
{{ toYaml .Values.node.otelAgent.config | indent 4 }}
{{- end }}
{{- end }}
7 changes: 7 additions & 0 deletions charts/celestia-node/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,13 @@ node:
RangeRequestTimeout: 8s
Pruner:
EnableService: false
DASer:
SamplingRange: 100
ConcurrencyLimit: 10
BackgroundStoreInterval: "1h0m0s"
SampleFrom: 10
SampleTimeout: "1m0s"
SamplingWindow: "10m0s"
## @param node.otelAgent OTel agent configuration for the node
##
otelAgent:
Expand Down
78 changes: 78 additions & 0 deletions examples/celestia-node/mocha-da-full.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
commonLabels: &commonLabels
chain_id: mocha-4
environment: mocha
network: da
type: &nodeType full # check
secretName: &secretName da-full-2 # check
pool: &pool pool-1 # check pool instance type to validate requests & limits
service:
external:
annotations:
external-dns.alpha.kubernetes.io/endpoints-type: "NodeExternalIP"
external-dns.alpha.kubernetes.io/hostname: "new-da-full-2-mocha-4.celestia-mocha.com,new-full-2-mocha-4.da.celestia-mocha.com"
external-dns.alpha.kubernetes.io/ttl: "60"
persistence:
storageClass: sbs-15k
size: 7Ti
dataSource:
apiGroup: snapshot.storage.k8s.io
kind: VolumeSnapshot
name: manual-full-snap
node:
nodeSelector:
k8s.scaleway.com/pool-name: *pool
persistentVolumeClaimRetentionPolicy:
whenDeleted: Delete
whenScaled: Delete
otelAgent:
enabled: true
grafanaOtelSecret:
name: grafana-otel-token
resources:
requests:
cpu: 6
memory: 20Gi
limits:
#cpu: 4 # not required since this pod should run on it's own dedicated node
memory: 24Gi
livenessProbe:
enabled: true
periodSeconds: 10
failureThreshold: 3
readinessProbe:
enabled: true
periodSeconds: 10
failureThreshold: 30
startupProbe:
enabled: true
periodSeconds: 10
failureThreshold: 60
args:
- *nodeType
- start
- --p2p.network=mocha-4
- --node.store=$(CELESTIA_HOME)
- --metrics
- --metrics.tls=false
- --p2p.metrics
settings:
nodeType: *nodeType
address: "eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wOS0wNiAxNDozOTowMy43MDIxODMzMjYgKzAwMDAgVVRDIG09KzAuMDY2OTM0NDQyIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiRTF2UkhNcHdSemtUWkw1VyJ9.wYoiTJ-DjUmVS2zQrF_NxCBQPS1jYK8AsMW1_x78x9jwkUcnShYMVA.rFXxLweIujelY4RY.3BY1Ux3khRhWWk-3t2xbBglV8gDwnz0hohdZBQlGKzPoE5ch25jbKjsIwj7tnRCQhLT5pHORhStDCunAY_STMpAvKYdxozmpwM-Y-izNTei5ig5MvKi0gIRAxTnWBA9as99TiubsKrgtyRHvTWWzSOTEWcv75b53QTjHKyTwCCmeBAEGSMHIkOd63jDcIbh0zn3szvaNlb1klPMy9HoPB5vOiKjsFS4yEkER-Ocy7DSAJ7YUM_pKt2UDcfwPkOxgK4cvL6AnHXlyYc3Y_5ur7G0tXtSQzyHu1WE8VqMRMtXa0u6Nsh3WPUaZdM2E1mlmv8xrZKTYSIltOd2lXTITnDDpSrywCLWImio9Zpujy-zGlg_sq0aqU0qeKOKQNpjKxyoLS9Dp1b54Xe9ja5XJBz8SMyvzSjG9Lew-csgOXXb1bl8e52fBGx3-joKlzF-hx1SSF2YJ6o2yFf4Gpg6N.4Jst-BQ6NhtPt3ZnlzbFKA"
node_id: "85c373da7ffc6cda5b73ef7ece1ceefb2c6b133e"
secret:
name: *secretName
config:
configtoml:
Core:
IP: consensus-full-1
RPC:
Address: 0.0.0.0
Gateway:
Enabled: true
Address: 0.0.0.0
Node:
StartupTimeout: 2m
diagnosticMode:
enabled: false
networkPolicy:
enabled: false
65 changes: 0 additions & 65 deletions examples/celestia-node/mocha.yaml

This file was deleted.

0 comments on commit b3afd04

Please sign in to comment.