lvs, lvs router as real server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hello, thanks for all the help but know I have another problem

I want to put the director Lvs Router as one of the Real server, I configure the
Piranha to take the ip of the director as one of the real server and he do that
pretty well, here is a model of my cluster:

To the Intranet
  |
  |
  |
Eth0 172.16.247.130
Eth0:1 172.16.247.150
LVS Router
Eth1: 10.11.12.9
Eth1:1 10.11.12.10
   (To the Real servers)
  |                 |
  |                 |
  |                 |
Node 2              Node 3
Eth0: 10.11.12.11   Eth0: 10.11.12.12


here is my lvs.cf

serial_no = 164
primary = 172.16.247.130
primary_private = 10.11.12.9
service = lvs
backup_active = 0
backup = 172.16.247.131
backup_private = 10.11.12.11
heartbeat = 1
heartbeat_port = 539
keepalive = 3
deadtime = 10
network = nat
nat_router = 10.11.12.10 eth1:1
nat_nmask = 255.255.255.0
debug_level = NONE
monitor_links = 0
virtual http {
     active = 1
     address = 172.16.247.150 eth0:1
     vip_nmask = 255.255.255.0
     port = 80
     send = "GET /file2.html HTTP/1.0\r\n\r\n"
     expect = "1"
     use_regex = 1
     load_monitor = none
     scheduler = rr
     protocol = tcp
     timeout = 5
     reentry = 5
     quiesce_server = 0
     server dos {
         address = 10.11.12.11
         active = 1
         weight = 1
     }
     server tres {
         address = 10.11.12.12
         active = 1
         weight = 1
     }
     server uno {
         address = 10.11.12.9
         active = 1
         weight = 1
     }

}

and here is my ipvsadm, he put the Lvs router as a real server in the category
of  "local".

[root@node1 ~]# ipvsadm -Ln
IP Virtual Server version 1.2.0 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  172.16.247.150:80 rr
  -> 10.11.12.9:80                Local   1      0          1
  -> 10.11.12.12:80               Masq    1      0          1
  -> 10.11.12.11:80               Masq    1      0          1

I have the Lvs working in round robin and he give the pages ok,  but when is the
turn of the 10.11.12.9 (the Lvs router) it crask with "Firefox can't establish a
connection to the server at 172.16.247.150." any hints?.

here is my route of the lvs router just in case is need it

[root@node1 ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.11.12.0      0.0.0.0         255.255.255.0   U     0      0        0 eth1
172.16.247.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth1
0.0.0.0         10.11.12.10     0.0.0.0         UG    0      0        0 eth1

Thanks again for the help






Attachment: binfas1THWpeO.bin
Description: Clave PGP =?utf-8?b?cMO6YmxpY2E=?=

--
Linux-cluster mailing list
Linux-cluster@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-cluster

[Index of Archives]     [Corosync Cluster Engine]     [GFS]     [Linux Virtualization]     [Centos Virtualization]     [Centos]     [Linux RAID]     [Fedora Users]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Camping]

  Powered by Linux