fusion one_followers_domain et one_nodes

This commit is contained in:
2019-02-21 13:59:39 +01:00
parent 693532b324
commit 8c28ae6e6b
8 changed files with 57 additions and 99 deletions

View File

@ -1,2 +1,2 @@
%set global %%enable_one_ha='non'
%set global %%activer_one_ha='non'
%include '/var/lib/creole/oned.conf'

View File

@ -78,7 +78,7 @@ SCRIPTS_REMOTE_DIR=/var/tmp/one
PORT = 2633
%if %%enable_one_ha == 'non'
%if %%activer_one_ha == 'non'
LISTEN_ADDRESS = "127.0.0.1"
%end if
@ -155,7 +155,7 @@ VNC_PORTS = [
FEDERATION = [
MODE = "STANDALONE",
ZONE_ID = 0,
%if %%enable_one_ha == 'oui'
%if %%activer_one_ha == 'oui'
SERVER_ID = %%one_server_index,
%else
SERVER_ID = -1,
@ -172,7 +172,7 @@ RAFT = [
XMLRPC_TIMEOUT_MS = 450
]
%if %%enable_one_ha == 'oui' and %%one_ha_role == 'leader'
%if %%activer_one_ha == 'oui' and %%one_ha_server_index == 0
# Executed when a server transits from follower->leader
RAFT_LEADER_HOOK = [
COMMAND = "raft/vip.sh",

View File

@ -75,7 +75,7 @@
MESSAGE_SIZE = 1073741824
TIMEOUT = 60
%if %%enable_one_ha == 'oui'
%if %%activer_one_ha == 'oui'
ONE_XMLRPC = "http://%%adresse_ip_eth0:2633/RPC2"
%else
ONE_XMLRPC = "http://localhost:2633/RPC2"