Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.