Skip to content

Commit e46c071

Browse files
committed
Fixups
1 parent 78e46b9 commit e46c071

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

charts/sourcegraph/templates/searcher/searcher.StatefulSet.yaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,20 @@ spec:
5656
{{- $item | toYaml | nindent 10 }}
5757
{{- end }}
5858
- name: SEARCHER_CACHE_SIZE_MB
59-
# Set the cache size to ~90% of the PVC size
59+
# Set the cache size to ~45% of the PVC size
6060
{{- if .Values.searcher.storageSize }}
61-
value: {{ trimSuffix "Gi" .Values.searcher.storageSize | mul 900 | quote }}
61+
value: {{ trimSuffix "Gi" .Values.searcher.storageSize | mul 450 | quote }}
6262
{{- else }}
63-
# This value is ~90% of the default value for
63+
# This value is ~45% of the default value for
64+
# storageSize in the VolumeClaimTemplate below
65+
value: "23400"
66+
{{- end }}
67+
- name: SYMBOLS_CACHE_SIZE_MB
68+
# Set the cache size to ~45% of the PVC size
69+
{{- if .Values.searcher.storageSize }}
70+
value: {{ trimSuffix "Gi" .Values.searcher.storageSize | mul 450 | quote }}
71+
{{- else }}
72+
# This value is ~45% of the default value for
6473
# storageSize in the VolumeClaimTemplate below
6574
value: "23400"
6675
{{- end }}

charts/sourcegraph/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1073,7 +1073,7 @@ searcher:
10731073
# -- Name of the ServiceAccount to be created or an existing ServiceAccount
10741074
name: ""
10751075
# -- Size of the PVC for searcher pods to store cache data
1076-
storageSize: 26Gi
1076+
storageSize: 52Gi
10771077

10781078
storageClass:
10791079
# -- Enable creation of storageClass.

0 commit comments

Comments
 (0)