diff options
author | Håkon Hallingstad <hakon@verizonmedia.com> | 2020-11-26 15:22:19 +0100 |
---|---|---|
committer | Håkon Hallingstad <hakon@verizonmedia.com> | 2020-11-26 15:22:19 +0100 |
commit | d6e727e30087e321911aa240fee03053cc22b1f4 (patch) | |
tree | f20b90d16103704adcad2085a6084252ef826fc8 /config-provisioning | |
parent | c1303724a101117e5c7cbf0d3ff9997705c01033 (diff) |
Allow preprovision capacity on partially filled hosts
Adds new functionality that can be disabled by setting the
compact-preprovision-capacity flag to false.
preprovision-capacity can be satisfied by hosts with spare resources. The
DynamicProvisioningMaintainer does this as follows:
1. For each cluster in preprovision-capacity, try to
a. allocate the cluster using NodePrioritizer
b. If there is a deficit, provision the deficit with HostProvisioner, which
may provision larger shared hosts depending on shared-hosts, and retry
(1) from the first cluster again.
c. Otherwise, pretend the nodes are allocated and go to next cluster.
2. All of preprovision-capacity was successfully allocated, and empty hosts
are therefore excess that can be deprovisioned.
Diffstat (limited to 'config-provisioning')
-rw-r--r-- | config-provisioning/src/main/java/com/yahoo/config/provision/ClusterSpec.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config-provisioning/src/main/java/com/yahoo/config/provision/ClusterSpec.java b/config-provisioning/src/main/java/com/yahoo/config/provision/ClusterSpec.java index 71776a7641d..7d2a96ce991 100644 --- a/config-provisioning/src/main/java/com/yahoo/config/provision/ClusterSpec.java +++ b/config-provisioning/src/main/java/com/yahoo/config/provision/ClusterSpec.java @@ -101,7 +101,7 @@ public final class ClusterSpec { private boolean exclusive = false; private Optional<Id> combinedId = Optional.empty(); - Builder(Type type, Id id, boolean specification) { + private Builder(Type type, Id id, boolean specification) { this.type = type; this.id = id; this.specification = specification; |