Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 27th April 2006, 13:53
gg234 gg234 is offline
Junior Member
 
Join Date: Aug 2005
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default Set Up A Loadbalanced High-Availability Apache Cluster

Hi,

This is nice walk through and i have one question about this in this example you have menctioned only two nodes with static ipaddress

Apache node 1: webserver1.example.com (webserver1) - IP address: 192.168.0.101; Apache document root: /var/www
Apache node 2: webserver2.example.com (webserver2) - IP address: 192.168.0.102; Apache document root: /var/www

My question is if i am hosting webserver with static and virtual ipaddress how does loadbalace will work with the virtual ipaddresses.Ultramonkey is having some problems with the virtual ipaddresses and hosting websites on that .Whenever any user send a incoming request it goes through virtual ip and it should reach the website hosting on virtual ipaddress.How we will go about this?

Thanks
Reply With Quote
Sponsored Links
  #2  
Old 27th April 2006, 17:46
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

I don't know if this setup works if you have multiple web sites on your web server. Normally a web server cluster is something for a high-traffic web site (i.e., you host just one big web site on the cluster nodes).
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 24th May 2006, 22:43
calande calande is offline
Junior Member
 
Join Date: May 2006
Location: Curitiba, PR - Brazil
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default

As a side note, I'm looking for a web hosting supplier that offers PostgreSQL clustering (read/write) with unlimited scaling. Do you know any?
__________________
Charles A. Landemaine.
_____________________________
Empresa de hospedagem de sites | Empresa de criação de sites | Fórum sobre hospedagem de sites
Reply With Quote
  #4  
Old 27th May 2006, 22:38
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

Unfortunately, I don't know of such a hosting company...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 28th May 2006, 04:46
calande calande is offline
Junior Member
 
Join Date: May 2006
Location: Curitiba, PR - Brazil
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Argh... And I thought PostgreSQL would scale better than MySQL...
__________________
Charles A. Landemaine.
_____________________________
Empresa de hospedagem de sites | Empresa de criação de sites | Fórum sobre hospedagem de sites
Reply With Quote
  #6  
Old 29th May 2006, 17:51
calande calande is offline
Junior Member
 
Join Date: May 2006
Location: Curitiba, PR - Brazil
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default

A quick head up here
Could you recommend good MySQL cluster hosting companies with unlimited scaling?
__________________
Charles A. Landemaine.
_____________________________
Empresa de hospedagem de sites | Empresa de criação de sites | Fórum sobre hospedagem de sites
Reply With Quote
  #7  
Old 13th June 2006, 12:16
golemlsit golemlsit is offline
Junior Member
 
Join Date: Jun 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Failover with persistent connections

Hello and thanks for the tutorial...
I'm trying to set it up on centos servers,
the problem I have is I'd like to use the
persistent=3600
option in ldirectord.cf because I need session affinity.
The problem is , when I turn off an apache ( service httpd stop )
ldirector keeps the users which have been sent on that real server
on that connections and they get a 'server unreachable'.
Using ipvsadm I still see their connections as InActConn, even if the weight is
now set to 0.
Is there a way to clear the connection table when a real server goes down?

Another thing I noticed is that you list ips for the webservers (192.168.0.101, 192.168.0.102) but never tell to configure an interface (es eth0:0) for them.
If I understood correctly the only ip which is brought up and down by the system is the VIP (192.168.0.105), all the others must already be up on the 2 nodes, right?

Thanks a lot
G.
Reply With Quote
  #8  
Old 13th June 2006, 18:30
golemlsit golemlsit is offline
Junior Member
 
Join Date: Jun 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default persistent connections

I found it out and I'll answer myself:
I needed
quiescent=no
in ldirectord.cf
as shown in the manpage
http://www.penguin-soft.com/penguin/...directord.html
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
mod_mono apache 2.2 ColdDoT Server Operation 5 23rd May 2006 03:58
Problem with the installation of Dokeos (LMS) in ISPConfig jofranco General 4 28th April 2006 01:45
PHP/MySQL/Apache2/ISPConfig configuration issues? senzapaura General 21 25th December 2005 15:01
High Availability and clustering with ISPconfig jeanjacquesjeanjacques General 1 22nd November 2005 13:22
Apache 1.3 Support SleeperZ General 3 9th November 2005 12:10


All times are GMT +2. The time now is 14:25.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.