Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/oxia-cluster/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ apiVersion: v2
name: oxia-cluster
description: Oxia cluster
type: application
version: 0.0.7
version: 0.0.8
appVersion: "1.16.0"
home: https://oxia-db.github.io
sources:
Expand Down
16 changes: 16 additions & 0 deletions charts/oxia-cluster/templates/dataserver-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ spec:
volumeMounts:
- name: data
mountPath: /data
{{- with .Values.server.wal }}
- name: wal
mountPath: {{ $.Values.server.config.storage.wal.dir }}
{{- end }}
- name: daemon-config
mountPath: /oxia/conf
readOnly: true
Expand Down Expand Up @@ -165,3 +169,15 @@ spec:
resources:
requests:
storage: {{ .Values.server.storage }}
{{- with .Values.server.wal }}
- metadata:
name: wal
spec:
accessModes: [ "ReadWriteOnce" ]
{{- if or .storageClassName $.Values.server.storageClassName }}
storageClassName: {{ .storageClassName | default $.Values.server.storageClassName }}
{{- end}}
resources:
requests:
storage: {{ .storage }}
{{- end }}
7 changes: 7 additions & 0 deletions charts/oxia-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ server:
memory: 1Gi
storage: 8Gi
#storageClassName: xxx
# Optionally give the WAL its own dedicated volume, mounted at the configured
# storage.wal.dir, so WAL fsyncs don't compete with database I/O for the same
# disk (and the WAL can use a different, e.g. faster, storage class).
# When unset, wal and database share the single "data" volume as before.
# wal:
# storage: 8Gi
# #storageClassName: xxx # defaults to server.storageClassName
config:
server:
public:
Expand Down
Loading