cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bob <>
Subject cloudstack 4.4.2 - VM network rate limit - has no effect
Date Thu, 26 Mar 2015 17:12:41 GMT
Hello, I am using a PHP API to cloudstack 4.4.2 - When I make the call 
to deployVirtualMachine and attempt to pass the parm 
details[0].networkrate = 1 it does not rate limit the network to 1MB. 
What am I doing wrong?

It is using the default value from Global Settings: and ignores my VM compute service offering 
rate. How do I force it to use the rate defined by my api call to 

Here is my PHP code:
         $displayVM = "true"; // an optional field, whether to the 
display the vm to the end user or not.
         $hypervisor = "KVM"; //the hypervisor on which to deploy the 
virtual machine

         $vars = array(
             // Required by API call:
             'serviceofferingid' => CUSTOM_COMPUTE_OFFERING,
             // Optional but useful:
             'details[0].networkrate'=>1, // Network Throttling of 1MB/s 
not working here...
//            'networkrate'=>1,
             'domainid'=>$domainid, //ROOT_DOMAIN_ID,
         ); //
$deploy = $cloudstack->deployVirtualMachine($vars); // does curl request...

Note: It will create the VM and runs fine with no errors generated... 
However, when I download a 10 MB test file it will get 10MB/s download, 
and does not limit it to 1MB/s.
Also, when I use the cloudstack interface to look at the Instance 
Details, I do not see any rate limit set.

View raw message