You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by Nirmal Fernando <ni...@gmail.com> on 2014/04/24 01:23:15 UTC

Some of the sample values for auto-scaling thresholds doesn't make sense.

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/

Re: Some of the sample values for auto-scaling thresholds doesn't make sense.

Posted by Praneesha Chandrasiri <pr...@wso2.com>.
Hi Lahiru,

Thanks for the update.

I have added the changes in [1] accordingly.

[1]
https://cwiki.apache.org/confluence/display/STRATOS/4.0.0+Sample+Auto-scaling+Policy+Definition



On Thu, Apr 24, 2014 at 8:12 PM, Lahiru Sandaruwan <la...@wso2.com> wrote:

> Hi Praneesha,
>
> [1] should be replaced by [2].
>
> Thanks.
>
> *[1]*
>
> {
>    "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
>      }
>    }
>  }
>
>  *[2] *
>  {
>    "id": "autoscale-policy-1",
>    "loadThresholds": {
>      "requestsInFlight": {
>        "average": 50
>      },
>      "memoryConsumption": {
>        "average": 70
>      },
>      "loadAverage": {
>        "average": 100
>      }
>    }
>  }
>
>
>
> On Thu, Apr 24, 2014 at 10:23 AM, Praneesha Chandrasiri <
> praneesha@wso2.com> wrote:
>
>> Hi Mari,
>>
>> Added the descriptions on the values in [1].
>>
>> [1]
>> https://cwiki.apache.org/confluence/display/STRATOS/4.0.0+Sample+Auto-scaling+Policy+Definition
>>
>>
>> On Thu, Apr 24, 2014 at 10:10 AM, Nirmal Fernando <nirmal070125@gmail.com
>> > wrote:
>>
>>>
>>>
>>>
>>> On Thu, Apr 24, 2014 at 10:04 AM, Mariangela Hills <ma...@wso2.com>wrote:
>>>
>>>> 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
>>>>
>>>
>>> +1 :-)
>>>
>>>>
>>>> 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 <
>>>> praneesha@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 <la...@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 <
>>>>>> nirmal070125@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: lahirus@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: praneesha@wso2.com <pr...@wso2.com>*
>>>>>
>>>>>
>>>>
>>>
>>>
>>> --
>>> Best Regards,
>>> Nirmal
>>>
>>> Nirmal Fernando.
>>> PPMC Member & Committer of Apache Stratos,
>>> Senior Software Engineer, WSO2 Inc.
>>>
>>> Blog: http://nirmalfdo.blogspot.com/
>>>
>>
>>
>>
>> --
>> Thanks & Best Regards,
>> *Praneesha Chandrasiri*
>> *Technical Writer*
>> *WSO2 Inc. *
>> *Mobile: +(94) 718156888 <%2B%2894%29%20718156888>*
>> *E-mail: praneesha@wso2.com <pr...@wso2.com>*
>>
>>
>
>
> --
> --
> Lahiru Sandaruwan
> Committer and PPMC member, Apache Stratos(incubating),
> Senior Software Engineer,
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> email: lahirus@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*
*E-mail: praneesha@wso2.com <pr...@wso2.com>*

Re: Some of the sample values for auto-scaling thresholds doesn't make sense.

Posted by Lahiru Sandaruwan <la...@wso2.com>.
Hi Praneesha,

[1] should be replaced by [2].

Thanks.

*[1]*

{
   "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
     }
   }
 }

 *[2] *
 {
   "id": "autoscale-policy-1",
   "loadThresholds": {
     "requestsInFlight": {
       "average": 50
     },
     "memoryConsumption": {
       "average": 70
     },
     "loadAverage": {
       "average": 100
     }
   }
 }



On Thu, Apr 24, 2014 at 10:23 AM, Praneesha Chandrasiri
<pr...@wso2.com>wrote:

> Hi Mari,
>
> Added the descriptions on the values in [1].
>
> [1]
> https://cwiki.apache.org/confluence/display/STRATOS/4.0.0+Sample+Auto-scaling+Policy+Definition
>
>
> On Thu, Apr 24, 2014 at 10:10 AM, Nirmal Fernando <ni...@gmail.com>wrote:
>
>>
>>
>>
>> On Thu, Apr 24, 2014 at 10:04 AM, Mariangela Hills <ma...@wso2.com>wrote:
>>
>>> 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
>>>
>>
>> +1 :-)
>>
>>>
>>> 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 <
>>> praneesha@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 <la...@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 <
>>>>> nirmal070125@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: lahirus@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: praneesha@wso2.com <pr...@wso2.com>*
>>>>
>>>>
>>>
>>
>>
>> --
>> Best Regards,
>> Nirmal
>>
>> Nirmal Fernando.
>> PPMC Member & Committer of Apache Stratos,
>> Senior Software Engineer, WSO2 Inc.
>>
>> Blog: http://nirmalfdo.blogspot.com/
>>
>
>
>
> --
> Thanks & Best Regards,
> *Praneesha Chandrasiri*
> *Technical Writer*
> *WSO2 Inc. *
> *Mobile: +(94) 718156888 <%2B%2894%29%20718156888>*
> *E-mail: praneesha@wso2.com <pr...@wso2.com>*
>
>


-- 
--
Lahiru Sandaruwan
Committer and PPMC member, Apache Stratos(incubating),
Senior Software Engineer,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

email: lahirus@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

Re: Some of the sample values for auto-scaling thresholds doesn't make sense.

Posted by Praneesha Chandrasiri <pr...@wso2.com>.
Hi Mari,

Added the descriptions on the values in [1].

[1]
https://cwiki.apache.org/confluence/display/STRATOS/4.0.0+Sample+Auto-scaling+Policy+Definition


On Thu, Apr 24, 2014 at 10:10 AM, Nirmal Fernando <ni...@gmail.com>wrote:

>
>
>
> On Thu, Apr 24, 2014 at 10:04 AM, Mariangela Hills <ma...@wso2.com>wrote:
>
>> 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
>>
>
> +1 :-)
>
>>
>> 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 <
>> praneesha@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 <la...@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 <
>>>> nirmal070125@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: lahirus@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: praneesha@wso2.com <pr...@wso2.com>*
>>>
>>>
>>
>
>
> --
> Best Regards,
> Nirmal
>
> Nirmal Fernando.
> PPMC Member & Committer of Apache Stratos,
> Senior Software Engineer, WSO2 Inc.
>
> Blog: http://nirmalfdo.blogspot.com/
>



-- 
Thanks & Best Regards,
*Praneesha Chandrasiri*
*Technical Writer*
*WSO2 Inc. *
*Mobile: +(94) 718156888*
*E-mail: praneesha@wso2.com <pr...@wso2.com>*

Re: Some of the sample values for auto-scaling thresholds doesn't make sense.

Posted by Nirmal Fernando <ni...@gmail.com>.
On Thu, Apr 24, 2014 at 10:04 AM, Mariangela Hills <ma...@wso2.com>wrote:

> 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
>

+1 :-)

>
> 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 <praneesha@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 <la...@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 <nirmal070125@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: lahirus@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: praneesha@wso2.com <pr...@wso2.com>*
>>
>>
>


-- 
Best Regards,
Nirmal

Nirmal Fernando.
PPMC Member & Committer of Apache Stratos,
Senior Software Engineer, WSO2 Inc.

Blog: http://nirmalfdo.blogspot.com/

Re: Some of the sample values for auto-scaling thresholds doesn't make sense.

Posted by Mariangela Hills <ma...@wso2.com>.
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
<pr...@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 <la...@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 <ni...@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: lahirus@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: praneesha@wso2.com <pr...@wso2.com>*
>
>

Re: Some of the sample values for auto-scaling thresholds doesn't make sense.

Posted by Praneesha Chandrasiri <pr...@wso2.com>.
@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 <la...@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 <ni...@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: lahirus@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*
*E-mail: praneesha@wso2.com <pr...@wso2.com>*

Re: Some of the sample values for auto-scaling thresholds doesn't make sense.

Posted by Lahiru Sandaruwan <la...@wso2.com>.
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 <ni...@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: lahirus@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