Skip to content

Commit c119f78

Browse files
committed
Make storage cache sizes customizable
1 parent 68f68d4 commit c119f78

3 files changed

Lines changed: 23 additions & 0 deletions

File tree

kubernetes/linera-validator/templates/proxy.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,15 @@ spec:
130130
--storage scylladb:tcp:scylla-client.scylla.svc.cluster.local:9042 \
131131
--storage-replication-factor {{ .Values.storageReplicationFactor | quote }} \
132132
--id "$ORDINAL" \
133+
{{- if .Values.blobCacheSize }}
134+
--blob-cache-size {{ .Values.blobCacheSize }} \
135+
{{- end }}
136+
{{- if .Values.certificateCacheSize }}
137+
--certificate-cache-size {{ .Values.certificateCacheSize }} \
138+
{{- end }}
139+
{{- if .Values.confirmedBlockCacheSize }}
140+
--confirmed-block-cache-size {{ .Values.confirmedBlockCacheSize }} \
141+
{{- end }}
133142
/config/server.json
134143
env:
135144
- name: RUST_LOG

kubernetes/linera-validator/templates/shards.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,15 @@ spec:
140140
{{- if .Values.notificationQueueSize }}
141141
--notification-queue-size {{ .Values.notificationQueueSize }}
142142
{{- end }}
143+
{{- if .Values.blobCacheSize }}
144+
--blob-cache-size {{ .Values.blobCacheSize }}
145+
{{- end }}
146+
{{- if .Values.certificateCacheSize }}
147+
--certificate-cache-size {{ .Values.certificateCacheSize }}
148+
{{- end }}
149+
{{- if .Values.confirmedBlockCacheSize }}
150+
--confirmed-block-cache-size {{ .Values.confirmedBlockCacheSize }}
151+
{{- end }}
143152
env:
144153
- name: RUST_LOG
145154
value: {{ .Values.logLevel }}

kubernetes/linera-validator/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ crossChainQueueSize: ""
6262
# Set to empty string to use default
6363
notificationQueueSize: ""
6464

65+
# Application-level cache sizes (default in binary is 1000)
66+
blobCacheSize: ""
67+
certificateCacheSize: ""
68+
confirmedBlockCacheSize: ""
69+
6570
# ============================================================================
6671
# Storage Configuration
6772
# ============================================================================

0 commit comments

Comments
 (0)