diff --git a/dicos/90_redis.xml b/dicos/90_redis.xml index 9bcfde4..6fa4378 100644 --- a/dicos/90_redis.xml +++ b/dicos/90_redis.xml @@ -31,8 +31,9 @@ non + - + 6379 @@ -102,9 +103,12 @@ 256 - + non + + non + Instance Principale @@ -161,6 +165,7 @@ redisSlaveInstanceName redisSlaveInstanceMaster redisClPortSlave + redisClPort diff --git a/tmpl/redis-slave.conf b/tmpl/redis-slave.conf index e2850d2..21a742a 100644 --- a/tmpl/redis-slave.conf +++ b/tmpl/redis-slave.conf @@ -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 ################################### diff --git a/tmpl/redis.conf b/tmpl/redis.conf index 21ab54a..b0a82d2 100644 --- a/tmpl/redis.conf +++ b/tmpl/redis.conf @@ -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")