i've been trying and playing around with Vserver..
Now my next step is to.. do a VSERVER with Load Balancing (ipvsadm)... and run APACHE on the nodes... more
VARIABLES:
* Kernel: vserver-sources
* Kernel to support Load Balancing
i already enabled the following on the kernel:
IP: Virtual Server Configuration --->
<M> IP virtual server support (EXPERIMENTAL)
[ ] IP virtual server debugging
(12) IPVS connection table size (the Nth power of 2)
--- IPVS transport protocol load balancing support[*] TCP load balancing support[*] UDP load balancing support
* Enabled IP forwarding. net.ipv4.ip_forward = 1
* MAIN VSERVER NAME: gentoo
IP (PUBLIC) eth0: xxx.xxx.xxx.xxx
IP (PRIVATE) eth1: 192.168.2.1
- LVS NAT
ipvsadm -A -t xxx.xxx.xxx.xxx:80
ipvsadm -a -t xxx.xxx.xxx.xxx:80 -r 192.168.2.2:80 -m
ipvsadm -a -t xxx.xxx.xxx.xxx:80 -r 192.168.2.3:80 -m
VSERVER NODE1 NAME: node1
IP (PUBLIC) eth0: NONE
IP (PRIVATE) eth1: 192.168.2.2
SERVICE INSTALLED: apache2
VSERVER NODE2 NAME: node2
IP (PUBLIC) eth0: NONE
IP (PRIVATE) eth1: 192.168.2.3
SERVICE INSTALLED: apache2
* I tried laod balancing windows using gentoo as a load balancer and windows running IIS as node. and it works...
(the only thing that i did was.. to point the gateway of the nodes private ip to the ip of the load balancers private ip..)
* i tried reading vserver docs.. on howto specifically point the vservers gateway to the private ip of the load balancer.. but with no luck.
anyone tried this setup.. ? is it even possibe?
basically i am trying to load balance NODE1 and NODE2.
Vserver and LVS? possibe?