Cluster non présent par défaut sur les slaves + desactivation des sauvegardes auto RDB et AOF
This commit is contained in:
@ -85,9 +85,9 @@ port %%redisPortSlave
|
||||
|
||||
%if %%redisMode == 'Local avec slave distant'
|
||||
|
||||
slaveof %%redisMasterIPSlave redisMasterPortSlave
|
||||
slaveof %%redisMasterIPSlave %%redisMasterPortSlave
|
||||
|
||||
%endif
|
||||
%end if
|
||||
|
||||
# TCP listen() backlog.
|
||||
#
|
||||
@ -205,9 +205,13 @@ databases 16
|
||||
#
|
||||
# save ""
|
||||
|
||||
%if %%rdSaveDisable == 'oui'
|
||||
save ""
|
||||
%else
|
||||
save 900 1
|
||||
save 300 10
|
||||
save 60 10000
|
||||
%end if
|
||||
|
||||
# By default Redis will stop accepting writes if RDB snapshots are enabled
|
||||
# (at least one save point) and the latest background save failed.
|
||||
@ -378,7 +382,11 @@ maxmemory-policy %%redisMemoryPolicySlave
|
||||
#
|
||||
# Please check http://redis.io/topics/persistence for more information.
|
||||
|
||||
%if %%rdAOFDisable == 'oui'
|
||||
appendonly no
|
||||
%else
|
||||
appendonly yes
|
||||
%end if
|
||||
|
||||
# The name of the append only file (default: "appendonly.aof")
|
||||
|
||||
@ -494,6 +502,7 @@ aof-load-truncated yes
|
||||
# Set it to 0 or a negative value for unlimited execution without warnings.
|
||||
lua-time-limit 5000
|
||||
|
||||
%if %%getVar('redisMode','Local') == "Cluster"
|
||||
################################ REDIS CLUSTER ###############################
|
||||
#
|
||||
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
@ -601,6 +610,7 @@ cluster-require-full-coverage yes
|
||||
|
||||
# In order to setup your cluster make sure to read the documentation
|
||||
# available at http://redis.io web site.
|
||||
%end if
|
||||
|
||||
################################## SLOW LOG ###################################
|
||||
|
||||
|
@ -376,7 +376,12 @@ maxmemory-policy %%redisMemoryPolicy
|
||||
#
|
||||
# Please check http://redis.io/topics/persistence for more information.
|
||||
|
||||
%if %%rdAOFDisable == 'oui'
|
||||
appendonly no
|
||||
%else
|
||||
appendonly yes
|
||||
%end if
|
||||
|
||||
|
||||
# The name of the append only file (default: "appendonly.aof")
|
||||
|
||||
|
Reference in New Issue
Block a user