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

Reply via email to