LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

FW: HTTPS Service through LVS

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: FW: HTTPS Service through LVS
From: "Louis Lam" <louis.lam@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 19 Oct 2005 11:03:07 +0800
Dear All:

many thanks for your reply.

Actually, i have another problem about the configuration of loading balancer.

 I have set up an architecture with one load balancer and two web servers (two 
real servers) using round robin scheduling algorithm. Supposedly, request made 
to the web site will first go to (web server 1) and then (web server 2) and 
then (web server 1)  and (web server 2) again.... 

But now, it seems that once i have opened a session in the current browser, all 
the subsequent requests made through that browser will stick to the same web 
server. In order to achieve the intended approach (1, 2, 1, 2, 1.....), 

how should i configure to achieve this? or what i have configured wrongly. 
Could you help. 

Many thx in advance.

Below is my configuration procedures

1---add the VIP on Director
        ifconfig eth0:0 10.0.58.136 netmask 255.255.255.0 broadcast 10.0.58.255

2---Handle the ARP problem on Director
        echo 1 > /proc/sys/net/ipv4/ip_forward


3-----Add thehttps servive
        ipvsadm -A -t 10.0.58.136:80 -s rr
        ipvsadm -a -t 10.0.58.136:80-r 10.0.58.231 -g
        ipvsadm -a -t 10.0.58.136:80-r 10.0.58.230 -g

ipvsadm -Ln

Prot LocalAddress:Port Scheduler Flags
RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  10.0.58.136:80 rr
  -> 10.0.58.230:80               Route   1      0          0
  -> 10.0.58.232:80               Route   1      0          0
  ->     127.0.0.1:80                 Local   0      0          0

4---- add the VIP on the real server
        ifconfig lo:0 10.0.58.136 netmask 255.255.255.255 broadcast 10.0.58.136


5--- Handle the ARP problem on Real Server
        echo 1 > /proc/sys/net/ipv4/ip_forward
        echo 1 > /proc/sys/net/ipv4/conf/all/hidden
        echo 1 > /proc/sys/net/ipv4/conf/lo/hidden OR echo 1 > 
/proc/sys/net/ipv4/conf/eth0/hidden

6--- start Apache

thanks



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