Class StorageGroup

java.lang.Object
com.yahoo.vespa.model.content.StorageGroup

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

    • 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
    • getPartitions

      public Optional<String> getPartitions()
    • useCpuSocketAffinity

      public boolean useCpuSocketAffinity()
    • getMmapNoCoreLimit

      public Optional<Long> getMmapNoCoreLimit()
    • getCoreOnOOM

      public Optional<Boolean> getCoreOnOOM()
    • getNoVespaMalloc

      public Optional<String> getNoVespaMalloc()
    • getVespaMalloc

      public Optional<String> getVespaMalloc()
    • getVespaMallocDebug

      public Optional<String> getVespaMallocDebug()
    • 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
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • 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)