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