From 1ddc6ffb2f79b97b830fa4e2331a4843a93c08cb Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Fri, 11 May 2018 15:03:44 +0200 Subject: [PATCH] Gestion des noeuds membres --- dicos/90_redis.xml | 14 +++++++++++++- tmpl/redis.conf | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/dicos/90_redis.xml b/dicos/90_redis.xml index 06808a3..c5f74e9 100644 --- a/dicos/90_redis.xml +++ b/dicos/90_redis.xml @@ -9,6 +9,7 @@ rdClIP + redisMasterIP @@ -36,7 +37,6 @@ - Leader @@ -44,10 +44,14 @@ + + + Autorisation d'accès au service Redis Grappe Redis + Serveurs membres de la grappe Redis @@ -73,6 +77,11 @@ redisMasterPort + + master + rdClMemberMaster + + rdClmask @@ -82,6 +91,9 @@ ['Local','Cluster'] + + ['master','slave'] + ['noeviction', 'allkeys-lru','volatile-lru','volatile-random', 'allkeys-random','volatile-ttl'] diff --git a/tmpl/redis.conf b/tmpl/redis.conf index 14bbc83..9cff55e 100644 --- a/tmpl/redis.conf +++ b/tmpl/redis.conf @@ -707,7 +707,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" +%if %%getVar('redisMode','Local') == "Cluster" and %%getVar('redisRole','Node') == 'Leader' ################################ REDIS CLUSTER ############################### # # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++