On Wed, 2012-03-28 at 06:11 +0000, Reet Vyas wrote:
> what if i want to distributed my incoming req to two different servers.??
You can, and you setup is still okay, except you specified that one
realserver has weight '1' and the other '2'. Meaning of every 3 active
connections, two will go to 192.168.3.3 and one will go to 192.168.3.2.
The reason why you probably only see the realserver with weight '2' is
because your connection doesn't stay active as soon as you launch
another.
Try this:
<terminal 1>
$ telnet 122.166.233.136 80
now don't do anything ..
<terminal 2>
$ telnet 122.166.233.136 80
don't do anything here either ..
<terminal 3>
$ telnet 122.166.233.136 80
GET / HTTP/1.0
You should then get a request from 192.168.3.3
Check the output from ipvsadm as well. You should see two active conns
to 192.168.3.3 and one to .2
Léon
_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/
LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
|