Thanks for the clarification, Vijitha. On Mon, Sep 10, 2018 at 3:51 PM Vijitha Ekanayake <[email protected]> wrote:
> Hi Shazni, > > To my knowledge, if we have 10 nodes in the cluster and the > taskServerCount in the task-config.xml is 5, the initial task scheduling > will happen only if the minimum of 5 nodes are up. A task could not be > duplicated in multiple servers if the configuration registry correctly > shared among the cluster nodes. It is better if we can configure > taskServerCount exactly matching nodes count in the cluster. However, I > don't think it's a must. > > Further, there can be task duplications in Hazelcast split-brain > situations. To overcome that, we might need to optimize > hazelcast configurations by placing hazelcast.properties in > the <EI_HOME>/conf/ directory. Document [1] has some details on > Hazelcast related configurations. > > [1]. https://docs.wso2.com/display/CLUSTER44x/Overview > > Thanks, > Vijitha > > > On Mon, Sep 10, 2018 at 3:16 PM Shazni Nazeer <[email protected]> wrote: > >> Thank Vijitha.Few more clarifications. >> >> Does this mean if we have 10 nodes in the cluster and if we specify 5 for >> the *taskServerCount*, then task scheduling only works only if minimum 5 >> nodes are up? >> And in this case, does it make sure the scheduled task runs only in 1 >> node of 10? >> Or do you say that since 10 nodes are there in the cluster we need to >> configure this property to 10 make it execute in only one node at a t9ime? >> >> On Mon, Sep 10, 2018 at 1:18 PM Vijitha Ekanayake <[email protected]> >> wrote: >> >>> Hi Shazni, >>> >>> AFAIK, the taskServerCount value specifies the number of nodes in the >>> cluster, which basically represents the number of server instances that >>> will share the task scheduling. Task scheduling will only begin after the >>> given number of servers are activated. Task framework ensures to execute >>> any given task only in a single node in the cluster. >>> >>> Since EI doesn't have worker/manager deployment, The value for the >>> *taskServerCount >>> *on two node EI cluster should be 2. I think we require documentation >>> update here. >>> >>> Thanks, >>> Vijitha. >>> >>> On Mon, Sep 10, 2018 at 11:57 AM Shazni Nazeer <[email protected]> wrote: >>> >>>> Hi, >>>> >>>> I would like to know the recommendation on taskServerCount in the >>>> task-config.xml as outlined in the document [1]. In a two-node EI, for >>>> a scheduled task to not duplicate we need axis2 (hazelcast) clustering >>>> enabled right? >>>> >>>> And what's the recommended value on this scenario for the >>>> taskServerCount? Does keeping it 1 cause the teaks to duplicate? >>>> >>>> [1] >>>> https://docs.wso2.com/display/ADMIN44x/Configuring+the+Task+Scheduling+Component >>>> >>>> -- >>>> Shazni Nazeer >>>> >>>> Mob : +94 777737331 >>>> LinkedIn : http://lk.linkedin.com/in/shazninazeer >>>> >>>> Blogs : >>>> >>>> https://medium.com/@mshazninazeer >>>> http://shazninazeer.blogspot.com >>>> >>>> <http://wso2.com/signature> >>>> >>> >>> >>> -- >>> Vijitha Ekanayake >>> Senior Software Engineer*, *WSO2, Inc.; http://wso2.com/ >>> Mobile : +94 777 24 73 39 | +94 718 74 44 08 >>> lean.enterprise.middleware >>> >> >> >> -- >> Shazni Nazeer >> >> Mob : +94 777737331 >> LinkedIn : http://lk.linkedin.com/in/shazninazeer >> >> Blogs : >> >> https://medium.com/@mshazninazeer >> http://shazninazeer.blogspot.com >> >> <http://wso2.com/signature> >> > > > -- > Vijitha Ekanayake > Senior Software Engineer*, *WSO2, Inc.; http://wso2.com/ > Mobile : +94 777 24 73 39 | +94 718 74 44 08 > lean.enterprise.middleware > -- Shazni Nazeer Mob : +94 777737331 LinkedIn : http://lk.linkedin.com/in/shazninazeer Blogs : https://medium.com/@mshazninazeer http://shazninazeer.blogspot.com <http://wso2.com/signature>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
