Package com.yahoo.config.provision
Class ClusterSpec
java.lang.Object
com.yahoo.config.provision.ClusterSpec
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final classIdentifier of a group within a clusterstatic final classstatic enumA cluster type -
Method Summary
Modifier and TypeMethodDescriptionReturns the ID of the container cluster that is combined with this.Returns the docker image (repository + vespa version) we want this cluster to runReturns the docker image repository part of a docker image we want this cluster to runbooleangroup()Returns the group within the cluster this specifies, or empty to specify the whole clusterinthashCode()id()Returns the cluster idbooleanReturns whether the physical hosts running the nodes of this application can also run nodes of other applications.booleanReturns whether this cluster has statestatic ClusterSpec.Builderrequest(ClusterSpec.Type type, ClusterSpec.Id id) Creates a ClusterSpec when requesting a clusterbooleansatisfies(ClusterSpec other) Returns whether this satisfies other for allocation purposes.static ClusterSpec.Builderspecification(ClusterSpec.Type type, ClusterSpec.Id id) Creates a ClusterSpec for an existing cluster, group id and Vespa version needs to be settoString()type()Returns the cluster typecom.yahoo.component.VersionReturns the version of Vespa that we want this cluster to runwith(Optional<ClusterSpec.Group> newGroup) withExclusivity(boolean exclusive) Returns any additional zone endpoint settings for application container clusters.
-
Method Details
-
type
Returns the cluster type -
id
Returns the cluster id -
dockerImageRepo
Returns the docker image repository part of a docker image we want this cluster to run -
dockerImage
Returns the docker image (repository + vespa version) we want this cluster to run -
zoneEndpoint
Returns any additional zone endpoint settings for application container clusters. -
vespaVersion
public com.yahoo.component.Version vespaVersion()Returns the version of Vespa that we want this cluster to run -
group
Returns the group within the cluster this specifies, or empty to specify the whole cluster -
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 -
with
-
withExclusivity
-
request
Creates a ClusterSpec when requesting a cluster -
specification
Creates a ClusterSpec for an existing cluster, group id and Vespa version needs to be set -
toString
-
equals
-
hashCode
public int hashCode() -
satisfies
Returns whether this satisfies other for allocation purposes. Only considers cluster ID and type, other fields are ignored.
-