@PublicAPI public class MultipleHostsExclusiveDescriptor extends TopologyDescriptor
By specifying this descriptor in ResourceManager.getAtMostNodes
user may get
more nodes than it asked for due to the fact that total capacity of all machines is
bigger (even thought the resource manager tries to find the optimal set of host
minimizing the waist of resources), namely
if user requested k nodes - if one machine exists with the capacity k it will be selected - if several machines give exact number of nodes they will be selected (in case of several possibilities number of machines will be minimized) - if it not possible to find exact number of nodes but it's possible to find more than they will be selected. The number of waisted resources and number of machines will be minimized - otherwise less nodes will be provided but as the closest as possible to k
ARBITRARY, BEST_PROXIMITY, DIFFERENT_HOSTS_EXCLUSIVE, MULTIPLE_HOSTS_EXCLUSIVE, SINGLE_HOST, SINGLE_HOST_EXCLUSIVE
Constructor and Description |
---|
MultipleHostsExclusiveDescriptor()
Constructs a new instance of the class.
|