On Tue, May 22, 2012 at 2:22 PM, Anjana Fernando <[email protected]> wrote:
> Hi Dimuthu, > > On Tue, May 22, 2012 at 2:15 PM, Dimuthu Leelarathne <[email protected]>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. > But now we have a major problem if we have say 100,001 tenants. We will create this for all tenants unnecessarily. With the next release, we have tenant partitions defined at the LB level, which relies on the worker nodes to lazy load the tenants. There is no tenant partitioning concept at the worker node level. So, even though cluster as-0-100 loads tenants 0-100, the task thing will load all 100,001! We need to find a solution to this issue. > > Cheers, > Anjana. > > >> >> thanks, >> dimuthu >> >> >> >> -- >> Dimuthu Leelarathne >> Technical Lead >> >> WSO2, Inc. (http://wso2.com) >> email: [email protected] >> >> Lean . Enterprise . Middleware >> >> > > > -- > *Anjana Fernando* > Associate Technical Lead > WSO2 Inc. | http://wso2.com > lean . enterprise . middleware > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *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
