Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

During the deployment of VM, if we set memory-dynamic-min = memory-dynamic-max = requested RAM(say K) then the guest VM gets K amount of RAM, later we can increase the RAM by setting a higher value then K within the memory static range.The constraint is 

Note : From XS following are the constraints (read xenserver admin guide) 

  • 0 ≤ memory-static-min ≤ memory-dynamic-min ≤ memory-dynamic-max ≤ memory-static-max  
  • Dynamic Minimum ≥ 1⁄4 Static Maximum for all supported operating systems

DeployVmCmd - 

During the initial deployment of the VM we set mem-static-min = 128MB, mem-static-max  = 8GB and memory-dynamic-min = memory-dynamic-max = requested RAM(service offering).

  • static min = service_offering / memory_overprovisioning_of_cluster.  
  • dynamic min = service_offering / memory_overprovisioning_of_cluster.  
  • dynamic max = service_offering  
  • static max = (4 * service_offering) / memory_overprovisioning_of_cluster 

ScaleVmCmd - 

During scaling up of vm, the new requested RAM is set to mem-dynamic-min and mem-dynamic-max (values should satisfy the constraint 0 ≤ memory-static-min ≤ memory-dynamic-min ≤ memory-dynamic-max ≤ memory-static-max)

While scaling "up" the vm say from service offering "x" to "y" we will change  

  • dynamic min = new service_offering / memory_overprovisioning_of_cluster.  
  • dynamic max = new service_offering  

and ensure that

  • new dynamic max (y) <= static max and  
  • new dynamic min (y / memory_overprovisioning_of_cluster) >= static min.

UI flow

  • UI needs to give an action for upgrading vm (when vm is in running / stopped state) just like we give the same option when vm is stopped.

...