feat(node): adding all in one node support
This commit is contained in:
38
resources/node/files/conf/replication.conf.tpl
Normal file
38
resources/node/files/conf/replication.conf.tpl
Normal file
@ -0,0 +1,38 @@
|
||||
{{- $hostname := env "HOSTNAME" }}
|
||||
{{- $service := env "VALKEY_SERVICE" }}
|
||||
{{- $namespace := env "NAMESPACE" }}
|
||||
{{- $port := env "VALKEY_PORT" }}
|
||||
{{- $sentinel_port := env "VALKEY_SENTINEL_PORT" }}
|
||||
{{- $replicas := env "VALKEY_REPLICAS" }}
|
||||
{{- $domain := printf "%s.%s.svc.cluster.local" $service $namespace }}
|
||||
{{- $fqdn := printf "%s.%s" $hostname $domain }}
|
||||
{{- $hostid := sha1sum $hostname }}
|
||||
{{- $datadir := env "VALKEY_DATA_DIR" }}
|
||||
|
||||
dir {{ $datadir }}
|
||||
|
||||
protected-mode no
|
||||
|
||||
loglevel {{ env "VALKEY_LOG_LEVEL" }}
|
||||
|
||||
appendonly yes
|
||||
appendfilename "appendonly.aof"
|
||||
appenddirname "appendonlydir"
|
||||
appendfsync everysec
|
||||
no-appendfsync-on-rewrite no
|
||||
auto-aof-rewrite-percentage 100
|
||||
auto-aof-rewrite-min-size 64mb
|
||||
aof-load-truncated yes
|
||||
aof-use-rdb-preamble yes
|
||||
aof-timestamp-enabled no
|
||||
|
||||
save ""
|
||||
|
||||
|
||||
replica-announce-port {{ $port }}
|
||||
replica-announce-ip {{ $fqdn }}
|
||||
|
||||
# User-supplied replica configuration:
|
||||
rename-command FLUSHDB ""
|
||||
rename-command FLUSHALL ""
|
||||
|
Reference in New Issue
Block a user