Page MenuHomeVyOS Platform

For reverse-proxy type of load-balancing feature, support "backup" option in backends configuration
Closed, ResolvedPublicFEATURE REQUEST

Description

Would be nice to have such an option for some backend servers, so the traffic only gets forwarded there if all active(non-backup) servers are down, i.e.:

set load-balancing reverse-proxy service my-tcp-api backend 'bk-01'
set load-balancing reverse-proxy service my-tcp-api mode 'tcp'
set load-balancing reverse-proxy service my-tcp-api port '8888'

set load-balancing reverse-proxy backend bk-01 balance 'round-robin'
set load-balancing reverse-proxy backend bk-01 mode 'tcp'

set load-balancing reverse-proxy backend bk-01 server srv01 address '192.0.2.11'
set load-balancing reverse-proxy backend bk-01 server srv01 port '8881'
set load-balancing reverse-proxy backend bk-01 server srv02 address '192.0.2.12'
set load-balancing reverse-proxy backend bk-01 server srv02 port '8882'
set load-balancing reverse-proxy backend bk-01 server srv03 address '192.0.2.13'
set load-balancing reverse-proxy backend bk-01 server srv03 port '8883'
set load-balancing reverse-proxy backend bk-01 server srv03 backup

Looks like safe & easy one since this type of load-balancing implemented using HAproxy, which have that option for years.

Details

Version
-
Is it a breaking change?
Perfectly compatible