[Ultramonkey-users 142] Re: Correct way to setup services?

Back to archive index

Horms horms****@verge*****
2006年 11月 13日 (月) 13:28:42 JST


On Sat, Nov 11, 2006 at 05:06:04PM -0500, Larry Ludwig wrote:
> Hi All,
> 	 
> This is something I'm not clear about for setting up services on the load
> balanced servers in a High Availability and Load Balancing instance:
> 	 
> http://www.ultramonkey.org/3/topologies/hc-ha-lb-overview.html
> 	 
> Let's use the apache service as an example.
> 	 
> My question is do you setup the specific IP address (in the examples
> 192.168.6.240) in the real server(s) apache config file to listen to that IP
> address??
> 	 
> should I have in the httpd.conf file:
> 	 
> Listen 192.168.6.240?
> 	 
> This is something I'm not clear on
> 	 
> I did try setting it to that but had odd results with my load balancing.
> 	 
> thanks in advance..

The answer is, it depends.

If you are using LVS-DR, as the advanced topologies including the
example at the URL above do, then you need apache to listen to the VIP
(192.168.6.240) _and_ you need to make sure that the real servers are
not answering ARP for that address. Apache may also listen on other 
addresses, and that shouldn't be a problem.


If on the other hand you were using LVS-NAT, as the standard topologies
do, then you do not need apache to listen on the VIP (192.168.6.240).
By the time a real server sees a conection the destination IP address
will be that of the real server as listed in the ldirectord.cf.  Again,
Apache may also listen on other addresses, and that shouldn't be a
problem.

-- 
Horms
  H: http://www.vergenet.net/~horms/
  W: http://www.valinux.co.jp/en/




Ultramonkey-users メーリングリストの案内
Back to archive index