Class ContentCluster
java.lang.Object
com.yahoo.config.model.producer.AnyConfigProducer
com.yahoo.config.model.producer.TreeConfigProducer<AnyConfigProducer>
com.yahoo.vespa.model.content.cluster.ContentCluster
- All Implemented Interfaces:
com.yahoo.config.ConfigInstance.Producer,com.yahoo.metrics.MetricsmanagerConfig.Producer,com.yahoo.vespa.config.content.core.BucketspacesConfig.Producer,com.yahoo.vespa.config.content.core.StorDistributormanagerConfig.Producer,com.yahoo.vespa.config.content.DistributionConfig.Producer,com.yahoo.vespa.config.content.FleetcontrollerConfig.Producer,com.yahoo.vespa.config.content.MessagetyperouteselectorpolicyConfig.Producer,com.yahoo.vespa.config.content.StorDistributionConfig.Producer,ConfigProducer,Serializable
public class ContentCluster
extends TreeConfigProducer<AnyConfigProducer>
implements com.yahoo.vespa.config.content.DistributionConfig.Producer, com.yahoo.vespa.config.content.StorDistributionConfig.Producer, com.yahoo.vespa.config.content.core.StorDistributormanagerConfig.Producer, com.yahoo.vespa.config.content.FleetcontrollerConfig.Producer, com.yahoo.metrics.MetricsmanagerConfig.Producer, com.yahoo.vespa.config.content.MessagetyperouteselectorpolicyConfig.Producer, com.yahoo.vespa.config.content.core.BucketspacesConfig.Producer
A content cluster.
- Author:
- mostly somebody unknown, bratseth
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enum -
Field Summary
FieldsFields inherited from class com.yahoo.config.model.producer.AnyConfigProducer
log -
Method Summary
Modifier and TypeMethodDescriptioncom.yahoo.vespa.config.content.AllClustersBucketSpacesConfig.Cluster.BuilderintReturns the distribution bits this cluster should use.static StringgetClusterId(ModelElement clusterElem) voidgetConfig(com.yahoo.metrics.MetricsmanagerConfig.Builder builder) voidgetConfig(com.yahoo.vespa.config.content.core.BucketspacesConfig.Builder builder) voidgetConfig(com.yahoo.vespa.config.content.core.StorDistributormanagerConfig.Builder builder) voidgetConfig(com.yahoo.vespa.config.content.DistributionConfig.Builder builder) voidgetConfig(com.yahoo.vespa.config.content.FleetcontrollerConfig.Builder builder) voidgetConfig(com.yahoo.vespa.config.content.MessagetyperouteselectorpolicyConfig.Builder builder) voidgetConfig(com.yahoo.vespa.config.content.StorDistributionConfig.Builder builder) Returns a list of th document types declared at the cluster level.static com.yahoo.metrics.MetricsmanagerConfig.Consumer.BuildergetMetricBuilder(String name, com.yahoo.metrics.MetricsmanagerConfig.Builder builder) getName()final ContentSearchClusterintcom.yahoo.config.provision.ClusterSpec.Idid()booleanisGloballyDistributed(NewDocumentType docType) booleanisHosted()setRedundancy(Redundancy redundancy) toString()voidvalidate()check constraints depending on the state of the vespamodel graph.Methods inherited from class com.yahoo.config.model.producer.TreeConfigProducer
addChild, addDescendantService, getChildren, getChildrenByTypeRecursive, getConfigClassLoader, getDescendantServices, removeChildMethods inherited from class com.yahoo.config.model.producer.AnyConfigProducer
addConfigId, addUserConfig, cascadeConfig, currentConfigId, findInheritedClassLoader, getConfigId, getMonitoringService, getParent, getRoot, getSubId, getUserConfigs, hostSystem, mergeUserConfigs, remove, setParent, setUserConfigs, stateIsHostedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.yahoo.vespa.model.ConfigProducer
dump
-
Field Details
-
METRIC_INDEX_MAP
-
-
Method Details
-
id
public com.yahoo.config.provision.ClusterSpec.Id id() -
getDistributionMode
-
getClusterId
-
getName
-
getRoutingSelector
-
getDistributorNodes
-
getStorageCluster
-
getClusterControllerConfig
-
getPersistence
-
getDocumentDefinitions
Returns a list of th document types declared at the cluster level. -
isGloballyDistributed
-
getSearch
-
getRedundancy
-
groupSize
public int groupSize() -
setRedundancy
-
getConfig
public void getConfig(com.yahoo.vespa.config.content.MessagetyperouteselectorpolicyConfig.Builder builder) - Specified by:
getConfigin interfacecom.yahoo.vespa.config.content.MessagetyperouteselectorpolicyConfig.Producer
-
getRootGroup
-
getConfig
public void getConfig(com.yahoo.vespa.config.content.StorDistributionConfig.Builder builder) - Specified by:
getConfigin interfacecom.yahoo.vespa.config.content.StorDistributionConfig.Producer
-
getConfig
public void getConfig(com.yahoo.vespa.config.content.FleetcontrollerConfig.Builder builder) - Specified by:
getConfigin interfacecom.yahoo.vespa.config.content.FleetcontrollerConfig.Producer
-
getConfig
public void getConfig(com.yahoo.vespa.config.content.core.StorDistributormanagerConfig.Builder builder) - Specified by:
getConfigin interfacecom.yahoo.vespa.config.content.core.StorDistributormanagerConfig.Producer
-
distributionBits
public int distributionBits()Returns the distribution bits this cluster should use. On Hosted Vespa this is hardcoded and not computed from the nodes because reducing the number of nodes is a common operation, while reducing the number of distribution bits can lead to consistency problems. This hardcoded value should work fine from 1-200 nodes. Those who have more will need to set this value in config and not remove it again if they reduce the node count. -
isHosted
public boolean isHosted() -
validate
Description copied from interface:ConfigProducercheck constraints depending on the state of the vespamodel graph. When overriding, you must invoke super.- Specified by:
validatein interfaceConfigProducer- Overrides:
validatein classTreeConfigProducer<AnyConfigProducer>- Throws:
Exception
-
getMetricBuilder
public static com.yahoo.metrics.MetricsmanagerConfig.Consumer.Builder getMetricBuilder(String name, com.yahoo.metrics.MetricsmanagerConfig.Builder builder) -
getConfig
public void getConfig(com.yahoo.metrics.MetricsmanagerConfig.Builder builder) - Specified by:
getConfigin interfacecom.yahoo.metrics.MetricsmanagerConfig.Producer
-
clusterBucketSpaceConfigBuilder
public com.yahoo.vespa.config.content.AllClustersBucketSpacesConfig.Cluster.Builder clusterBucketSpaceConfigBuilder() -
getConfig
public void getConfig(com.yahoo.vespa.config.content.core.BucketspacesConfig.Builder builder) - Specified by:
getConfigin interfacecom.yahoo.vespa.config.content.core.BucketspacesConfig.Producer
-
getConfig
public void getConfig(com.yahoo.vespa.config.content.DistributionConfig.Builder builder) - Specified by:
getConfigin interfacecom.yahoo.vespa.config.content.DistributionConfig.Producer
-
toString
-