Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
machinly authored Dec 3, 2023
1 parent 0f4ebb3 commit 3ad5f2f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/kubeblocks_helm/pika/config/pika-config.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
5 changes: 5 additions & 0 deletions tools/kubeblocks_helm/pika/templates/clusterdefinition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ spec:
namespace: {{ .Release.Namespace }}
volumeName: script
defaultMode: 0555
volumeTypes:
- name: data
type: data
postStartSpec:
cmdExecutorConfig:
image: {{ include "codis.image" . }}
Expand All @@ -51,6 +54,8 @@ spec:
volumeMounts:
- name: config
mountPath: /etc/pika
- name: data
mountPath: /data
command:
- "/pika/bin/pika"
args:
Expand Down

0 comments on commit 3ad5f2f

Please sign in to comment.