<div dir="ltr">Hi Carlos,<div> Thanks for the mail. Here are my queries,</div><div class="gmail_extra"><br clear="all"><div><br></div><div class="gmail_quote">On Tue, Dec 3, 2013 at 7:52 PM, Carlos Martín Sánchez <span dir="ltr"><<a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div><div class="gmail_quote">
On Mon, Dec 2, 2013 at 4:51 AM, Rajendar K <span dir="ltr"><<a href="mailto:k.rajendar@gmail.com" target="_blank">k.rajendar@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div class="im"><div><div>Hi Carlos,<br>
</div> I have updated the files [oneflow-templates and service] as per your instructions. Hereby specify the output of oneflow<br>
<br></div></div><div class="im">=> Elasticty conditions<br><br> "min_vms": 1,<br> "max_vms": 3,<br><b><i> "cooldown": 60, => At what period , this parameter is being employed? </i></b><br>
"elasticity_policies": [<br> {<br> "type": "CHANGE",<br> "adjust": 1,<br> "expression": "CPU < 60",<br> "period": 3,<br>
"period_number": 30,<br> "cooldown": 30 <br> }<br> ],<br> "scheduled_policies": [<br><br> ]<br> }<br><br><br></div></div><div class="im">
kindly provide detail on how auto-scaling is happened in the above sample, with relates to "period_number" , "period" and "cooldown"<br>
</div></div></blockquote><div><br></div><div>The period_number, period and cooldown attributes are explained in detail in the documentation [1].</div><div>In your example, the expression CPU < 60 must be true 30 times, each 3 seconds.</div>
</div></div></div></blockquote><div><br></div><div><b><i>So the scaling should be triggered after 1.30 minutes (30 * 3 seconds) (90 seconds) is it right?<br></i></b></div><div><b><i><br></i></b></div><div><b><i>The log shows that scaling is triggered after 16 minutes,</i></b></div>
<div> </div><div><span style="color:rgb(80,0,80)">LOG MESSAGES </span><span style="color:rgb(80,0,80)"> </span><span style="color:rgb(80,0,80)"> </span><br style="color:rgb(80,0,80)">
<span style="color:rgb(80,0,80)">12/02/13 10:06 [I] New state: DEPLOYING</span><br style="color:rgb(80,0,80)"><span style="color:rgb(80,0,80)"><b>12/02/13 10:07 [I] New state: RUNNING</b></span><br style="color:rgb(80,0,80)">
<span style="color:rgb(80,0,80)"><b>12/02/13 10:22 [I] Role role1 scaling up from 1 to 2 nodes</b></span><br style="color:rgb(80,0,80)"><span style="color:rgb(80,0,80)">12/02/13 10:22 [I] New state: SCALING</span><br style="color:rgb(80,0,80)">
<span style="color:rgb(80,0,80)">12/02/13 10:23 [I] New state: COOLDOWN</span><br style="color:rgb(80,0,80)"><span style="color:rgb(80,0,80)">12/02/13 10:23 [I] New state: RUNNING</span><br style="color:rgb(80,0,80)"><span style="color:rgb(80,0,80)"><b>12/02/13 10:38 [I] Role role1 scaling up from 2 to 3 nodes</b></span><br style="color:rgb(80,0,80)">
<span style="color:rgb(80,0,80)">12/02/13 10:38 [I] New state: SCALING</span><br style="color:rgb(80,0,80)"><span style="color:rgb(80,0,80)">12/02/13 10:39 [I] New state: COOLDOWN</span><br style="color:rgb(80,0,80)"><span style="color:rgb(80,0,80)">12/02/13 10:39 [I] New state: RUNNING</span><br>
</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div class="gmail_quote">
<div><br></div><div>After the scaling, your service will be in the cooldown period for 30 seconds before returning to running. The only defined policy is overriding the default cooldown of 60 that you set.</div><div><br>
</div></div></div></div></blockquote><div><br></div><div>if my understanding is correct, if we didn't specify any cooldown for each role , it takes the default policy as "60" using that parameter?</div><div>
<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div class="gmail_quote"><div>
</div><div>In a previous email you mentioned:</div><div><div class="im"><br>On Fri, Nov 29, 2013 at 5:19 AM, Rajendar K <span dir="ltr"><<a href="mailto:k.rajendar@gmail.com" target="_blank">k.rajendar@gmail.com</a>></span> wrote:</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div>(ii) Scheduled policies</div><div class="im"><div> -> For my trial i have specified </div><div> start time -> 2013-11-29 10:30:30</div><div> is my time format is correct? unable to scale up/down using this time format.</div>
</div></div></blockquote><div><br></div><div>But the output you provided does not have any scheduled_policies. Was that another different template?</div></div></div></div></div></blockquote><div><br></div><div>Yes, its a different template</div>
<div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div class="gmail_quote">
<div><div><br></div><div>Regards.</div><div> </div></div><div>[1] <a href="http://opennebula.org/documentation:rel4.4:appflow_elasticity" target="_blank">http://opennebula.org/documentation:rel4.4:appflow_elasticity</a> </div>
<div>--<br></div></div></div><div><div class="gmail_extra"><div class="im"><div><div dir="ltr"><div>Carlos Martín, MSc<br>Project Engineer</div><div>OpenNebula - Flexible Enterprise Cloud Made Simple<br><div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.opennebula.org/" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" style="color:rgb(42,93,176)" target="_blank"></a></span></div>
</div><div><br></div></div></div><div><div dir="ltr"><br></div></div><br></div><div><div class="h5"><div class="gmail_quote">On Mon, Dec 2, 2013 at 4:51 AM, Rajendar K <span dir="ltr"><<a href="mailto:k.rajendar@gmail.com" target="_blank">k.rajendar@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi Carlos,<br></div> I have updated the files [oneflow-templates and service] as per your instructions. Hereby specify the output of oneflow<br>
<br><br>root@aaaa:/srv/cloud/one# oneflow show 179<br>
SERVICE 179 INFORMATION <br>ID : 179 <br>NAME : Sampletest <br>USER : root <br>
GROUP : oneadmin <br>
STRATEGY : straight <br>SERVICE STATE : RUNNING <br>SHUTDOWN : shutdown <br><br>PERMISSIONS <br>
OWNER : um- <br>GROUP : --- <br>OTHER : --- <br><br>ROLE role1<br>ROLE STATE : RUNNING <br>VM TEMPLATE : 590 <br>
CARNIDALITY : 3 <br>MIN VMS : 1 <br>MAX VMS : 3 <br>COOLDOWN : 60s <br>SHUTDOWN : shutdown <br>
NODES INFORMATION<br> VM_ID NAME STAT UCPU UMEM HOST TIME<br> 568 role1_0_(service_179) runn 0 1024M 10.1.26.32 0d 01h24<br> 569 role1_1_(service_179) runn 0 1024M 10.1.26.31 0d 01h07<br>
570 role1_2_(service_179) runn 0 1024M 10.1.26.32 0d 00h51<br><br>ELASTICITY RULES<br><br>ADJUST EXPRESSION EVALS PERIOD COOL<br>+ 1 CPU[0.0] < 60 30 / 3s 30s<br>
<br><br>LOG MESSAGES <br>12/02/13 10:06 [I] New state: DEPLOYING<br>12/02/13 10:07 [I] New state: RUNNING<br>12/02/13 10:22 [I] Role role1 scaling up from 1 to 2 nodes<br>
12/02/13 10:22 [I] New state: SCALING<br>12/02/13 10:23 [I] New state: COOLDOWN<br>12/02/13 10:23 [I] New state: RUNNING<br>12/02/13 10:38 [I] Role role1 scaling up from 2 to 3 nodes<br>12/02/13 10:38 [I] New state: SCALING<br>
12/02/13 10:39 [I] New state: COOLDOWN<br>12/02/13 10:39 [I] New state: RUNNING<br><br></div>=> Elasticty conditions<br><br> "min_vms": 1,<br> "max_vms": 3,<br><b><i> "cooldown": 60, => At what period , this parameter is being employed? </i></b><br>
"elasticity_policies": [<br> {<br> "type": "CHANGE",<br> "adjust": 1,<br> "expression": "CPU < 60",<br> "period": 3,<br>
"period_number": 30,<br> "cooldown": 30 <br> }<br> ],<br> "scheduled_policies": [<br><br> ]<br> }<br><br><br></div>kindly provide detail on how auto-scaling is happened in the above sample, with relates to "period_number" , "period" and "cooldown"<br>
<br>with regards<br>Raj<br><div><div><br></div></div></div><div class="gmail_extra"><br clear="all"><div>Raj,<div><span></span><br><span></span><div>Believe Yourself...</div></div></div><div><div>
<br><br><div class="gmail_quote">On Sat, Nov 30, 2013 at 2:19 AM, Carlos Martín Sánchez <span dir="ltr"><<a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr">Hi,<div><br></div><div class="gmail_extra"><div class="gmail_quote"><div>On Fri, Nov 29, 2013 at 5:19 AM, Rajendar K <span dir="ltr"><<a href="mailto:k.rajendar@gmail.com" target="_blank">k.rajendar@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi All,<div> I am using opennebula 4.2, i have the following queries related to auto scaling features</div>
<div><br></div><div>(i) Even when conditions met, scaling up takes long time to trigger.</div>
<div> For my trial, I have used #periods 5 #period 30 cooldown 30</div><div> <br> -> i can able to c the values 5/5 in the log, and then it crosses 16/5 in course of time</div><div> -> Unable to trace down when it trigger actually.</div>
<div> hope it should trigger when it reaches 5/5 ?</div><div><br></div></div></blockquote><div><br></div></div><div>This is a known bug, the period and period number inputs in sunstone are inverted [1].</div><div>
To solve it, execute:</div>
<div><br></div><div><div>$ sudo wget <a href="http://dev.opennebula.org/projects/opennebula/repository/revisions/5c7b370f6be5f4f9167d508bdd31b580f05dafd4/raw/src/sunstone/public/js/plugins/oneflow-templates.js" target="_blank">http://dev.opennebula.org/projects/opennebula/repository/revisions/5c7b370f6be5f4f9167d508bdd31b580f05dafd4/raw/src/sunstone/public/js/plugins/oneflow-templates.js</a> -O /usr/lib/one/sunstone/public/js/plugins/oneflow-templates.js</div>
<div><br></div><div>$ sudo wget <a href="http://dev.opennebula.org/projects/opennebula/repository/revisions/970c34464a1d5a71f3a9dfdd3d77d62883400857/raw/src/sunstone/public/js/plugins/oneflow-services.js" target="_blank">http://dev.opennebula.org/projects/opennebula/repository/revisions/970c34464a1d5a71f3a9dfdd3d77d62883400857/raw/src/sunstone/public/js/plugins/oneflow-services.js</a> -O /usr/lib/one/sunstone/public/js/plugins/oneflow-services.js</div>
</div><div><br></div><div>Or wait a few days and upgrade to OpenNebula 4.4 :)</div><div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div></div><div>(ii) Scheduled policies</div><div> -> For my trial i have specified </div><div> start time -> 2013-11-29 10:30:30</div>
<div> is my time format is correct? unable to scale up/down using this time format.</div><div><br></div></div></blockquote><div><br></div></div><div>Could you paste the output of oneflow show -j ?</div><div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div></div><div>(ii) is it like "AND" conditions, if i specify both (i) and (ii)?. I have tried separately (i) and (ii) but still in-vain.</div>
</div></blockquote><div><br></div></div><div>No, they do not interfere with each other. Each condition (time, metrics expression) is evaluated independently.</div><div><br></div><div>Regards</div><div><br></div><div>[1] <a href="http://opennebula.org/documentation:rel4.2:known_issues" target="_blank">http://opennebula.org/documentation:rel4.2:known_issues</a><br>
</div><div>--<br><div>Carlos Martín, MSc<br>Project Engineer</div><div>OpenNebula - Flexible Enterprise Cloud Made Simple<br></div><div><a href="http://www.opennebula.org/" style="font-family:arial,sans-serif;font-size:13px" target="_blank">www.OpenNebula.org</a><span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"> </span><span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px">|</span><span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"> </span><a href="mailto:cmartin@opennebula.org" style="font-family:arial,sans-serif;font-size:13px" target="_blank">cmartin@opennebula.org</a><span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"> </span><span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px">|</span><span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"> </span><a href="http://twitter.com/opennebula" style="font-family:arial,sans-serif;font-size:13px" target="_blank">@OpenNebula</a> </div>
</div></div></div></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div></div></div></div></div>
</blockquote></div><br></div></div>