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 2nd September 2009, 11:23
thefusa thefusa is offline
Junior Member
 
Join Date: Sep 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Question Load Balancer with 2 virtual ip address

Hi,
I've installed 2 phisical server with MySQL in load balancing following the HOW-TO.
I've 2 load balancing serverwith Ultra monkey that manage my virtual ip.
(192.168.0.99 in my case)

Now I need to do the same thing with my web server (I'll follow the HOW-TO about apache load-balancing)
So I'll install another 2 phisical server.

My question is:
I wish to know If it's possibile to use the same loadbalancing servers i use for mysql also for Apache virtual ip? (192.168.0.100)

Thanks a lot
Reply With Quote
Sponsored Links
  #2  
Old 3rd September 2009, 15:57
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Should be no problem - you can even use the same virtual IP as Apache and MySQL use different ports (80 and 3306).
__________________
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 4th September 2009, 10:34
thefusa thefusa is offline
Junior Member
 
Join Date: Sep 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ok.
so If i wish to use 2 different ip those could be my config files:

haresources:
Quote:
lb1.mydomain.it \
ldirectord::ldirectord.cf \
LVSSyncDaemonSwap::master \
IPaddr2::192.168.0.99/24/eth1/10.14.10.255 (MySQL cluster)
IPaddr2::192.168.0.100/24/eth1/10.14.10.255 (Apache Cluster)
and this my ldirectord.cf file:

Quote:
# Global Directives
# checktimeout=10
checkinterval=2
autoreload=no
logfile="local0"
quiescent=yes
virtual=192.168.0.99:3306
service=mysql
real=192.168.0.92:3306 gate 50
real=192.168.0.93:3306 gate 10
checktype=negotiate
login="ldirector"
passwd="ldirectorpassword"
database="ldirectordb"
request="SELECT * FROM connectioncheck"
scheduler=wrr
virtual=192.168.0.99:80
service=http
real=192.168.0.94:3306 gate
real=192.168.0.95:3306 gate
checktype=negotiate
request="ldirector.html"
receive="Test Page"
protocol=tcp
checktype=negotiate
scheduler=wrr
Thats' right?
Reply With Quote
  #4  
Old 13th November 2009, 13:47
fazi_puri fazi_puri is offline
Junior Member
 
Join Date: Nov 2009
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hey i am using HOW-TO about apache load-balancing for making load balancres
can you plz guide me that how can i check that my virtual ip is working?????
actually i am new in linux so plz help me.........
Reply With Quote
  #5  
Old 30th November 2009, 15:56
ikvenu2000 ikvenu2000 is offline
Junior Member
 
Join Date: Nov 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default Load Balancer with 2 virtual ip address

Hi thefusa,

Has your configuration worked fine?
Bcos i also want to implement the similar kind of LB and HA.
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
Load balancing on Fedora with Heartbeat (MySQL Cluster) rwillie6 HOWTO-Related Questions 7 17th December 2009 12:32
libWand.so.10 error Taxick Installation/Configuration 8 3rd May 2009 01:27
MySQL Cluster HOWTO - Cannot load Virtual IP address samu HOWTO-Related Questions 6 11th January 2007 10:19
Howto suggestion suse PhP ver 4 + Ver 5 wwparrish Suggest HOWTO 11 7th August 2006 13:29
postfix config jmroth Installation/Configuration 6 18th September 2005 15:58


All times are GMT +2. The time now is 12:26.


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