<div dir="ltr">Hi,<div><br></div><div><div>What is happening is that the wizard is creating a template with these values:</div><div># Periods = 60</div><div>Period = 3</div></div><div><br></div><div>This is a bug [1] that we solved after the final release, but somehow we forgot to include it in the known issues page. I'll add a warning in the documentation with the workaround:</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">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><div><br></div><div><div>$ sudo wget <a href="http://dev.opennebula.org/projects/opennebula/repository/revisions/970c34464a1d5a71f3a9dfdd3d77d62883400857/raw/src/sunstone/public/js/plugins/oneflow-services.js">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><br></div></div><div><br></div><div><br></div><div>Best regards</div><div class="gmail_extra"><br></div><div class="gmail_extra">[1] <a href="http://dev.opennebula.org/issues/2249">http://dev.opennebula.org/issues/2249</a><br clear="all">

<div><div dir="ltr">--<br>Join us at <a href="http://opennebulaconf.com" target="_blank">OpenNebulaConf2013</a> in Berlin, 24-26 September, 2013<br>--<div>Carlos Martín, MSc<br>Project Engineer<br>OpenNebula - The Open-source Solution for Data Center Virtualization<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></div>
<br><br><div class="gmail_quote">On Wed, Sep 4, 2013 at 10:52 AM, Naza <span dir="ltr"><<a href="mailto:naza1715@gmail.com" target="_blank">naza1715@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><div><div><div><div><div>In the opennebula sunstone oneflow service elasticity policies, it says that <br></div><br></div># Periods = Number of periods that the expression must be true before the elasticity is triggered<br>


<br></div>Period = Duration, in seconds, of each period in '# Periods'<br><br></div>My configuration as follow (refer to the attachment)<br><br># Periods = 3 <br></div>Period = 60<br><br></div><div>I instantiate this template. <br>


<br></div>When I run 'oneflow show' command it shows:<br><br>nebula@z2-hn01:~$ oneflow show 4<br>SERVICE 4 INFORMATION                                                           <br>ID                  : 4                   <br>


NAME                : test-oneflow-service<br>USER                : nebula              <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 frontend<br>ROLE STATE          : RUNNING             <br>VM TEMPLATE         : 3                   <br>CARNIDALITY         : 1                   <br>MIN VMS             : 1                   <br>


MAX VMS             : 1                   <br>COOLDOWN            : 15s                 <br>SHUTDOWN            : shutdown            <br>NODES INFORMATION<br> VM_ID NAME                    STAT UCPU    UMEM HOST                       TIME<br>


    21 frontend_0_(service_4)  runn    0      8G z2-nc06                0d 01h01<br><br>ROLE db_master<br>ROLE STATE          : RUNNING             <br>PARENTS             : frontend            <br>VM TEMPLATE         : 4                   <br>


CARNIDALITY         : 2                   <br>MIN VMS             : 1                   <br>MAX VMS             : 3                   <br>COOLDOWN            : 15s                 <br>SHUTDOWN            : shutdown            <br>


NODES INFORMATION<br> VM_ID NAME                    STAT UCPU    UMEM HOST                       TIME<br>    22 db_master_0_(service_4) runn    0      8G z2-nc05                0d 00h59<br>    23 db_master_1_(service_4) runn    0      8G z2-nc04                0d 00h22<br>


<br>ELASTICITY RULES<br><br>ADJUST       EXPRESSION                                       EVALS PERIOD  COOL<br>+ 1          MEM_USED_PERC[2.8] > 1.5                         37 /      3s   60s<br>+ 1          DISK_USED_PERC_SDA2[--] > 50                     0 / 6     3s   60s<br>


<br><br>LOG MESSAGES                                                                    <br>09/04/13 15:26 [I] New state: DEPLOYING<br>09/04/13 15:31 [I] New state: RUNNING<br>09/04/13 16:05 [I] Role db_master scaling up from 1 to 2 nodes<br>


09/04/13 16:05 [I] New state: SCALING<br>09/04/13 16:07 [I] New state: COOLDOWN<br>09/04/13 16:08 [I] New state: RUNNING<br><br></div>Questions:<br></div>1) EVALS value is truncated when it has to digit number (37)<br><div>


<div><div><div><div><div><div><div>2) I set 'Period = 60' but it shows 3s<br></div><div>3) I set '# Periods = 3' but it shows 6<br></div><div>4) Refer to the LOG, it took about half an hour to scale up. I am not sure why it is not after (# Periods * Period) which is about 3 minutes (3 * 60s). <br>


<br></div><div>Please correct me if I misunderstand the oneflow settings.<br><br></div><div>Regards,<br>Naza<br><br></div></div></div></div></div></div></div></div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br></div></div>