You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by Imesh Gunaratne <im...@apache.org> on 2014/11/26 08:14:39 UTC

Load Balancer Clustering Model

Hi Devs,

This is to discuss the clustering model of the Stratos Load Balancer:



As shown in the above diagram in the load balancer we need to replicate
algorithm context and sessions across the members in the cluster. Since the
load balancer does not persists any contexts we are planning to use carbon
clustering implementation (which uses Hazelcast) to replicate above data
structures.

Here the algorithm contexts are managed by the load balancer endpoint
implementation and sessions are managed by Apache Synapse module.

Thanks
​


-- 
Imesh Gunaratne

Technical Lead, WSO2
Committer & PMC Member, Apache Stratos

Re: Load Balancer Clustering Model

Posted by Imesh Gunaratne <im...@apache.org>.
On Wed, Nov 26, 2014 at 5:27 PM, Lahiru Sandaruwan <la...@wso2.com> wrote:

>
> We might need to assume that we got the stats parallel even though there
> are small time gaps in between.
> i.e. If we publish events from LB with 10 sec. time interval, we will
> receive all the events at CEP inside 10 sec. time duration.
>
> In that case, will those values get overwritten by each other?
>>
>
> For this, we need to adjust CEP so that it aggregate the values rather
> than overwrite them.
>

+1 A good point, we will need to do this.


-- 
Imesh Gunaratne

Technical Lead, WSO2
Committer & PMC Member, Apache Stratos

Re: Load Balancer Clustering Model

Posted by Lahiru Sandaruwan <la...@wso2.com>.
On Wed, Nov 26, 2014 at 3:19 PM, Akila Ravihansa Perera <ra...@wso2.com>
wrote:

> Hi,
>
> Have you considered RIF stats publishing story in a LB clustered scenario?
> Each LB instance will be publishing stats in parallel, am I correct to
> assume that?
>

We might need to assume that we got the stats parallel even though there
are small time gaps in between.
i.e. If we publish events from LB with 10 sec. time interval, we will
receive all the events at CEP inside 10 sec. time duration.

In that case, will those values get overwritten by each other?
>

For this, we need to adjust CEP so that it aggregate the values rather than
overwrite them.

Thanks.

>
> Thanks.
>
> On Wed, Nov 26, 2014 at 12:44 PM, Imesh Gunaratne <im...@apache.org>
> wrote:
>
>> Hi Devs,
>>
>> This is to discuss the clustering model of the Stratos Load Balancer:
>>
>>
>>
>> As shown in the above diagram in the load balancer we need to replicate
>> algorithm context and sessions across the members in the cluster. Since the
>> load balancer does not persists any contexts we are planning to use carbon
>> clustering implementation (which uses Hazelcast) to replicate above data
>> structures.
>>
>> Here the algorithm contexts are managed by the load balancer endpoint
>> implementation and sessions are managed by Apache Synapse module.
>>
>> Thanks
>> ​
>>
>>
>> --
>> Imesh Gunaratne
>>
>> Technical Lead, WSO2
>> Committer & PMC Member, Apache Stratos
>>
>
>
>
> --
> Akila Ravihansa Perera
> Software Engineer, WSO2
>
> Blog: http://ravihansa3000.blogspot.com
>



-- 
--
Lahiru Sandaruwan
Committer and PMC member, Apache Stratos,
Senior Software Engineer,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146

Re: Load Balancer Clustering Model

Posted by Akila Ravihansa Perera <ra...@wso2.com>.
Hi,

Have you considered RIF stats publishing story in a LB clustered scenario?
Each LB instance will be publishing stats in parallel, am I correct to
assume that? In that case, will those values get overwritten by each other?

Thanks.

On Wed, Nov 26, 2014 at 12:44 PM, Imesh Gunaratne <im...@apache.org> wrote:

> Hi Devs,
>
> This is to discuss the clustering model of the Stratos Load Balancer:
>
>
>
> As shown in the above diagram in the load balancer we need to replicate
> algorithm context and sessions across the members in the cluster. Since the
> load balancer does not persists any contexts we are planning to use carbon
> clustering implementation (which uses Hazelcast) to replicate above data
> structures.
>
> Here the algorithm contexts are managed by the load balancer endpoint
> implementation and sessions are managed by Apache Synapse module.
>
> Thanks
> ​
>
>
> --
> Imesh Gunaratne
>
> Technical Lead, WSO2
> Committer & PMC Member, Apache Stratos
>



-- 
Akila Ravihansa Perera
Software Engineer, WSO2

Blog: http://ravihansa3000.blogspot.com