Skip to content

Commit 47d595e

Browse files
committed
manage parameter for redis 7.x
1 parent 1b1cc52 commit 47d595e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

templates/redis.conf.epp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,9 @@ min-slaves-max-lag <%= $min_slaves_max_lag %>
591591
#
592592
# With slow disks and fast (large bandwidth) networks, diskless replication
593593
# works better.
594+
<%- if Integer($facts['redis_server_version'].split('.')[0]) > 7 -%>
594595
repl-diskless-sync <%= bool2str($repl_diskless_sync, 'yes', 'no') -%>
596+
<%- end -%>
595597

596598
################################## SECURITY ###################################
597599

@@ -884,7 +886,9 @@ latency-monitor-threshold <%= $latency_monitor_threshold %>
884886
#
885887
# By default, the extended latency monitoring is enabled since the overhead
886888
# of keeping track of the command latency is very small.
889+
<%- if Integer($facts['redis_server_version'].split('.')[0]) > 7 -%>
887890
latency-tracking <%= bool2str($latency_tracking, 'yes', 'no') -%>
891+
<%- end -%>
888892

889893
############################# Event notification ##############################
890894

0 commit comments

Comments
 (0)