Re: application based HA

Digimer <[email protected]> Sat, 15 Nov 2014 11:14:23 -0500
Newsgroups gmane.linux.highavailability.user
Message-ID <[email protected]>
On 15/11/14 05:06 AM, Andras POTOCZKY wrote:
> Hi List,
>
> I would like to configure an application based HA solution. I mean if my
> important application stops working (but the active server is still
> alive), the HA configuration is passing the shared IP to the standby node.
>
> I've found pacemaker is the tool for it but I couldnt find any document
> or example related to the application level HA.
>
> Can somebody point me how can I figure this out?
>
> thanks,
> Andras

There are many ways to do this, depending on your application.

If your application supports sysvinit style start/stop/status, then it 
will "just work". When the app fails, the next '/etc/init.d/foo status' 
call (or it's systemd equiv.) returns a bad return code, pacemaker will 
treat it as failed. colocate your virtual IP with your app and they 
should move together.

If your app doesn't work this way, then you'll need to write a "resource 
agent", which acts as a "translator" layer between pacemaker and your 
application. You can look at the many other RAs and you will see most 
(all?) are simple scripts in various languages.

hth

-- 
Digimer
Papers and Projects: https://alteeve.ca/w/
What if the cure for cancer is trapped in the mind of a person without 
access to education?
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems