Checking for tenants should be very fast & O(1). i.e. the time taken to
compute tenant info should be constant irrespective of the number of
tenants in the system. The overhead imposed by this should be negligible.
If it is not in the current implementation, we have a problem & that needs
to be fixed.

On Fri, May 25, 2012 at 12:55 PM, Sanjeewa Malalgoda <[email protected]>wrote:

> yes but my point is if someone don't need tenant aware part its useless to
> have tenant aware endpoint. Because for each and
> every request we are checking tenant domain inside Tenant aware LB which
> can causes to additional overhead.
>
> Thanks.
>
>
> On Fri, May 25, 2012 at 12:47 PM, Nirmal Fernando <[email protected]> wrote:
>
>>
>>
>> On Fri, May 25, 2012 at 12:42 PM, Afkham Azeez <[email protected]> wrote:
>>
>>> TenantAwareLB extends the functionality of ServiceAwareLB. So, if you
>>> have TenantAwareLB in the config, you can do both.
>>
>>
>> Ya, basically if you have the following configuration in
>> loadbalancer.conf, it's only service aware, but not tenant.
>>
>> appserver {
>>         # multiple hosts should be separated by a comma.
>>         hosts                   10.100.3.23;
>>         domains   {
>>             wso2.as.domain {
>>                 tenant_range    *;
>>             }
>>         }
>>     }
>>
>>
>>
>>>
>>>
>>> On Fri, May 25, 2012 at 12:34 PM, Sanjeewa Malalgoda 
>>> <[email protected]>wrote:
>>>
>>>> Hi,
>>>> In current load balancer we have defined service aware load balance
>>>> endpoint as the default end point. I added tenant aware LB end point
>>>> also
>>>> into main sequence but it is commented by default. what should be the
>>>> default configuration?
>>>>
>>>> Do we need to support both  of these endpoints inside LB? In that case
>>>> we have to zip both
>>>> *loadbalancer.xml(For service aware endpoint) *and *loadbalancer.conf(For
>>>> tenant aware endpoint)*
>>>> with distribution. According to my understand we have to support both
>>>> of above options and allow users
>>>> to select endpoint type. Is it ok  having two config files?
>>>>
>>>> WDYT?
>>>>
>>>> Thanks.
>>>> --
>>>> *Sanjeewa Malalgoda*
>>>> mobile : +94 713068779
>>>>  <http://sanjeewamalalgoda.blogspot.com/>blog
>>>> :http://sanjeewamalalgoda.blogspot.com/<http://sanjeewamalalgoda.blogspot.com/>
>>>>
>>>
>>>
>>>
>>> --
>>> *Afkham Azeez*
>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>> Member; Apache Software Foundation; http://www.apache.org/
>>> * <http://www.apache.org/>**
>>> email: **[email protected]* <[email protected]>* cell: +94 77 3320919
>>> blog: **http://blog.afkham.org* <http://blog.afkham.org>*
>>> twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
>>> *
>>> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>>> *
>>> *
>>> *Lean . Enterprise . Middleware*
>>>
>>>
>>
>>
>> --
>>
>> Thanks & regards,
>> Nirmal
>>
>> Software Engineer- Platform Technologies Team, WSO2 Inc.
>> Mobile: +94715779733
>> Blog: http://nirmalfdo.blogspot.com/
>>
>
>
>
> --
> *Sanjeewa Malalgoda*
> mobile : +94 713068779
>  <http://sanjeewamalalgoda.blogspot.com/>blog
> :http://sanjeewamalalgoda.blogspot.com/<http://sanjeewamalalgoda.blogspot.com/>
>



-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* <http://www.apache.org/>**
email: **[email protected]* <[email protected]>* cell: +94 77 3320919
blog: **http://blog.afkham.org* <http://blog.afkham.org>*
twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
*
linked-in: **http://lk.linkedin.com/in/afkhamazeez*
*
*
*Lean . Enterprise . Middleware*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to