Since the discussion diverted on another related issue, this one still need to be investigated :)

Francois

On 2013-07-03 10:14 AM, Francois Gaudreault wrote:
I did some more tests around this, and the NetScaler does trigger the scale down, but it looks like CS never reacts.

Netscaler did:
Autoscale: Evaluating autoscale policy Cloud-AutoScale-Policy-xxxxx-80-12Autoscale: Triggering autoscale action: SCALE_DOWN for policy: Cloud-AutoScale-ScaleDownAction-xxxxx-80Autoscale: :::925###POST /provision HTTP/1.1
Host: NS
Content-Length: 866

{ "autoscale" : { "ns" : { "sysid" : "98310000cb254307ee78" }, "vserver" : { "name" : "Cloud-VirtualServer-xxxxx-80", "servicegroupname" : "Cloudf84eaf4ed3fe43aebbc4d2ff9f7311bc" }, "cloudprofile" : { "type" : "CLOUDSTACK", "url" : "http://172.30.100.15:8080/client/api";, "apiKey" : "x2134OIL1TKNyW6PahIq4NubxMn1tK3krpQFyDWks8fv_[...]", "sharedsecret" : "HtpqjvHENGMqZLBcn_o-_[...]" }, "action" : { "type" : "SCALE_DOWN", "params" : "command=destroyVirtualMachine&lbruleid=24aab38f-f466-45c5-9878-484841ba1b9d", "quiettime" : "300", "destroyVMGracePeriod" : "30" }, "autoprovisiondns" : { "nsdomainname" : "autoscale-internal_server_Cloudf84eaf4ed3fe43aebbc4d2ff9f7311bc", "nsservername" : "autoscale-internal_server_Cloudf84eaf4ed3fe43aebbc4d2ff9f7311bc" } } }:::
current time is Tue Jul  2 21:09:09 2013
Autoscale: Timer Event: Cloud-AutoScale-Timer-xxxxx-80
Returning avg_val: 67

If I look in CloudStack, I do see the deployVirtualMachine calls coming from the NetScaler during the scale up, but I don't see any destroyVirtualMachine hitting the server for the scale down.


--
Francois Gaudreault
Architecte de Solution Cloud | Cloud Solutions Architect
fgaudrea...@cloudops.com
514-629-6775
- - -
CloudOps
420 rue Guy
Montréal QC  H3J 1S6
www.cloudops.com
@CloudOps_

Reply via email to