Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 30th August 2010, 03:11
HuMaN-BiEnG HuMaN-BiEnG is offline
Junior Member
 
Join Date: Aug 2010
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation Master-Master Active-Passive + Ultramonkey

Hello everyone ,,

i'm just going to implement

Master-Master Active-Passive replication beside installing Ultramonkey

to make Linux-HA between two servers for apache

my questions are :

how i gonna tell/configure Ultramonkey to direct mysql writing requests to only Active server ,while directing mysql read requests to both Active & Passive servers ???

what to tell data center to implement in networking , to make this work between the two servers ?? say to them
put the servers on NAT network beside connecting the two servers with Ethernet network card through cross cable (for heartbeat to use) ???

how to know that my OS kernel support IPVS ???

please anyone could help me to do that

this Linux-HA will be implemented on two servers for loadbalancing apache on Centos 5

& all accept my best regards

Last edited by HuMaN-BiEnG; 30th August 2010 at 03:17.
Reply With Quote
Sponsored Links
  #2  
Old 30th August 2010, 11:14
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
Default

master-master .. active-passive .. hmm ..

i wouldn't start using master-master if you don't know what you're doing.

So you want to have HA apache, and a master-slave setup for mysql?
What are you going to do when server 1 (mysql master goes down?)

some simple HA setup's i use DRBD for the replication of the data, as soon as the master server goes down we make the slave a master and run it from there ..

also, ultramonkey is a dead project have a look at keepalived (http://www.keepalived.org/) for load balancing and pacemaker http://www.clusterlabs.org/ for failover .. much better imho
Reply With Quote
  #3  
Old 30th August 2010, 13:54
HuMaN-BiEnG HuMaN-BiEnG is offline
Junior Member
 
Join Date: Aug 2010
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hello Mark ,,

first thanks for answering me

Quote:
Originally Posted by Mark_NL View Post

So you want to have HA apache, and a master-slave setup for mysql?
What are you going to do when server 1 (mysql master goes down?)
i will promote the Passive (which is really acts as a master) server to be a master

lets clarify the point, & tell you what i want to do to help me much better ,

i want to load balance between two nodes, through sharing the requests to apache on both servers & if one fail then the other will work

about pacemaker & keepalived ,i dont say that they are not good softwares, but i will have to study again on new software & decide which one i should use, then i will get to the same problem can i use any of this softwares to direct only mysql writes to Active server, while redirecting mysql reads to be shared between Active & Passive ???

please could anyone help me

thanks for everyone
Reply With Quote
  #4  
Old 30th August 2010, 14:15
HuMaN-BiEnG HuMaN-BiEnG is offline
Junior Member
 
Join Date: Aug 2010
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello Mark ,,

pacemaker & keepalived are more advanced ,so they are much more bettert than Ultramonkey

cuz i have too little experience on both networking & HA & also because i planned to use Ultramonkey & also i have no time for more days spent on studying

i will use Ultramonkey, so please if yoy have a solution for me in my this simple project then you can help me, or any other one here can do


thanks alot & accept my best regards
Reply With Quote
  #5  
Old 30th August 2010, 14:25
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
Default

Why did you study on a piece of software that's dead for more then 5 years? Not that smart, but oke, ..

I'd set up LB on the webservers, and HA DRBD mysql underneath (just sync a partition if you don't have 2 extra discs) .. if the master server dies, transfer the VIP to the slave server and that one will run as master database.

redirecting mysql queries to different servers is possible with mysql-proxy, or write your own database wrapper in (f.e. php)
Reply With Quote
  #6  
Old 30th August 2010, 14:28
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
Default

Quote:
Originally Posted by HuMaN-BiEnG View Post
Hello Mark ,,
.. i have too little experience on both networking & HA..

.. this simple project ..
I think your way over your head here in what you want, start of easier..
If you don't have more time to study, you should've started earlier :P
Reply With Quote
  #7  
Old 30th August 2010, 14:42
HuMaN-BiEnG HuMaN-BiEnG is offline
Junior Member
 
Join Date: Aug 2010
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Red face

Quote:
Originally Posted by Mark_NL View Post
I think your way over your head here in what you want, start of easier..
If you don't have more time to study, you should've started earlier :P

you are right, but i need this project & i need help in the same time

thanks for answering me Mark ,,

accept my best regards
Reply With Quote
  #8  
Old 30th August 2010, 21:19
HuMaN-BiEnG HuMaN-BiEnG is offline
Junior Member
 
Join Date: Aug 2010
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
 
Unhappy

no one here can help me ???

are my questions are so hard to have no answer ???
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
ISPConfig 3 Send/Receive mail not working. Acidut General 6 4th April 2010 11:24
Step by step email setup for domain & clients aurasdoom Installation/Configuration 17 19th January 2010 12:25
Is my postfix is hacked? bzzik Server Operation 21 15th July 2009 14:13
My postfix server is beeing used to send large ammounts of spam. bob808 Server Operation 2 27th April 2009 12:37
ISPConfig with postfix problem Chrisssssss General 30 20th January 2007 23:34


All times are GMT +2. The time now is 08:43.


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