Adding the Leader to the cluster.conf

This commit is contained in:
Philippe Caseiro 2018-05-11 15:38:13 +02:00
parent 325e51b0cf
commit 9ad47896a5
1 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,6 @@
%if %%getVar('active_redis','non') == 'oui' and %%getVar('redisRole','Node') == 'Leader' %if %%getVar('activer_redis','non') == 'oui' and %%getVar('redisRole','Node') == 'Leader'
%for %%node in %%getvar('rdMemberIP',[]) 127.0.0.1:%%{redisPort}:master::
%for %%node in %%getVar('rdClMemberIP',[])
%%{node}:%%{node.rdClMemberPort}:%%{node.rdClMemberRole}:%%{node.rdClMemberMaster} %%{node}:%%{node.rdClMemberPort}:%%{node.rdClMemberRole}:%%{node.rdClMemberMaster}
%end for
%end if %end if