You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by Nguyen Anh Tu <ng...@gmail.com> on 2014/12/28 16:28:16 UTC
Autoscaling deployment on 4.0.0
Dear guys,
Could anyone share detail of the current deployment of autoscaling feature?
I found some documents on cwiki but they are too general.
Some questions:
- what are "gradient" & "second derivative"?
- when scaling down, do we terminate instances immediately?
- what is difference between autoscale policy and deployment policy?
- do we have "scheduler time" for autoscaling?
Thanks for help,
--Tuna
Re: Autoscaling deployment on 4.0.0
Posted by Lahiru Sandaruwan <la...@wso2.com>.
Hi Tuna,
I have published two blogs about autoscaling of 4.0.0 version.
[1]
http://lahiruwrites.blogspot.com/2014/09/autoscaling-in-apache-stratos-part-ii.html
[2]
http://lahiruwrites.blogspot.com/2014/09/autoscaling-in-apache-stratos-part-i.html
Find the some answers inline,
On Sun, Dec 28, 2014 at 8:58 PM, Nguyen Anh Tu <ng...@gmail.com> wrote:
> Dear guys,
>
> Could anyone share detail of the current deployment of autoscaling
> feature? I found some documents on cwiki but they are too general.
>
> Some questions:
> - what are "gradient" & "second derivative"?
> - when scaling down, do we terminate instances immediately?
>
We wait for a count as Manula mentioned and that value is in the drools
file, which can be changes similar to a config.
- what is difference between autoscale policy and deployment policy?
>
Autoscaling policy holds the threshold values for memory consumption, load
average, and requests in flight in 4.1.0. Details about 4.0.0 are explained
in the blog posts i've mentioned early.
Deployment policy has a huge role in upcoming version(4.1.0). Lakmal's blog
on that would help you.
[1]
http://lakmalsview.blogspot.com/2014/12/upcoming-composite-application-support.html
- do we have "scheduler time" for autoscaling?
>
You can configure the period which Stratos run the cluster monitor in
autoscaler.xml. That is the period which it runs the Autoscaling rules.
<rulesEvaluator>
<schedule>
<initialDelay>30</initialDelay>
<period>15</period>
</schedule>
</rulesEvaluator>
Thanks.
>
> Thanks for help,
> --Tuna
>
--
--
Lahiru Sandaruwan
Committer and PMC member, Apache Stratos,
Senior Software Engineer,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware
email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
Re: Autoscaling deployment on 4.0.0
Posted by Manula Chathurika Thantriwatte <ma...@wso2.com>.
Hi Tuna,
You can find description of sample autoscaling policy from [1]
[1]
https://cwiki.apache.org/confluence/display/STRATOS/4.1.0+Sample+Auto-scaling+Policy+Definition
Please find some of the answers inline.
On Sun, Dec 28, 2014 at 8:58 PM, Nguyen Anh Tu <ng...@gmail.com> wrote:
> Dear guys,
>
> Could anyone share detail of the current deployment of autoscaling
> feature? I found some documents on cwiki but they are too general.
>
> Some questions:
> - what are "gradient" & "second derivative"?
>
We have calculate gradient and second derivatives of memory consumption and
the load average of the instances. After instances get activated it start
to published the health stats. Based on the stats CEP calculates the
gradient and second derivative based on the stats received. CEP waits for
one minute time interval and calculates those values.
> - when scaling down, do we terminate instances immediately?
>
No. Autoscaler will wait for count down. After that it terminate the
instance.
> - what is difference between autoscale policy and deployment policy?
> - do we have "scheduler time" for autoscaling?
>
> Thanks for help,
> --Tuna
>
--
Regards,
Manula Chathurika Thantriwatte
Software Engineer
WSO2 Inc. : http://wso2.com
lean . enterprise . middleware
email : manulac@wso2.com / manula@apache.org
phone : +94 772492511
blog : http://manulachathurika.blogspot.com/