LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] Persistence related question

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [lvs-users] Persistence related question
From: Cristi <cere@xxxxxxxxxx>
Date: Mon, 10 Nov 2008 22:26:07 +0200
Graeme Fowler wrote:
> Combine netfilter marks (fwmarks) and a virtual service based on mark
> values instead of VIP.
>
> Catch packets from 1.2.3.4 destined for the VIP service port and set a
> mark:
>
> iptables -t mangle -I INPUT -s 1.2.3.4/32 -d $VIP \
>       -p tcp --dport $VIP_PORT -j MARK --set-mark 0x1234
>
>
> ipvsadm -A -f 0x1234
> ipvsadm -a -f 0x1234 -r 192.168.10.1:0 -m
>
> This way, hopefully, all packets from 1.2.3.4 will end up being handled
> by 192.168.0.10 only. Give it a try.
>
> Graeme
>
>   
Thank you, Graeme, for your answer.

Just one question: I currently use the wrr scheduler. Won't this change 
affect the scheduling process?


<Prev in Thread] Current Thread [Next in Thread>