LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-20-2012, 05:32 AM   #1
invincible
LQ Newbie
 
Registered: Nov 2011
Posts: 10

Rep: Reputation: Disabled
Heartbeat query


I would like to use heartbeat for HA,the services are apache,mysql,postfix, my concern is if apache on the primary server is down, heartbeat will switch all the services (apache and mysql and postfix) to the standby server right?

Last edited by invincible; 04-21-2012 at 07:41 AM.
 
Old 04-20-2012, 06:47 AM   #2
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Incomplete information you provided. Which OS you're using?
 
Old 04-21-2012, 07:40 AM   #3
invincible
LQ Newbie
 
Registered: Nov 2011
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Satyaveer Arya View Post
Incomplete information you provided. Which OS you're using?
Thank you, The OS is ubuntu 8.04.
 
Old 04-21-2012, 09:43 AM   #4
novice06
Member
 
Registered: Mar 2006
Location: Singapore
Distribution: RHEL, CentOS
Posts: 132

Rep: Reputation: 23
Not really, Heartbeat will only failover when the primary server is fail.
As long as you configure the /etc/ha.d/haresource properly, it will take over properly.
For example, you have three daemons to HA. apache application use mysql database.
Your configuration ordered must correct.
1. Floating IP [if needed]
2. mysqld
3. httpd

e.g /etc/ha.d/haresource [heartbeat will read sequential and start the daemon one by one ]
192.168.1.1 mysqld httpd
 
Old 04-21-2012, 11:01 PM   #5
invincible
LQ Newbie
 
Registered: Nov 2011
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by novice06 View Post
Not really, Heartbeat will only failover when the primary server is fail.
As long as you configure the /etc/ha.d/haresource properly, it will take over properly.
For example, you have three daemons to HA. apache application use mysql database.
Your configuration ordered must correct.
1. Floating IP [if needed]
2. mysqld
3. httpd

e.g /etc/ha.d/haresource [heartbeat will read sequential and start the daemon one by one ]
192.168.1.1 mysqld httpd

Thank you, I will try. But my concern is, if apache and mysql are using the same VIP, when apache service is stop, heartbeat will switch apache and mysql to the standby server.

if apache using VIP1, mysql using VIP2, maybe they will not affect each other.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Query (and maybe a dependent query) on alsamixer. ajaygarg Linux - Newbie 4 12-20-2011 12:31 AM
[SOLVED] Heartbeat mail2mphani Linux - Networking 3 09-08-2010 06:48 AM
interesting MySQL query/view query :s mjh Programming 3 03-25-2008 07:30 AM
mysql use output of one query in another query secretlydead Programming 2 11-19-2007 01:25 AM
help with mysql query: return nth rows in query hawarden Programming 2 07-31-2006 06:36 PM


All times are GMT -5. The time now is 04:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration