-
Notifications
You must be signed in to change notification settings - Fork 1.3k
VM dynamic scaling option granularity #4643
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
d28cb78
536ea98
c9e6d4d
a397324
5794c4a
8f25bd1
ea91309
e3b2f50
d63ca70
667e741
0411053
a83173e
55ed16f
14d15aa
dcaa72c
1e84d8c
cb693af
90da94d
ced6630
4b93c40
10d0953
d847caa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -342,4 +342,6 @@ public boolean isUsedBySystem() { | |
| @Override | ||
| boolean isDisplay(); | ||
|
|
||
| boolean isDynamicallyScalable(); | ||
|
|
||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -75,6 +75,9 @@ public class ServiceOfferingVO extends DiskOfferingVO implements ServiceOffering | |
| @Column(name = "deployment_planner") | ||
| private String deploymentPlanner = null; | ||
|
|
||
| @Column(name = "dynamic_scaling_enabled") | ||
| private boolean dynamicScalingEnabled = true; | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @harikrishna-patnala what's the difference between "dynamic_scaling_enabled" vs "is_dynamic" field?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is_dynamic is related to custom compute offerings and thats a transient parameter. |
||
| // This is a delayed load value. If the value is null, | ||
| // then this field has not been loaded yet. | ||
| // Call service offering dao to load it. | ||
|
|
@@ -91,7 +94,7 @@ protected ServiceOfferingVO() { | |
| } | ||
|
|
||
| public ServiceOfferingVO(String name, Integer cpu, Integer ramSize, Integer speed, Integer rateMbps, Integer multicastRateMbps, boolean offerHA, String displayText, | ||
| ProvisioningType provisioningType, boolean useLocalStorage, boolean recreatable, String tags, boolean systemUse, VirtualMachine.Type vmType, boolean defaultUse) { | ||
| ProvisioningType provisioningType, boolean useLocalStorage, boolean recreatable, String tags, boolean systemUse, VirtualMachine.Type vmType, boolean defaultUse) { | ||
| super(name, displayText, provisioningType, false, tags, recreatable, useLocalStorage, systemUse, true); | ||
| this.cpu = cpu; | ||
| this.ramSize = ramSize; | ||
|
|
@@ -105,64 +108,22 @@ public ServiceOfferingVO(String name, Integer cpu, Integer ramSize, Integer spee | |
| this.vmType = vmType == null ? null : vmType.toString().toLowerCase(); | ||
| } | ||
|
|
||
| public ServiceOfferingVO(String name, Integer cpu, Integer ramSize, Integer speed, Integer rateMbps, Integer multicastRateMbps, boolean offerHA, boolean limitCpuUse, | ||
| boolean volatileVm, String displayText, ProvisioningType provisioningType, boolean useLocalStorage, boolean recreatable, String tags, boolean systemUse, VirtualMachine.Type vmType) { | ||
| public ServiceOfferingVO(String name, Integer cpu, Integer ramSize, Integer speed, Integer rateMbps, Integer multicastRateMbps, boolean offerHA, | ||
| boolean limitResourceUse, boolean volatileVm, String displayText, ProvisioningType provisioningType, boolean useLocalStorage, boolean recreatable, String tags, boolean systemUse, | ||
| VirtualMachine.Type vmType, String hostTag, String deploymentPlanner, boolean dynamicScalingEnabled) { | ||
| super(name, displayText, provisioningType, false, tags, recreatable, useLocalStorage, systemUse, true); | ||
| this.cpu = cpu; | ||
| this.ramSize = ramSize; | ||
| this.speed = speed; | ||
| this.rateMbps = rateMbps; | ||
| this.multicastRateMbps = multicastRateMbps; | ||
| this.offerHA = offerHA; | ||
| this.limitCpuUse = limitCpuUse; | ||
| this.limitCpuUse = limitResourceUse; | ||
DaanHoogland marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| this.volatileVm = volatileVm; | ||
| this.vmType = vmType == null ? null : vmType.toString().toLowerCase(); | ||
| } | ||
|
|
||
| public ServiceOfferingVO(String name, Integer cpu, Integer ramSize, Integer speed, Integer rateMbps, Integer multicastRateMbps, boolean offerHA, | ||
| boolean limitResourceUse, boolean volatileVm, String displayText, ProvisioningType provisioningType, boolean useLocalStorage, boolean recreatable, String tags, boolean systemUse, | ||
| VirtualMachine.Type vmType, String hostTag) { | ||
| this(name, | ||
| cpu, | ||
| ramSize, | ||
| speed, | ||
| rateMbps, | ||
| multicastRateMbps, | ||
| offerHA, | ||
| limitResourceUse, | ||
| volatileVm, | ||
| displayText, | ||
| provisioningType, | ||
| useLocalStorage, | ||
| recreatable, | ||
| tags, | ||
| systemUse, | ||
| vmType | ||
| ); | ||
| this.hostTag = hostTag; | ||
| } | ||
|
|
||
| public ServiceOfferingVO(String name, Integer cpu, Integer ramSize, Integer speed, Integer rateMbps, Integer multicastRateMbps, boolean offerHA, | ||
| boolean limitResourceUse, boolean volatileVm, String displayText, ProvisioningType provisioningType, boolean useLocalStorage, boolean recreatable, String tags, boolean systemUse, | ||
| VirtualMachine.Type vmType, String hostTag, String deploymentPlanner) { | ||
| this(name, | ||
| cpu, | ||
| ramSize, | ||
| speed, | ||
| rateMbps, | ||
| multicastRateMbps, | ||
| offerHA, | ||
| limitResourceUse, | ||
| volatileVm, | ||
| displayText, | ||
| provisioningType, | ||
| useLocalStorage, | ||
| recreatable, | ||
| tags, | ||
| systemUse, | ||
| vmType, | ||
| hostTag); | ||
| this.deploymentPlanner = deploymentPlanner; | ||
| this.dynamicScalingEnabled = dynamicScalingEnabled; | ||
| } | ||
|
|
||
| public ServiceOfferingVO(ServiceOfferingVO offering) { | ||
|
|
@@ -189,6 +150,7 @@ public ServiceOfferingVO(ServiceOfferingVO offering) { | |
| volatileVm = offering.isVolatileVm(); | ||
| hostTag = offering.getHostTag(); | ||
| vmType = offering.getSystemVmType(); | ||
| dynamicScalingEnabled = offering.isDynamicScalingEnabled(); | ||
| } | ||
|
|
||
| @Override | ||
|
|
@@ -334,4 +296,13 @@ public void setDynamicFlag(boolean isdynamic) { | |
| public boolean isCustomCpuSpeedSupported() { | ||
| return isCustomized() && getDetail("minCPU") != null; | ||
| } | ||
|
|
||
| @Override | ||
| public boolean isDynamicScalingEnabled() { | ||
| return dynamicScalingEnabled; | ||
| } | ||
|
|
||
| public void setDynamicScalingEnabled(boolean dynamicScalingEnabled) { | ||
| this.dynamicScalingEnabled = dynamicScalingEnabled; | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.