diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-09-20 07:34:36 +0000 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2023-09-21 05:15:49 +0000 |
commit | efc1f296826c5b3023e447ea8fe948a1a94056ff (patch) | |
tree | f4206ae9447cb8fbcfc4e908e3dd8538e60401c5 /interface-definitions/load-balancing-haproxy.xml.in | |
parent | 11edfade9f5ba181720099783f77dce9e282403c (diff) | |
download | vyos-1x-efc1f296826c5b3023e447ea8fe948a1a94056ff.tar.gz vyos-1x-efc1f296826c5b3023e447ea8fe948a1a94056ff.zip |
T5602: Reverse-proxy add option backup for backend server
A `backup` server can be defined to take over in the case of all other
backends failing
set load-balancing reverse-proxy backend <tag> server <tag> address '192.0.2.3'
set load-balancing reverse-proxy backend <tag> server <tag> port '8883'
set load-balancing reverse-proxy backend <tag> server <tag> backup
(cherry picked from commit cb297aea56da91144c53be1f396b64a26a8e5b04)
Diffstat (limited to 'interface-definitions/load-balancing-haproxy.xml.in')
-rw-r--r-- | interface-definitions/load-balancing-haproxy.xml.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/interface-definitions/load-balancing-haproxy.xml.in b/interface-definitions/load-balancing-haproxy.xml.in index f955a2fb7..564c335ec 100644 --- a/interface-definitions/load-balancing-haproxy.xml.in +++ b/interface-definitions/load-balancing-haproxy.xml.in @@ -124,6 +124,12 @@ </constraint> </properties> </leafNode> + <leafNode name="backup"> + <properties> + <help>Use backup server if other servers are not available</help> + <valueless/> + </properties> + </leafNode> <leafNode name="check"> <properties> <help>Active health check backend server</help> |