You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by Udara Liyanage <ud...@wso2.com> on 2015/04/20 13:49:39 UTC

Service clustering for Stratos

Hi,

In a enterprise environment services are clustered for high availability
and scalability. So I think we might need to add clustering capability for
Stratos applications too.

Like to describe your ideas on below topics related to clustering,

1) Define clustering information in cartridge/application definition

2) Should support different clustering methods such as WKA schema

3) Related information should be passed to cartridge agent, so agent
extensions can be written to accommodate clustering configuration.

4) Puppet modules should be consolidated.

-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897

Re: Service clustering for Stratos

Posted by Imesh Gunaratne <im...@apache.org>.
Its not for service discovery, its for cluster discovery; a feature for
supporting cartridges having clustering capabilities to make the clustering
configuration.

On Fri, Apr 24, 2015 at 5:12 PM, Shaheedur Haque (shahhaqu) <
shahhaqu@cisco.com> wrote:

>  I’m a bit confused by this proposal…is the idea that Stratos is telling
> the cartridges what service discovery mechanism they should use?
>
>
>
> *From:* Imesh Gunaratne [mailto:imesh@apache.org]
> *Sent:* 20 April 2015 19:02
> *To:* dev
> *Subject:* Re: Service clustering for Stratos
>
>
>
> +1 for pointing to this Udara! I think it would be better to have this
> functionality in a more generic manner so that any cartridge that needs its
> own cluster discovery mechanism can be plugged in.
>
>
>
> According to our offline discussion with Chamila, IsuruH & Gayan, we could
> introduce a new block called "clustering" in the cartridge definition to
> specify the cluster discovery mechanism of the cartridge. Here we could add
> an attribute called type and mention the cluster discovery method (WKA,
> Multicast, etc). In addition it could specify a set of properties for
> passing parameters to do the clustering configuration. May be this complete
> functionality can be implemented using an extension point.
>
>
>
> The above extension implementation could add required properties to each
> member of the cluster and pass them to the instances via payload
> parameters. According to these parameters cartridge agent extensions could
> do the clustering configuration of each server instance.
>
>
>
> On a side note see below how CoreOS is using etcd for cluster discovery
> without having to rely on WKA:
>
>
> https://coreos.com/docs/cluster-management/setup/cluster-discovery/#new-clusters
>
>
>
> Thanks
>
>
>
> On Mon, Apr 20, 2015 at 5:19 PM, Udara Liyanage <ud...@wso2.com> wrote:
>
> Hi,
>
>
>
> In a enterprise environment services are clustered for high availability
> and scalability. So I think we might need to add clustering capability for
> Stratos applications too.
>
>
>
> Like to describe your ideas on below topics related to clustering,
>
>
>
> 1) Define clustering information in cartridge/application definition
>
>
>
> 2) Should support different clustering methods such as WKA schema
>
>
>
> 3) Related information should be passed to cartridge agent, so agent
> extensions can be written to accommodate clustering configuration.
>
>
>
> 4) Puppet modules should be consolidated.
>
>
>
> --
>
>
> Udara Liyanage
>
> Software Engineer
>
> WSO2, Inc.: http://wso2.com
>
> lean. enterprise. middleware
>
> web: http://udaraliyanage.wordpress.com
>
> phone: +94 71 443 6897
>
>
>
>
>
> --
>
> Imesh Gunaratne
>
>
>
> Technical Lead, WSO2
>
> Committer & PMC Member, Apache Stratos
>



-- 
Imesh Gunaratne

Technical Lead, WSO2
Committer & PMC Member, Apache Stratos

RE: Service clustering for Stratos

Posted by "Shaheedur Haque (shahhaqu)" <sh...@cisco.com>.
I’m a bit confused by this proposal…is the idea that Stratos is telling the cartridges what service discovery mechanism they should use?

From: Imesh Gunaratne [mailto:imesh@apache.org]
Sent: 20 April 2015 19:02
To: dev
Subject: Re: Service clustering for Stratos

+1 for pointing to this Udara! I think it would be better to have this functionality in a more generic manner so that any cartridge that needs its own cluster discovery mechanism can be plugged in.

According to our offline discussion with Chamila, IsuruH & Gayan, we could introduce a new block called "clustering" in the cartridge definition to specify the cluster discovery mechanism of the cartridge. Here we could add an attribute called type and mention the cluster discovery method (WKA, Multicast, etc). In addition it could specify a set of properties for passing parameters to do the clustering configuration. May be this complete functionality can be implemented using an extension point.

The above extension implementation could add required properties to each member of the cluster and pass them to the instances via payload parameters. According to these parameters cartridge agent extensions could do the clustering configuration of each server instance.

On a side note see below how CoreOS is using etcd for cluster discovery without having to rely on WKA:
https://coreos.com/docs/cluster-management/setup/cluster-discovery/#new-clusters

Thanks

On Mon, Apr 20, 2015 at 5:19 PM, Udara Liyanage <ud...@wso2.com>> wrote:
Hi,

In a enterprise environment services are clustered for high availability and scalability. So I think we might need to add clustering capability for Stratos applications too.

Like to describe your ideas on below topics related to clustering,

1) Define clustering information in cartridge/application definition

2) Should support different clustering methods such as WKA schema

3) Related information should be passed to cartridge agent, so agent extensions can be written to accommodate clustering configuration.

4) Puppet modules should be consolidated.

--

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com<http://wso2.com/>
lean. enterprise. middleware
web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897



--
Imesh Gunaratne

Technical Lead, WSO2
Committer & PMC Member, Apache Stratos

Re: Service clustering for Stratos

Posted by Imesh Gunaratne <im...@apache.org>.
+1 for pointing to this Udara! I think it would be better to have this
functionality in a more generic manner so that any cartridge that needs its
own cluster discovery mechanism can be plugged in.

According to our offline discussion with Chamila, IsuruH & Gayan, we could
introduce a new block called "clustering" in the cartridge definition to
specify the cluster discovery mechanism of the cartridge. Here we could add
an attribute called type and mention the cluster discovery method (WKA,
Multicast, etc). In addition it could specify a set of properties for
passing parameters to do the clustering configuration. May be this complete
functionality can be implemented using an extension point.

The above extension implementation could add required properties to each
member of the cluster and pass them to the instances via payload
parameters. According to these parameters cartridge agent extensions could
do the clustering configuration of each server instance.

On a side note see below how CoreOS is using etcd for cluster discovery
without having to rely on WKA:
https://coreos.com/docs/cluster-management/setup/cluster-discovery/#new-clusters

Thanks

On Mon, Apr 20, 2015 at 5:19 PM, Udara Liyanage <ud...@wso2.com> wrote:

> Hi,
>
> In a enterprise environment services are clustered for high availability
> and scalability. So I think we might need to add clustering capability for
> Stratos applications too.
>
> Like to describe your ideas on below topics related to clustering,
>
> 1) Define clustering information in cartridge/application definition
>
> 2) Should support different clustering methods such as WKA schema
>
> 3) Related information should be passed to cartridge agent, so agent
> extensions can be written to accommodate clustering configuration.
>
> 4) Puppet modules should be consolidated.
>
> --
>
> Udara Liyanage
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> web: http://udaraliyanage.wordpress.com
> phone: +94 71 443 6897
>



-- 
Imesh Gunaratne

Technical Lead, WSO2
Committer & PMC Member, Apache Stratos