IS it a necessary in simple environment consisting of a single real server and
a single virtual server , that I configure the web service as a virtual apache
service in the real server ?
also could you pls comment on my /var/log/messages . My real server still is
not responding..
Feb 24 16:08:54 router sysctl: net.ipv4.ip_forward = 1
Feb 24 16:08:54 router sysctl: net.ipv4.conf.all.rp_filter = 1
Feb 24 16:08:54 router sysctl: net.ipv4.ip_always_defrag = 1
Feb 24 16:08:54 router sysctl: kernel.sysrq = 0
Feb 24 16:08:54 router network: Setting network parameters succeeded
Feb 24 16:08:54 router network: Bringing up interface lo succeeded
Feb 24 16:08:54 router network: Bringing up interface eth0 succeeded
Feb 24 16:08:54 router network: Bringing up interface eth1 succeeded
Feb 24 16:09:37 router pulse[3564]: STARTING PULSE AS MASTER
Feb 24 16:09:37 router pulse: pulse startup succeeded
Feb 24 16:09:55 router pulse[3564]: partner dead: activating lvs
Feb 24 16:09:55 router lvs: running command "/usr/sbin/ipvsadm" "-C"
Feb 24 16:09:55 router lvs[3568]: starting virtual service myserver active: 80
Feb 24 16:09:55 router lvs[3568]: running command "/usr/sbin/ipvsadm" "-A"
"-t" "151.8.201.202:80" "-s" "wlc"
Feb 24 16:09:55 router lvs[3568]: running command "/usr/sbin/nanny" "-c" "-h"
"192.168.1.2" "-p" "80" "-s" "GET / HTTP/1.0\r\n\r\n" "-x" "HTTP" "-a" "15"
"-I" "/usr/sbin/ipvsadm" "-t" "6" "-w" "1" "-V" "151.8.201.202" "-M" "m" "-U"
"rup"
Feb 24 16:09:55 router pulse[3575]: running command "/sbin/ifconfig" "eth1:0"
"192.168.1.254" "up"
Feb 24 16:09:55 router pulse[3573]: running command "/usr/sbin/send_arp" "-i"
"eth1" "192.168.1.254" "0002B362C308" "192.168.1.255" "ffffffffffff"
Feb 24 16:09:55 router nanny[3574]: starting LVS client monitor for
151.8.201.202:80
Feb 24 16:09:55 router lvs[3568]: create_monitor for myserver/realserver1
running as pid 3574
Feb 24 16:09:55 router pulse[3577]: running command "/sbin/ifconfig" "eth0:0"
"151.8.201.202" "up"
Feb 24 16:09:55 router pulse[3576]: running command "/usr/sbin/send_arp" "-i"
"eth0" "151.8.201.202" "0050BA3CD84F" "151.8.255.255" "ffffffffffff"
Feb 24 16:09:55 router nanny[3574]: making 192.168.1.2:80 available
Feb 24 16:09:55 router nanny[3574]: running command "/usr/sbin/ipvsadm" "-a"
"-t" "151.8.201.202:80" "-r" "192.168.1.2" "-m" "-w" "1"
Feb 24 16:09:55 router nanny[3574]: running command "rup" "192.168.1.2"
Feb 24 16:10:00 router pulse[3571]: gratuitous lvs arps finished
Feb 24 16:10:14 router nanny[3574]: running command "rup" "192.168.1.2"
Feb 24 16:10:51 router last message repeated 2 times
Feb 24 16:12:03 router last message repeated 4 times
Feb 24 16:13:15 router last message repeated 4 times
LVs.cf
primary = 151.8.201.201
service = lvs
rsh_command = rsh
backup = 0.0.0.0
heartbeat = 1
heartbeat_port = 539
keepalive = 6
deadtime = 18
network = nat
nat_router = 192.168.1.254 eth1:0
virtual myserver {
active = 1
address = 151.8.201.202 eth0:0
port = 80
send = "GET / HTTP/1.0\r\n\r\n"
expect = "HTTP"
load_monitor = rup
scheduler = wlc
protocol = tcp
timeout = 6
reentry = 15
server realserver1 {
address = 192.168.1.2
active = 1
weight = 1
}
}
|