mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-09 16:47:18 +02:00
MAJOR: peers: allow peers section to be used with nbproc > 1
This only works when the peers are bound to exactly one process.
This commit is contained in:
parent
1e27301866
commit
bf59807a13
@ -6550,12 +6550,6 @@ int check_config_validity()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (global.nbproc > 1 && curproxy->table.peers.name) {
|
|
||||||
Alert("Proxy '%s': peers can't be used in multi-process mode (nbproc > 1).\n",
|
|
||||||
curproxy->id);
|
|
||||||
cfgerr++;
|
|
||||||
}
|
|
||||||
|
|
||||||
switch (curproxy->mode) {
|
switch (curproxy->mode) {
|
||||||
case PR_MODE_HEALTH:
|
case PR_MODE_HEALTH:
|
||||||
cfgerr += proxy_cfg_ensure_no_http(curproxy);
|
cfgerr += proxy_cfg_ensure_no_http(curproxy);
|
||||||
|
Loading…
Reference in New Issue
Block a user