@Override
        public boolean canResize(NodeResources currentNodeResources, NodeResources currentSpareHostResources,
                                 ClusterSpec.Type type, boolean hasTopologyChange, int currentClusterSize) {
            return ResourceChange.canInPlaceResize(currentClusterSize, currentNodeResources, count, requestedNodeResources,
                                                   type, exclusive, hasTopologyChange)
                   &&
                   currentSpareHostResources.add(currentNodeResources.justNumbers()).satisfies(requestedNodeResources);

        }
A node spec specifying a node count and a flavor
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/provisioning/NodeSpec.java