LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (http://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   Problem understanding where to set IPVS in load balancing. (http://www.linuxquestions.org/questions/linux-enterprise-47/problem-understanding-where-to-set-ipvs-in-load-balancing-701847/)

eco 02-03-2009 03:10 AM

Problem understanding where to set IPVS in load balancing.
 
Hi,

[Please ignore this post... I was confused. A good night sleep and I saw the error of my ways. ;)]

I followed this Howto on how to setup a load balancing.

This is what I am trying to do
Code:

                              +-------------lb1---------------+      +-----------------XEN----------------------+
                        +---->| 192.168.1.51 -> 192.168.100.1 |--+  |                  +---------------------+ |
                        |    |                              |  |  |                  | Dom1 192.168.100.21 | |
                        |  +->| 192.168.0.1 (hb)              |  |  |                  +---------------------+ |
WAN --> 192.168.1.50(v) |  |  +-------------------------------+  +-->| 192.168.100.20                          |
                        |  +->| 192.168.0.2 (hb)              |  |  |                  +---------------------+ |
                        |    |                              |  |  |                  | Dom2 192.168.100.22 | |
                        +---->| 192.168.1.52 -> 192.168.100.2 |--+  |                  +---------------------+ |
                              +-------------lb2---------------+      +------------------------------------------+

(v) = IPV
hb = heartbeat
lb1 = load balancer
lb2 = load balancer

I understand that traffic coming from the 'WAN' will point to the IPV 192.168.1.50 so whatever box (lb1 or lb2) hosts the IPV, the traffic will go through it.

What I don't understand is how traffic that is initiated from one of the DomX will know how to reach the WAN and chose between lb1 or lb2?

Do I need to have 2 IPVS? One for 192.168.1.51/52 and one for 192.168.100.1/2?
Code:

                              +-------------lb1----------------+                        +-----------------XEN----------------------+
                        +---->| 192.168.1.51 -> 192.168.100.11 |--+                      |                  +---------------------+ |
                        |    |                                |  |                      |                  | Dom1 192.168.100.21 | |
                        |  +->| 192.168.0.1 (hb)              |  |                      |                  +---------------------+ |
WAN --> 192.168.1.50(v) +  |  +--------------------------------+  + 192.168.100.10(v) -->| 192.168.100.20                          |
                        |  +->| 192.168.0.2 (hb)              |  |                      |                  +---------------------+ |
                        |    |                                |  |                      |                  | Dom2 192.168.100.22 | |
                        +---->| 192.168.1.52 -> 192.168.100.12 |--+                      |                  +---------------------+ |
                              +-------------lb2----------------+                        +------------------------------------------+

Any pointers to documentation that will explain this to me is welcome :)

Thank you all.

mesiol 02-07-2009 06:22 AM

Hi,

did you take a look at Linux Virtual Server?


All times are GMT -5. The time now is 06:52 AM.