I think we should provide a description on the values used in the formulas. Like for example in the load avg formula what is "cores"? The following are some of the descriptions:
loadAvg=Load Average of the instance cores = Number of CPU cores Regards, Mariangela *--* Mariangela Hills Senior Technical Writer *WSO2, Inc.*lean.enterprise.middleware. m: +94 773 500185 w: http://wso2.com <http://wso2.com/events/> On Thu, Apr 24, 2014 at 9:30 AM, Praneesha Chandrasiri <pranee...@wso2.com>wrote: > @Nirmal - Thanks for the comments. I've added the amendments. > > @Lahiru - I suppose you have mentioned to remove the parameters in the > 4.1.0 release as in [1] . > > Aren't the parameters need to be retained in 4.0 docs? > > Please advise. > > [1] https://issues.apache.org/jira/browse/STRATOS-524 > > > On Thu, Apr 24, 2014 at 5:01 AM, Lahiru Sandaruwan <lahi...@wso2.com>wrote: > >> Hi Nirmal, >> >> I have already created a Jira for removing some of the values. [1] >> +1 for correcting values as you have mentioned. >> >> And Mari, please remove gradient, secondDerivative, >> scaleDownMarginOfGradient, scaleDownMarginOfSecondDerivative from sample, >> in each block. Use Nirmals values for sample. >> >> Thanks. >> >> [1] https://issues.apache.org/jira/browse/STRATOS-524 >> >> >> On Thu, Apr 24, 2014 at 4:53 AM, Nirmal Fernando >> <nirmal070...@gmail.com>wrote: >> >>> >>> https://cwiki.apache.org/confluence/display/STRATOS/4.0.0+Sample+Auto-scaling+Policy+Definition#id-4.0.0SampleAuto-scalingPolicyDefinition-loadThresholds >>> >>> * memoryConsumption - is a percentage and cannot go beyond 100 since a >>> process cannot take more than total physical memory. >>> >>> formula: (usedMemory / totalMemory) * 100 >>> >>> * loadAverage - is a percentage and it can go beyond 100% but 6000 is >>> not a practical value. >>> >>> formula: (loadAvg/cores) * 100 >>> >>> * Further you do not want to auto-scale when the gradient is 0 (which >>> means 'y' doesn't change with time (x)). >>> >>> Please see following sample: >>> >>> { >>> "id": "autoscale-policy-1", >>> "loadThresholds": { >>> "requestsInFlight": { >>> "average": 50, >>> "secondDerivative": 0.2, >>> "gradient": 10, >>> "scaleDownMarginOfGradient": 20, >>> "scaleDownMarginOfSecondDerivative": 0.5 >>> }, >>> "memoryConsumption": { >>> "average": 70, >>> "secondDerivative": 0.2, >>> "gradient": 10, >>> "scaleDownMarginOfGradient": 20, >>> "scaleDownMarginOfSecondDerivative": 0.5 >>> }, >>> "loadAverage": { >>> "average": 100, >>> "secondDerivative": 0.2, >>> "gradient": 20, >>> "scaleDownMarginOfGradient": 20, >>> "scaleDownMarginOfSecondDerivative": 0.5 >>> } >>> } >>> } >>> >>> @Mari, would you be able to do these amendments? >>> >>> Thanks. >>> >>> -- >>> Best Regards, >>> Nirmal >>> >>> Nirmal Fernando. >>> PPMC Member & Committer of Apache Stratos, >>> Senior Software Engineer, WSO2 Inc. >>> >>> Blog: http://nirmalfdo.blogspot.com/ >>> >> >> >> >> -- >> -- >> Lahiru Sandaruwan >> Committer and PPMC member, Apache Stratos(incubating), >> Senior Software Engineer, >> WSO2 Inc., http://wso2.com >> lean.enterprise.middleware >> >> email: lahi...@wso2.com cell: (+94) 773 325 954 >> blog: http://lahiruwrites.blogspot.com/ >> twitter: http://twitter.com/lahirus >> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 >> >> > > > -- > Thanks & Best Regards, > *Praneesha Chandrasiri* > *Technical Writer* > *WSO2 Inc. * > *Mobile: +(94) 718156888 <%2B%2894%29%20718156888>* > *E-mail: pranee...@wso2.com <pranee...@wso2.com>* > >