[ClusterLabs] Need help in setting up HA cluster for applications/services other than Apache tomcat.
Ken Gaillot
kgaillot at redhat.com
Mon Feb 20 10:02:19 EST 2017
On 02/18/2017 10:55 AM, Chad Cravens wrote:
> Hello Vijay:
>
> it seems you may want to consider developing custom Resource Agents.
> Take a look at the following guide:
> http://www.linux-ha.org/doc/dev-guides/ra-dev-guide.html
>
> I have created several, it is pretty straightforward and has always
> worked as expected. I would say one of the most important parts of
> creating a custom RA script is to make sure you have a good method for
> determining the state of a resource with monitor()
>
> Good luck!
Agreed, a custom resource agent is the most flexible approach. More
details in addition to above link:
http://clusterlabs.org/doc/en-US/Pacemaker/1.1-pcs/html-single/Pacemaker_Explained/index.html#ap-ocf
If your services already have LSB init scripts or systemd unit files,
Pacemaker can use them directly instead -- just configure the resource
as lsb:myscriptname or systemd:myunitname. Pacemaker will look for those
files in the usual system locations for such things. That doesn't have
as much flexibility as a custom agent, but if you already have them,
it's the easiest approach.
> On Fri, Feb 17, 2017 at 8:22 AM, vijay singh rathore
> <vijayrathore.rjit88 at gmail.com <mailto:vijayrathore.rjit88 at gmail.com>>
> wrote:
>
> Hi Team,
>
> Good Morning everyone, hope you all are doing great.
>
> First of all I would like to apologise, if I have created
> inconvenience for team members by sending this mail.
>
> I have a question and i have tried almost all possible forums and
> googled a lot before reaching to this group for help.
>
> I want to create HA cluster for applications/services which are not
> in tomcat or related to Apache or MySQL. Let's say they are written
> in different languages such as java, node js, c++, and deployed in
> certain path i.e. /home/xyz
>
> How can i add these applications for high availability in HA cluster
> using pcs/pacemaker/corosync.
>
> If I have to create resource for these applications how to create
> and if i have to use some other way, how can i implement it.
>
> Requesting you to please provide me some suggestions or reference
> documents or links or anything which can help me in completing this
> task and to test fail over for these applications.
>
> Thanks a lot in advance, have a great day and time ahead.
>
> Best Regards
> Vijay Singh
>
> _______________________________________________
> Users mailing list: Users at clusterlabs.org <mailto:Users at clusterlabs.org>
> http://lists.clusterlabs.org/mailman/listinfo/users
> <http://lists.clusterlabs.org/mailman/listinfo/users>
>
> Project Home: http://www.clusterlabs.org
> Getting started:
> http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> <http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf>
> Bugs: http://bugs.clusterlabs.org
>
>
>
>
> --
> Kindest Regards,
> Chad Cravens
> (843) 291-8340
>
> http://www.ossys.com <http://www.ossys.com>
> http://www.linkedin.com/company/open-source-systems-llc
> <http://www.linkedin.com/company/open-source-systems-llc>
> https://www.facebook.com/OpenSrcSys
> <https://www.facebook.com/OpenSrcSys> https://twitter.com/OpenSrcSys
> <https://twitter.com/OpenSrcSys> http://www.youtube.com/OpenSrcSys
> <http://www.youtube.com/OpenSrcSys> http://www.ossys.com/feed
> <http://www.ossys.com/feed> contact at ossys.com <mailto:contact at ossys.com>
> Chad Cravens
> (843) 291-8340
> chad.cravens at ossys.com <mailto:chad.cravens at ossys.com>
> http://www.ossys.com
More information about the Users
mailing list