From larrylud ¡÷ gmail.com Sun Nov 12 07:06:04 2006 From: larrylud ¡÷ gmail.com (Larry Ludwig) Date: Sat, 11 Nov 2006 17:06:04 -0500 Subject: [Ultramonkey-users 141] Correct way to setup services? Message-ID: <040901c705dd$953db8f0$ca05a8c0@tank> 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.. -L -- Larry Ludwig Empowering Media From horms ¡÷ verge.net.au Mon Nov 13 13:28:42 2006 From: horms ¡÷ verge.net.au (Horms) Date: Mon, 13 Nov 2006 13:28:42 +0900 Subject: [Ultramonkey-users 142] Re: Correct way to setup services? In-Reply-To: <040901c705dd$953db8f0$ca05a8c0@tank> References: <040901c705dd$953db8f0$ca05a8c0@tank> Message-ID: <20061113042842.GA859@verge.net.au> 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/