Hi Wensong
I think I you're right, I didn't express myself in a clear way. So I try
to explain my problem from another view.
Lets say: I have 1000 http requests (A) through a firewall of a customer
(so in fact all requests have the same Source IP for Loadbalancer,
because of NAT) and then one request (B) from the Intranet and then
again 1000 Request (C) from that firewall, what does LB do?
I have three Realservers r1, r2, r3 (ppc with rr)
a) A to r1, B to r2, C to r1 (because of SourceIP) [Distribution:
2000:1:0.0000001]
b) A to r1, B to r2, C to r3 (because r3 is free) [Distribution:
1000:1:1000]
c) A to r1, B to r2, C to r2 (due to the low load of r2) [Distribution:
1000:1000:0.000001]
c) A to r1 && r2 && r3 (depending on source port), B to r1 || r2 || r3,
C to r1 && r2 && r3
[Distribution: 667:667:666]
Please tell me if I'm writing off-topic or if it seems that I really
didn't understand ppc-scheduling. I would also be very happy, if someone
could draw some flowchart or a sketch of the different scheduler
working. I'd do it, if I am sure having understood the concept properly.
Thankx go out to you all, specially to Wensong.
ratz. (Roberto Nibali)
Wensong Zhang wrote:
>
> Hi,
>
> Sorry that I haven't given instruction how to use persistent port
> with the new patch.
>
> To use persistent port, the commands are as follows:
> ipvsadm -A -t <VIP>:<port> [-s <scheduler>] -p
> ipvsadm -a -t <VIP>:<port> -R <real server> ...
> ...
>
> If the virtual service port is set persistent, connections
> from the same clients are gauranteed to direct to the same
> server. When a client sends request for the service at the
> first time, the load balancer (director) selects a server
> by the scheduling method and creates a connection and the
> template. Then, the following connections from the same
> client will be forwarded to the same server according to the
> template in the specified time.
>
> Ratz wrote:
> >
> > Hi to everybody
> >
> > Just installed 'new' kernel 2.2.12 and applied Wensongs ip-vs-patch. No
> > I wanted to test it, but machines are out and I dont want to test it in
> > my working environment since some paying customers could get angry when
> > service is not provided anymore. So my stupid questions are:
> > 1) Am I right in thinking that Persistant Port Connection (ppc) is
> > relied to the Source Port of an incoming packet? and
>
> The source address of an incoming packet is used to lookup
> connection template.
>
> > 2) If I'm right, how could this work properly behind a firewall, where
> > each connection request will get a new socket with a new port? (Session
> > would be lost?)
> >
>
> Sorry that I don't understand your question.
>
> Wensong
>
> > Thanks in advance for any answer.
> >
> > ratz, Roberto Nibali
> >
> > ----------------------------------------------------------------------
> > LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
> > To unsubscribe, e-mail: lvs-users-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx
> > For additional commands, e-mail: lvs-users-help@xxxxxxxxxxxxxxxxxxxxxx
|