[lvs-users] "selective balancing" - make requests from go to realserver_A, all others - to realserver_B

Patrick Schaaf netdev at bof.de
Fri Mar 7 11:15:08 GMT 2014

Hi Tomasz,

2014-03-07 11:52 GMT+01:00 Tomasz Chmielewski <tch at virtall.com>:
> I was wondering if I can use ipvsadm not only for load balancing, but
> also for "code testing".

The key to such usage, is fwmark based LVS virtual hosts. You then use
the iptables -t mangle PREROUTING to set firewall mark depending on
whatever iptables matches you come up with. Additionally ipset might
come in handy here - write one ipset based match setting your "code
testing" fwmark, then add and delete IPs from that set as needed,
maybe even with a nice web frontend for your developers :)

best regards

More information about the lvs-users mailing list