I am trying to setup a virtual server with two real-servers and a load balancer, but I am having some problems.
example: I want to share http traffic to the real-servers.
internet
|
|
Load balancer - Linux Director
|
|
A
192.168.0.1
|
|
-----------------------------
|B real-servers C |
192.168.0.10 192.168.0.20
*All nodes and the load balancer runs Zeus-Linux with kernel 2.6.2rc2 with ipvs enabled.
Nodes Setup
*All nodes are known by /etc/hosts to each other
*And the default route for the real-servers is the Load-balancer
*I have enabled ip_forwarding to all nodes
*As scheduler I use round robin
Load Balancer
ipvsadm -A -t 192.168.0.1:80 -s rr
ipvsadm -a -t 192.168.0.1:80 -r 192.168.0.10:80 -m
ipvsadm -a -t 192.168.0.1:80 -r 192.168.0.20:80 -m
I didn't find any good documentation about this...
so.. when a recuest comes from the internet to the load balancer the load balancer sends it to a real server. But... the packets comes back to the load balacer and stop there. The client which requested the page from the internet can't see nothing. I believe that the load balancer doesn't rewrite the destination of the packet.
Does anyone have a tip about that or have found a usable configuration or documentation?
Thanks
=-=-=-=-=-=-=-=-=-=-=-=
Unix Systems Engineer
=-=-=-=-=-=-=-=-=-=-=-=
example: I want to share http traffic to the real-servers.
internet
|
|
Load balancer - Linux Director
|
|
A
192.168.0.1
|
|
-----------------------------
|B real-servers C |
192.168.0.10 192.168.0.20
*All nodes and the load balancer runs Zeus-Linux with kernel 2.6.2rc2 with ipvs enabled.
Nodes Setup
*All nodes are known by /etc/hosts to each other
*And the default route for the real-servers is the Load-balancer
*I have enabled ip_forwarding to all nodes
*As scheduler I use round robin
Load Balancer
ipvsadm -A -t 192.168.0.1:80 -s rr
ipvsadm -a -t 192.168.0.1:80 -r 192.168.0.10:80 -m
ipvsadm -a -t 192.168.0.1:80 -r 192.168.0.20:80 -m
I didn't find any good documentation about this...
so.. when a recuest comes from the internet to the load balancer the load balancer sends it to a real server. But... the packets comes back to the load balacer and stop there. The client which requested the page from the internet can't see nothing. I believe that the load balancer doesn't rewrite the destination of the packet.
Does anyone have a tip about that or have found a usable configuration or documentation?
Thanks
=-=-=-=-=-=-=-=-=-=-=-=
Unix Systems Engineer
=-=-=-=-=-=-=-=-=-=-=-=