Skip to content

Commit 99bd592

Browse files
committed
update desc and add validation
1 parent c8b6734 commit 99bd592

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

engine/components-api/src/main/java/com/cloud/configuration/ConfigurationManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public interface ConfigurationManager {
6868
ConfigKey<Float> HostCapacityTypeCpuMemoryWeight = new ConfigKey<>(ConfigKey.CATEGORY_ADVANCED, Float.class,
6969
"host.capacityType.to.order.clusters.cputomemoryweight",
7070
"0.5",
71-
"CPU to Memory weight used for COMBINED capacityTye to order cluster and host",
71+
"Weight for CPU (as a value between 0 and 1) applied to compute capacity for Pods, Clusters and Hosts for COMBINED capacityType for ordering. Weight for RAM will be (1 - weight of CPU)",
7272
true, ConfigKey.Scope.Global);
7373

7474
/**

server/src/main/java/com/cloud/configuration/ConfigurationManagerImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,7 @@ protected void weightBasedParametersForValidation() {
614614
weightBasedParametersForValidation.add(CapacityManager.SecondaryStorageCapacityThreshold.key());
615615
weightBasedParametersForValidation.add(ClusterDrsService.ClusterDrsImbalanceThreshold.key());
616616
weightBasedParametersForValidation.add(ClusterDrsService.ClusterDrsImbalanceSkipThreshold.key());
617+
weightBasedParametersForValidation.add(ConfigurationManager.HostCapacityTypeCpuMemoryWeight.key());
617618
}
618619

619620
protected void overProvisioningFactorsForValidation() {

0 commit comments

Comments
 (0)