Class StorageGroup


  • public class StorageGroup
    extends Object
    A group of storage nodes/distributors.
    Author:
    unknown, probably thomasg, bratseth has done things here recently
    • Method Detail

      • getName

        public String getName()
        Returns the name of this group, or null if it is the root group
      • getSubgroups

        public List<StorageGroup> getSubgroups()
        Returns the subgroups of this, or an empty list if it is a leaf group
      • getNodes

        public List<StorageNode> getNodes()
        Returns the nodes of this, or an empty list of it is not a leaf group
      • isHosted

        public boolean isHosted()
      • getIndex

        public String getIndex()
        Returns the index of this group, or null if it is the root group
      • useCpuSocketAffinity

        public boolean useCpuSocketAffinity()
      • getMmapNoCoreLimit

        public Optional<Long> getMmapNoCoreLimit()
      • getVespaMallocDebugStackTrace

        public Optional<String> getVespaMallocDebugStackTrace()
      • recursiveGetNodes

        public List<StorageNode> recursiveGetNodes()
        Returns all the nodes below this group
      • getGroupStructureConfig

        public Collection<com.yahoo.vespa.config.content.StorDistributionConfig.Group.Builder> getGroupStructureConfig()
      • getConfig

        public void getConfig​(com.yahoo.vespa.config.content.StorDistributionConfig.Group.Builder builder)
      • getNumberOfLeafGroups

        public int getNumberOfLeafGroups()
      • getCapacity

        public double getCapacity()
      • countNodes

        public int countNodes​(boolean includeRetired)
        Returns the total number of nodes below this group
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • provisionHosts

        public static Map<HostResource,​com.yahoo.config.provision.ClusterMembership> provisionHosts​(NodesSpecification nodesSpecification,
                                                                                                          String clusterIdString,
                                                                                                          HostSystem hostSystem,
                                                                                                          com.yahoo.config.application.api.DeployLogger logger)