Class ClusterSpec


  • public final class ClusterSpec
    extends Object
    A specification of a cluster - or group in a grouped cluster - to be run on a set of hosts. This is a value object.
    Author:
    bratseth
    • Method Detail

      • dockerImageRepo

        public Optional<DockerImage> dockerImageRepo()
        Returns the docker image repository part of a docker image we want this cluster to run
      • dockerImage

        public Optional<String> dockerImage()
        Returns the docker image (repository + vespa version) we want this cluster to run
      • vespaVersion

        public com.yahoo.component.Version vespaVersion()
        Returns the version of Vespa that we want this cluster to run
      • group

        public Optional<ClusterSpec.Group> group()
        Returns the group within the cluster this specifies, or empty to specify the whole cluster
      • combinedId

        public Optional<ClusterSpec.Id> combinedId()
        Returns the ID of the container cluster that is combined with this. This is only present for combined clusters
      • isExclusive

        public boolean isExclusive()
        Returns whether the physical hosts running the nodes of this application can also run nodes of other applications. Using exclusive nodes for containers increases security and cost.
      • isStateful

        public boolean isStateful()
        Returns whether this cluster has state
      • exclusive

        public ClusterSpec exclusive​(boolean exclusive)
      • hashCode

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

        public boolean satisfies​(ClusterSpec other)
        Returns whether this satisfies other for allocation purposes. Only considers cluster ID and type, other fields are ignored.