Thanks Lahiru! Yes with this I verified scaling up/down scenarios with an application having a single cartridge. The plan is to test dependent scaling feature using two cartridges.
Thanks On Fri, Dec 12, 2014 at 6:58 PM, Lahiru Sandaruwan <lahi...@wso2.com> wrote: > > Great work Imesh. Stats controlling is helpful for scaling down and up > scenario testings. > > Thanks. > > On Fri, Dec 12, 2014 at 3:58 PM, Imesh Gunaratne <im...@apache.org> wrote: >> >> Hi Devs, >> >> Please find the latest mock-iaas.xml configuration below: >> >> <mock-iaas enabled="true"> >> <health-statistics> >> <cartridge type="tomcat"> >> <!-- factor:memory-consumption|load-average|request-in-flight--> >> <!-- mode:loop|continue|stop --> >> <!-- Mode defines the action needs to be taken after the last >> sample value: >> loop: start from beginning >> continue: continue the last sample value >> stop: stop publishing statistics --> >> <pattern factor="memory-consumption" mode="continue"> >> <!-- Sample values --> >> <sampleValues>20,30,40,50,60,70,50,40,30,20</sampleValues> >> <!-- Duration of each sample value in seconds --> >> <sampleDuration>60</sampleDuration> >> </pattern> >> <pattern factor="load-average" mode="continue"> >> <!-- Sample values --> >> <sampleValues>20</sampleValues> >> <!-- Duration of each sample value in seconds --> >> <sampleDuration>60</sampleDuration> >> </pattern> >> </cartridge> >> </health-statistics> >> </mock-iaas> >> >> Thanks >> >> >> On Fri, Dec 12, 2014 at 11:27 AM, Imesh Gunaratne <im...@apache.org> >> wrote: >>> >>> A good suggestion Udara, we have written this feature in a way that we >>> can take it out and run as a separate product. In the future we can add >>> features that you have suggested with this. >>> >>> Currently we only implemented the basic features needed for verifying >>> service grouping functionality. >>> >>> Thanks >>> >>> On Fri, Dec 12, 2014 at 8:36 AM, Udara Liyanage <ud...@wso2.com> wrote: >>>> >>>> Hi Imesh, >>>> >>>> As a suggestion how about letting user triggers events such as >>>> terminate the instance/thread in order to simulate, >>>> Agent stopping, >>>> Instance terminates >>>> Increases/decrease statistics values >>>> >>>> So we can easily test how Stratos behave in those scenarios. >>>> >>>> >>>> >>>> Touched, not typed. Erroneous words are a feature, not a typo. >>>> >>> >>> >>> -- >>> Imesh Gunaratne >>> >>> Technical Lead, WSO2 >>> Committer & PMC Member, Apache Stratos >>> >> >> >> -- >> Imesh Gunaratne >> >> Technical Lead, WSO2 >> Committer & PMC Member, Apache Stratos >> > > > -- > -- > Lahiru Sandaruwan > Committer and PMC member, Apache Stratos, > Senior Software Engineer, > WSO2 Inc., http://wso2.com > lean.enterprise.middleware > > email: lahi...@wso2.com blog: http://lahiruwrites.blogspot.com/ > linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 > > -- Imesh Gunaratne Technical Lead, WSO2 Committer & PMC Member, Apache Stratos