How to set up Heartbeat to run a service only at one node

Posted by Jon Skarpeteig on Server Fault See other posts from Server Fault or by Jon Skarpeteig
Published on 2012-10-18T15:09:09Z Indexed on 2012/10/25 11:03 UTC
Read the original article Hit count: 295

Filed under:
|
|

I have two Ubuntu 12.04 servers, which run mysql in a master-master setup, with mmm as manager. How can I set up heartbeat to make sure that mmm only runs at one node at the time?

*Edit to explain more clearly

My setup:

  ---------VIP (10.0.0.123)------
  |                             |
Node1                         Node2

Where bot Node1 and Node2 run:

  • Mysql
  • Multi-Master Replication Manager for MySQL (mmm)
  • Heartbeat

I only want a single write enabled mysql node, and I can only have one mmm running at the time, else I'll get collision between the managers.

© Server Fault or respective owner

Related posts about ubuntu

Related posts about heartbeat