Re: [ClusterLabs] Need help in setting up HA cluster for applications/services other than Apache tomcat.

2017-02-20 Thread Ken Gaillot
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
> >
> 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@clusterlabs.org 
> http://lists.clusterlabs.org/mailman/listinfo/users
> 
> 
> Project Home: http://www.clusterlabs.org
> Getting started:
> 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.linkedin.com/company/open-source-systems-llc
>   
> https://www.facebook.com/OpenSrcSys
>    https://twitter.com/OpenSrcSys
>   http://www.youtube.com/OpenSrcSys
>    http://www.ossys.com/feed
>    cont...@ossys.com 
> Chad Cravens
> (843) 291-8340
> chad.crav...@ossys.com 
> http://www.ossys.com

___
Users mailing list: Users@clusterlabs.org
http://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


Re: [ClusterLabs] Need help in setting up HA cluster for applications/services other than Apache tomcat.

2017-02-18 Thread Chad Cravens
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!

On Fri, Feb 17, 2017 at 8:22 AM, vijay singh rathore <
vijayrathore.rji...@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@clusterlabs.org
> http://lists.clusterlabs.org/mailman/listinfo/users
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
>
>


-- 
Kindest Regards,
Chad Cravens
(843) 291-8340

[image: http://www.ossys.com] 
[image: http://www.linkedin.com/company/open-source-systems-llc]
   [image:
https://www.facebook.com/OpenSrcSys] 
   [image: https://twitter.com/OpenSrcSys] 
 [image: http://www.youtube.com/OpenSrcSys]
   [image: http://www.ossys.com/feed]
   [image: cont...@ossys.com] 
Chad Cravens
(843) 291-8340
chad.crav...@ossys.com
http://www.ossys.com
___
Users mailing list: Users@clusterlabs.org
http://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


[ClusterLabs] Need help in setting up HA cluster for applications/services other than Apache tomcat.

2017-02-18 Thread vijay singh rathore
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@clusterlabs.org
http://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org