private List<VespaFlavor> flavorsCompatibleWithReal(NodeResources realResources, boolean exactOnly) {
        return flavors.values().stream()
                      .filter(flavor -> exactOnly
                                        ? resourcesCalculator.realResourcesOfChildContainer(flavor.advertisedResources(), flavor).compatibleWith(realResources)
                                        : flavor.realResources().satisfies(realResources))
                      .toList();
    }
Returns the flavors of hosts which are eligible and matches the given real resources
node-repository/src/test/java/com/yahoo/vespa/hosted/provision/autoscale/awsnodes/AwsHostResourcesCalculatorImpl.java