Set memory for admin cluster node to 2 Gb in CD
@@ -83,7 +83,7 @@ public class CapacityPolicies {
private NodeResources defaultNodeResources(ClusterSpec.Type clusterType) {
if (clusterType == ClusterSpec.Type.admin)
- return new NodeResources(0.5, zone.system().isCd() ? 2.5 : 3, 50);
+ return nodeResourcesForAdminCluster();
return new NodeResources(1.5, 8, 50);
}
@@ -111,4 +111,9 @@ public class CapacityPolicies {
return nodeCount;
}
+ private NodeResources nodeResourcesForAdminCluster() {
+ double memoryInGb = (zone.system().isCd() ? 2 : 3);
+ return new NodeResources(0.5, memoryInGb, 50);
+ }
+
}
