LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 02-03-2009, 03:10 AM   #1
eco
Member
 
Registered: May 2006
Location: BE
Distribution: Debian/Gentoo
Posts: 412

Rep: Reputation: 48
Question 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.

Last edited by eco; 02-04-2009 at 11:56 AM.
 
Old 02-07-2009, 06:22 AM   #2
mesiol
Member
 
Registered: Nov 2008
Location: Lower Saxony, Germany
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Posts: 731

Rep: Reputation: 137Reputation: 137
Hi,

did you take a look at Linux Virtual Server?
 
  


Reply

Tags
balance, ipvs, load



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Please Help, dual PPPoE isp's, attempting to set up load balancing. mattp1984 Linux - Networking 1 11-10-2008 03:47 AM
Load balancing and routing problem icedown Linux - Networking 6 11-20-2007 08:28 PM
Load Balancing problem ist3k Linux - Networking 2 07-08-2007 02:23 AM
Load Balancing unsolved problem amateen Linux - Networking 0 12-26-2006 06:30 AM
Problem Load Balancing...:( caps_phisto Linux - Networking 2 09-07-2006 01:29 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 11:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration