Re: [Dev] How to select Leader/Contributer node in a cluster

2016-01-22 Thread Amila Maha Arachchi
Cool.

On Fri, Jan 22, 2016 at 3:10 PM, Nipuna Prashan  wrote:

> Hi Amila,
>
> I tried in a clustered environment with two nodes, but
> ClusteringAgent#isCoordinator method didn't work in 4.2.0. I found a
> patch for this. Now it's working.
>
> Thanks all.
>
> On Fri, Jan 22, 2016 at 10:52 AM, Ramith Jayasinghe 
> wrote:
> > MB also elects a leader/coordinator for the cluster (based on hezelcast.)
> >
> > On Fri, Jan 22, 2016 at 10:48 AM, Amila Maha Arachchi 
> > wrote:
> >>
> >> Nipun,
> >>
> >> May be you need to try it in a clustered environment or at least
> >> clustering enabled. I assume you tried this with a single server.
> >>
> >> On Wed, Jan 20, 2016 at 9:42 AM, Nipuna Prashan 
> wrote:
> >>>
> >>> Hi Krishanthan,
> >>>
> >>> Cloud team has developed three osgi components to delete tenants, but
> >>> tenant deletion has to be done manually by adding components to
> >>> dropping folder when we want to start tenant deletion. Now, my project
> >>> is to automate this process by making one osgi component for every
> >>> server and the component will be in the server every time.
> >>>
> >>> AxisConfiguration serverAxisConfig =
> >>>
> >>>
> ServiceHolder.getConfigurationContextService().getServerConfigContext().getAxisConfiguration();
> >>> ClusteringAgent agent = serverAxisConfig.getClusteringAgent();
> >>> boolean isCoordinator = agent.isCoordinator();
> >>>
> >>> I tried this, but this always returns false.
> >>>
> >>> On Tue, Jan 19, 2016 at 9:08 PM, Kishanthan Thangarajah
> >>>  wrote:
> >>> > IIRC, we already have a way (tool) to delete tenants in a cluster
> which
> >>> > is
> >>> > used by cloud team. So what's the requirement for this component
> here?
> >>> >
> >>> > With hazelcast based clustering, we assume that the first (oldest)
> >>> > member as
> >>> > the coordinator for the cluster. We set this member as the
> coordinator
> >>> > and
> >>> > you can check whether the current node is the coordinator using
> >>> > ClusteringAgent#isCoordinator method.
> >>> >
> >>> > On Mon, Jan 18, 2016 at 6:24 PM, Nipuna Prashan 
> >>> > wrote:
> >>> >>
> >>> >> Hi all,
> >>> >>
> >>> >> I am building an osgi component for tenant deletion task. This will
> be
> >>> >> deployed in every server (APIM, AS, AF, BAM, IS..). I have a
> >>> >> requirement to
> >>> >> do this task in one node in the cluster while there is no single
> point
> >>> >> of
> >>> >> failure. Only one node should start deletion while other nodes
> waiting
> >>> >> on
> >>> >> the same server.
> >>> >> Is there a way to find the leader node/ contributor in a cluster?
> Any
> >>> >> help
> >>> >> would be appreciated.
> >>> >>
> >>> >>
> >>> >>
> >>> >> --
> >>> >> Nipuna Prashan
> >>> >> Software Engineering Intern
> >>> >> +94711852792
> >>> >
> >>> >
> >>> >
> >>> >
> >>> > --
> >>> > Kishanthan Thangarajah
> >>> > Associate Technical Lead,
> >>> > Platform Technologies Team,
> >>> > WSO2, Inc.
> >>> > lean.enterprise.middleware
> >>> >
> >>> > Mobile - +94773426635
> >>> > Blog - http://kishanthan.wordpress.com
> >>> > Twitter - http://twitter.com/kishanthan
> >>>
> >>>
> >>>
> >>> --
> >>> Nipuna Prashan
> >>> Software Engineering Intern
> >>> +94711852792
> >>
> >>
> >>
> >>
> >> --
> >> Amila Maharachchi
> >> Senior Technical Lead
> >> WSO2, Inc.; http://wso2.com
> >>
> >> Blog: http://maharachchi.blogspot.com
> >> Mobile: +94719371446
> >>
> >>
> >> ___
> >> Dev mailing list
> >> Dev@wso2.org
> >> http://wso2.org/cgi-bin/mailman/listinfo/dev
> >>
> >
> >
> >
> > --
> > Ramith Jayasinghe
> > Technical Lead
> > WSO2 Inc., http://wso2.com
> > lean.enterprise.middleware
> >
> > E: ram...@wso2.com
> > P: +94 777542851
> >
>
>
>
> --
> Nipuna Prashan
> Software Engineering Intern
> +94711852792
>



-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to select Leader/Contributer node in a cluster

2016-01-22 Thread Nipuna Prashan
Hi Amila,

I tried in a clustered environment with two nodes, but
ClusteringAgent#isCoordinator method didn't work in 4.2.0. I found a
patch for this. Now it's working.

Thanks all.

On Fri, Jan 22, 2016 at 10:52 AM, Ramith Jayasinghe  wrote:
> MB also elects a leader/coordinator for the cluster (based on hezelcast.)
>
> On Fri, Jan 22, 2016 at 10:48 AM, Amila Maha Arachchi 
> wrote:
>>
>> Nipun,
>>
>> May be you need to try it in a clustered environment or at least
>> clustering enabled. I assume you tried this with a single server.
>>
>> On Wed, Jan 20, 2016 at 9:42 AM, Nipuna Prashan  wrote:
>>>
>>> Hi Krishanthan,
>>>
>>> Cloud team has developed three osgi components to delete tenants, but
>>> tenant deletion has to be done manually by adding components to
>>> dropping folder when we want to start tenant deletion. Now, my project
>>> is to automate this process by making one osgi component for every
>>> server and the component will be in the server every time.
>>>
>>> AxisConfiguration serverAxisConfig =
>>>
>>> ServiceHolder.getConfigurationContextService().getServerConfigContext().getAxisConfiguration();
>>> ClusteringAgent agent = serverAxisConfig.getClusteringAgent();
>>> boolean isCoordinator = agent.isCoordinator();
>>>
>>> I tried this, but this always returns false.
>>>
>>> On Tue, Jan 19, 2016 at 9:08 PM, Kishanthan Thangarajah
>>>  wrote:
>>> > IIRC, we already have a way (tool) to delete tenants in a cluster which
>>> > is
>>> > used by cloud team. So what's the requirement for this component here?
>>> >
>>> > With hazelcast based clustering, we assume that the first (oldest)
>>> > member as
>>> > the coordinator for the cluster. We set this member as the coordinator
>>> > and
>>> > you can check whether the current node is the coordinator using
>>> > ClusteringAgent#isCoordinator method.
>>> >
>>> > On Mon, Jan 18, 2016 at 6:24 PM, Nipuna Prashan 
>>> > wrote:
>>> >>
>>> >> Hi all,
>>> >>
>>> >> I am building an osgi component for tenant deletion task. This will be
>>> >> deployed in every server (APIM, AS, AF, BAM, IS..). I have a
>>> >> requirement to
>>> >> do this task in one node in the cluster while there is no single point
>>> >> of
>>> >> failure. Only one node should start deletion while other nodes waiting
>>> >> on
>>> >> the same server.
>>> >> Is there a way to find the leader node/ contributor in a cluster? Any
>>> >> help
>>> >> would be appreciated.
>>> >>
>>> >>
>>> >>
>>> >> --
>>> >> Nipuna Prashan
>>> >> Software Engineering Intern
>>> >> +94711852792
>>> >
>>> >
>>> >
>>> >
>>> > --
>>> > Kishanthan Thangarajah
>>> > Associate Technical Lead,
>>> > Platform Technologies Team,
>>> > WSO2, Inc.
>>> > lean.enterprise.middleware
>>> >
>>> > Mobile - +94773426635
>>> > Blog - http://kishanthan.wordpress.com
>>> > Twitter - http://twitter.com/kishanthan
>>>
>>>
>>>
>>> --
>>> Nipuna Prashan
>>> Software Engineering Intern
>>> +94711852792
>>
>>
>>
>>
>> --
>> Amila Maharachchi
>> Senior Technical Lead
>> WSO2, Inc.; http://wso2.com
>>
>> Blog: http://maharachchi.blogspot.com
>> Mobile: +94719371446
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>
>
>
> --
> Ramith Jayasinghe
> Technical Lead
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> E: ram...@wso2.com
> P: +94 777542851
>



-- 
Nipuna Prashan
Software Engineering Intern
+94711852792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to select Leader/Contributer node in a cluster

2016-01-21 Thread Ramith Jayasinghe
MB also elects a leader/coordinator for the cluster (based on hezelcast.)

On Fri, Jan 22, 2016 at 10:48 AM, Amila Maha Arachchi 
wrote:

> Nipun,
>
> May be you need to try it in a clustered environment or at least
> clustering enabled. I assume you tried this with a single server.
>
> On Wed, Jan 20, 2016 at 9:42 AM, Nipuna Prashan  wrote:
>
>> Hi Krishanthan,
>>
>> Cloud team has developed three osgi components to delete tenants, but
>> tenant deletion has to be done manually by adding components to
>> dropping folder when we want to start tenant deletion. Now, my project
>> is to automate this process by making one osgi component for every
>> server and the component will be in the server every time.
>>
>> AxisConfiguration serverAxisConfig =
>>
>> ServiceHolder.getConfigurationContextService().getServerConfigContext().getAxisConfiguration();
>> ClusteringAgent agent = serverAxisConfig.getClusteringAgent();
>> boolean isCoordinator = agent.isCoordinator();
>>
>> I tried this, but this always returns false.
>>
>> On Tue, Jan 19, 2016 at 9:08 PM, Kishanthan Thangarajah
>>  wrote:
>> > IIRC, we already have a way (tool) to delete tenants in a cluster which
>> is
>> > used by cloud team. So what's the requirement for this component here?
>> >
>> > With hazelcast based clustering, we assume that the first (oldest)
>> member as
>> > the coordinator for the cluster. We set this member as the coordinator
>> and
>> > you can check whether the current node is the coordinator using
>> > ClusteringAgent#isCoordinator method.
>> >
>> > On Mon, Jan 18, 2016 at 6:24 PM, Nipuna Prashan 
>> wrote:
>> >>
>> >> Hi all,
>> >>
>> >> I am building an osgi component for tenant deletion task. This will be
>> >> deployed in every server (APIM, AS, AF, BAM, IS..). I have a
>> requirement to
>> >> do this task in one node in the cluster while there is no single point
>> of
>> >> failure. Only one node should start deletion while other nodes waiting
>> on
>> >> the same server.
>> >> Is there a way to find the leader node/ contributor in a cluster? Any
>> help
>> >> would be appreciated.
>> >>
>> >>
>> >>
>> >> --
>> >> Nipuna Prashan
>> >> Software Engineering Intern
>> >> +94711852792
>> >
>> >
>> >
>> >
>> > --
>> > Kishanthan Thangarajah
>> > Associate Technical Lead,
>> > Platform Technologies Team,
>> > WSO2, Inc.
>> > lean.enterprise.middleware
>> >
>> > Mobile - +94773426635
>> > Blog - http://kishanthan.wordpress.com
>> > Twitter - http://twitter.com/kishanthan
>>
>>
>>
>> --
>> Nipuna Prashan
>> Software Engineering Intern
>> +94711852792
>>
>
>
>
> --
> *Amila Maharachchi*
> Senior Technical Lead
> WSO2, Inc.; http://wso2.com
>
> Blog: http://maharachchi.blogspot.com
> Mobile: +94719371446
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Ramith Jayasinghe
Technical Lead
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

E: ram...@wso2.com
P: +94 777542851
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to select Leader/Contributer node in a cluster

2016-01-21 Thread Amila Maha Arachchi
Nipun,

May be you need to try it in a clustered environment or at least clustering
enabled. I assume you tried this with a single server.

On Wed, Jan 20, 2016 at 9:42 AM, Nipuna Prashan  wrote:

> Hi Krishanthan,
>
> Cloud team has developed three osgi components to delete tenants, but
> tenant deletion has to be done manually by adding components to
> dropping folder when we want to start tenant deletion. Now, my project
> is to automate this process by making one osgi component for every
> server and the component will be in the server every time.
>
> AxisConfiguration serverAxisConfig =
>
> ServiceHolder.getConfigurationContextService().getServerConfigContext().getAxisConfiguration();
> ClusteringAgent agent = serverAxisConfig.getClusteringAgent();
> boolean isCoordinator = agent.isCoordinator();
>
> I tried this, but this always returns false.
>
> On Tue, Jan 19, 2016 at 9:08 PM, Kishanthan Thangarajah
>  wrote:
> > IIRC, we already have a way (tool) to delete tenants in a cluster which
> is
> > used by cloud team. So what's the requirement for this component here?
> >
> > With hazelcast based clustering, we assume that the first (oldest)
> member as
> > the coordinator for the cluster. We set this member as the coordinator
> and
> > you can check whether the current node is the coordinator using
> > ClusteringAgent#isCoordinator method.
> >
> > On Mon, Jan 18, 2016 at 6:24 PM, Nipuna Prashan 
> wrote:
> >>
> >> Hi all,
> >>
> >> I am building an osgi component for tenant deletion task. This will be
> >> deployed in every server (APIM, AS, AF, BAM, IS..). I have a
> requirement to
> >> do this task in one node in the cluster while there is no single point
> of
> >> failure. Only one node should start deletion while other nodes waiting
> on
> >> the same server.
> >> Is there a way to find the leader node/ contributor in a cluster? Any
> help
> >> would be appreciated.
> >>
> >>
> >>
> >> --
> >> Nipuna Prashan
> >> Software Engineering Intern
> >> +94711852792
> >
> >
> >
> >
> > --
> > Kishanthan Thangarajah
> > Associate Technical Lead,
> > Platform Technologies Team,
> > WSO2, Inc.
> > lean.enterprise.middleware
> >
> > Mobile - +94773426635
> > Blog - http://kishanthan.wordpress.com
> > Twitter - http://twitter.com/kishanthan
>
>
>
> --
> Nipuna Prashan
> Software Engineering Intern
> +94711852792
>



-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to select Leader/Contributer node in a cluster

2016-01-19 Thread Nipuna Prashan
Hi Krishanthan,

Cloud team has developed three osgi components to delete tenants, but
tenant deletion has to be done manually by adding components to
dropping folder when we want to start tenant deletion. Now, my project
is to automate this process by making one osgi component for every
server and the component will be in the server every time.

AxisConfiguration serverAxisConfig =
ServiceHolder.getConfigurationContextService().getServerConfigContext().getAxisConfiguration();
ClusteringAgent agent = serverAxisConfig.getClusteringAgent();
boolean isCoordinator = agent.isCoordinator();

I tried this, but this always returns false.

On Tue, Jan 19, 2016 at 9:08 PM, Kishanthan Thangarajah
 wrote:
> IIRC, we already have a way (tool) to delete tenants in a cluster which is
> used by cloud team. So what's the requirement for this component here?
>
> With hazelcast based clustering, we assume that the first (oldest) member as
> the coordinator for the cluster. We set this member as the coordinator and
> you can check whether the current node is the coordinator using
> ClusteringAgent#isCoordinator method.
>
> On Mon, Jan 18, 2016 at 6:24 PM, Nipuna Prashan  wrote:
>>
>> Hi all,
>>
>> I am building an osgi component for tenant deletion task. This will be
>> deployed in every server (APIM, AS, AF, BAM, IS..). I have a requirement to
>> do this task in one node in the cluster while there is no single point of
>> failure. Only one node should start deletion while other nodes waiting on
>> the same server.
>> Is there a way to find the leader node/ contributor in a cluster? Any help
>> would be appreciated.
>>
>>
>>
>> --
>> Nipuna Prashan
>> Software Engineering Intern
>> +94711852792
>
>
>
>
> --
> Kishanthan Thangarajah
> Associate Technical Lead,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - http://kishanthan.wordpress.com
> Twitter - http://twitter.com/kishanthan



-- 
Nipuna Prashan
Software Engineering Intern
+94711852792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to select Leader/Contributer node in a cluster

2016-01-19 Thread Kishanthan Thangarajah
IIRC, we already have a way (tool) to delete tenants in a cluster which is
used by cloud team. So what's the requirement for this component here?

With hazelcast based clustering, we assume that the first (oldest) member
as the coordinator for the cluster. We set this member as the coordinator
and you can check whether the current node is the coordinator
using ClusteringAgent#isCoordinator method.

On Mon, Jan 18, 2016 at 6:24 PM, Nipuna Prashan  wrote:

> Hi all,
>
> I am building an osgi component for tenant deletion task. This will be
> deployed in every server (APIM, AS, AF, BAM, IS..). I have a requirement to
> do this task in one node in the cluster while there is no single point of
> failure. Only one node should start deletion while other nodes waiting on
> the same server.
> Is there a way to find the leader node/ contributor in a cluster? Any help
> would be appreciated.
>
>
>
> --
> *Nipuna Prashan*
> Software Engineering Intern
> +94711852792
>



-- 
*Kishanthan Thangarajah*
Associate Technical Lead,
Platform Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com *
Twitter - *http://twitter.com/kishanthan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to select Leader/Contributer node in a cluster

2016-01-19 Thread Danushka Fernando
We implemented a similar thing for AF. Not sure it was Stratos based or
not. Any way adding Anuruddha to comment on it.

Thanks & Regards
Danushka Fernando
Senior Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729


On Jan 18, 2016 6:25 PM, "Nipuna Prashan"  wrote:

> Hi all,
>
> I am building an osgi component for tenant deletion task. This will be
> deployed in every server (APIM, AS, AF, BAM, IS..). I have a requirement to
> do this task in one node in the cluster while there is no single point of
> failure. Only one node should start deletion while other nodes waiting on
> the same server.
> Is there a way to find the leader node/ contributor in a cluster? Any help
> would be appreciated.
>
>
>
> --
> *Nipuna Prashan*
> Software Engineering Intern
> +94711852792
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to select Leader/Contributer node in a cluster

2016-01-19 Thread Nipuna Prashan
Adding Afkham Azeez, Amila Maha Arachchi

On Tue, Jan 19, 2016 at 2:20 PM, Nipuna Prashan  wrote:

> Hi Danesh,
>
> Yes, I will try to do that.
> Thank you,
>
> On Tue, Jan 19, 2016 at 8:48 AM, Danesh Kuruppu  wrote:
>
>> Hi Nipuna,
>>
>> Think you can check for the coordinator in clustering agent. There will
>> be only one coordinator for a cluster domain.  Clustering agent is in
>> AxisConfiguration which is in server configuration context.
>>
>> Thanks
>> Danesh
>>
>> On Mon, Jan 18, 2016 at 6:24 PM, Nipuna Prashan  wrote:
>>
>>> Hi all,
>>>
>>> I am building an osgi component for tenant deletion task. This will be
>>> deployed in every server (APIM, AS, AF, BAM, IS..). I have a requirement to
>>> do this task in one node in the cluster while there is no single point of
>>> failure. Only one node should start deletion while other nodes waiting on
>>> the same server.
>>> Is there a way to find the leader node/ contributor in a cluster? Any
>>> help would be appreciated.
>>>
>>>
>>>
>>> --
>>> *Nipuna Prashan*
>>> Software Engineering Intern
>>> +94711852792
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> Danesh Kuruppu
>> Software Engineer
>> WSO2 Inc,
>> Mobile: +94 (77) 1690552
>>
>
>
>
> --
> *Nipuna Prashan*
> Software Engineering Intern
> +94711852792
>



-- 
*Nipuna Prashan*
Software Engineering Intern
+94711852792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to select Leader/Contributer node in a cluster

2016-01-19 Thread Nipuna Prashan
Hi Danesh,

Yes, I will try to do that.
Thank you,

On Tue, Jan 19, 2016 at 8:48 AM, Danesh Kuruppu  wrote:

> Hi Nipuna,
>
> Think you can check for the coordinator in clustering agent. There will be
> only one coordinator for a cluster domain.  Clustering agent is in
> AxisConfiguration which is in server configuration context.
>
> Thanks
> Danesh
>
> On Mon, Jan 18, 2016 at 6:24 PM, Nipuna Prashan  wrote:
>
>> Hi all,
>>
>> I am building an osgi component for tenant deletion task. This will be
>> deployed in every server (APIM, AS, AF, BAM, IS..). I have a requirement to
>> do this task in one node in the cluster while there is no single point of
>> failure. Only one node should start deletion while other nodes waiting on
>> the same server.
>> Is there a way to find the leader node/ contributor in a cluster? Any
>> help would be appreciated.
>>
>>
>>
>> --
>> *Nipuna Prashan*
>> Software Engineering Intern
>> +94711852792
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Danesh Kuruppu
> Software Engineer
> WSO2 Inc,
> Mobile: +94 (77) 1690552
>



-- 
*Nipuna Prashan*
Software Engineering Intern
+94711852792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to select Leader/Contributer node in a cluster

2016-01-18 Thread Danesh Kuruppu
Hi Nipuna,

Think you can check for the coordinator in clustering agent. There will be
only one coordinator for a cluster domain.  Clustering agent is in
AxisConfiguration which is in server configuration context.

Thanks
Danesh

On Mon, Jan 18, 2016 at 6:24 PM, Nipuna Prashan  wrote:

> Hi all,
>
> I am building an osgi component for tenant deletion task. This will be
> deployed in every server (APIM, AS, AF, BAM, IS..). I have a requirement to
> do this task in one node in the cluster while there is no single point of
> failure. Only one node should start deletion while other nodes waiting on
> the same server.
> Is there a way to find the leader node/ contributor in a cluster? Any help
> would be appreciated.
>
>
>
> --
> *Nipuna Prashan*
> Software Engineering Intern
> +94711852792
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Danesh Kuruppu
Software Engineer
WSO2 Inc,
Mobile: +94 (77) 1690552
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] How to select Leader/Contributer node in a cluster

2016-01-18 Thread Nipuna Prashan
Hi all,

I am building an osgi component for tenant deletion task. This will be
deployed in every server (APIM, AS, AF, BAM, IS..). I have a requirement to
do this task in one node in the cluster while there is no single point of
failure. Only one node should start deletion while other nodes waiting on
the same server.
Is there a way to find the leader node/ contributor in a cluster? Any help
would be appreciated.



-- 
*Nipuna Prashan*
Software Engineering Intern
+94711852792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev