private boolean equals(NodeResources hostResources, NodeResources advertisedResources) {
        if (hostResources.storageType() == NodeResources.StorageType.remote)
            hostResources = hostResources.withDiskGb(advertisedResources.diskGb());
        return hostResources.equalsWhereSpecified(advertisedResources);
    }
Returns the flavors of hosts which are eligible and matches the given advertised resources
node-repository/src/test/java/com/yahoo/vespa/hosted/provision/autoscale/awsnodes/AwsHostResourcesCalculatorImpl.java