diff --git a/tools/kubeblocks_helm/pika/config/pika-config.tpl b/tools/kubeblocks_helm/pika/config/pika-config.tpl index 9447357744..d836c99413 100644 --- a/tools/kubeblocks_helm/pika/config/pika-config.tpl +++ b/tools/kubeblocks_helm/pika/config/pika-config.tpl @@ -27,10 +27,10 @@ sync-thread-num : 6 # Directory to store log files of Pika, which contains multiple types of logs, # Including: INFO, WARNING, ERROR log, as well as binglog(write2fine) file which # is used for replication. -log-path : ./log/ +log-path : /data/log/ # Directory to store the data of Pika. -db-path : ./db/ +db-path : /data/db/ # The size of a single RocksDB memtable at the Pika's bottom layer(Pika use RocksDB to store persist data). # [Tip] Big write-buffer-size can improve writing performance, @@ -108,7 +108,7 @@ dump-prefix : #daemonize : yes # The directory to stored dump files that generated by command "bgsave". -dump-path : ./dump/ +dump-path : /data/dump/ # TTL of dump files that generated by command "bgsave". # Any dump files which exceed this TTL will be deleted. @@ -162,7 +162,7 @@ slowlog-log-slower-than : 10000 slowlog-max-len : 128 # Pika db sync path -db-sync-path : ./dbsync/ +db-sync-path : /data/dbsync/ # The maximum Transmission speed during full synchronization. # The exhaustion of network can be prevented by setting this parameter properly. diff --git a/tools/kubeblocks_helm/pika/templates/clusterdefinition.yaml b/tools/kubeblocks_helm/pika/templates/clusterdefinition.yaml index cecf4d0710..537b80453f 100644 --- a/tools/kubeblocks_helm/pika/templates/clusterdefinition.yaml +++ b/tools/kubeblocks_helm/pika/templates/clusterdefinition.yaml @@ -32,6 +32,9 @@ spec: namespace: {{ .Release.Namespace }} volumeName: script defaultMode: 0555 + volumeTypes: + - name: data + type: data postStartSpec: cmdExecutorConfig: image: {{ include "codis.image" . }} @@ -51,6 +54,8 @@ spec: volumeMounts: - name: config mountPath: /etc/pika + - name: data + mountPath: /data command: - "/pika/bin/pika" args: