As pointed out in earlier discussions, we also need a way of managing tasks.

We are only thinking in terms of request based tenant activation and
haven't handled throttling, billing, lazy loading (or not), and
distributing task based jobs. What if a tenant activates a task that
consumes a majority of CPU cycles. We need to throttle that or at least
bill it.

The Axis2ConfigurationContextObserver does not cover task based scenarios.
I think the ntask component or a separate task manager should handle this.
Do we have a better solution?

On Tue, May 22, 2012 at 2:30 PM, Dimuthu Leelarathne <dimut...@wso2.com>wrote:

> Hi Anjana,
>
> Point taken, but the will it be possible to load TaskManagers for the only
> the tenants who has the scheduled tasks? Because current SLive has around
> 2000 tenants, and server will load all of these tenants during startup. We
> are going to see major startup times for SLive.
>
> If this is not possible we need to come up with a better design for this.
>
> thanks,
> dimuthu
>
> On Tue, May 22, 2012 at 2:22 PM, Anjana Fernando <anj...@wso2.com> wrote:
>
>> Hi Dimuthu,
>>
>> On Tue, May 22, 2012 at 2:15 PM, Dimuthu Leelarathne 
>> <dimut...@wso2.com>wrote:
>>
>>> Hi,
>>>
>>> Currently org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl is
>>> initializing task managers for all tenants at startup. This is against our
>>> tenant lazy loading concepts.
>>>
>>> Please move tenant ntask initialization to a
>>> Axis2ConfigurationContextObserver. This will be called when
>>> TenanConfiguraitonContext is loaded.
>>>
>>
>> As I remember, this was already brought up by Azeez earlier. The
>> rationale is, a scheduled task is not a service. It is not something that
>> is activated on-demand by a user in a specific tenant. But is suppose to
>> work in the scheduled manner continuously. So when a user in a tenant
>> schedules a task, it should always run, and should not unload when the
>> tenant is unloaded. And when starting the server also, all the tasks should
>> continue.
>>
>> Cheers,
>> Anjana.
>>
>>
>>>
>>> thanks,
>>> dimuthu
>>>
>>>
>>>
>>> --
>>> Dimuthu Leelarathne
>>> Technical Lead
>>>
>>> WSO2, Inc. (http://wso2.com)
>>> email: dimut...@wso2.com
>>>
>>> Lean . Enterprise . Middleware
>>>
>>>
>>
>>
>> --
>> *Anjana Fernando*
>> Associate Technical Lead
>> WSO2 Inc. | http://wso2.com
>> lean . enterprise . middleware
>>
>
>
>
> --
> Dimuthu Leelarathne
> Technical Lead
>
> WSO2, Inc. (http://wso2.com)
> email: dimut...@wso2.com
>
> Lean . Enterprise . Middleware
>
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Regards,

Tharindu

blog: http://mackiemathew.com/
M: +94777759908
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to