Package com.yahoo.vespa.model.container
Class ApplicationContainerCluster
- java.lang.Object
-
- com.yahoo.config.model.producer.AbstractConfigProducer<AbstractConfigProducer<?>>
-
- com.yahoo.vespa.model.container.ContainerCluster<ApplicationContainer>
-
- com.yahoo.vespa.model.container.ApplicationContainerCluster
-
- All Implemented Interfaces:
com.yahoo.cloud.config.ClusterInfoConfig.Producer
,com.yahoo.cloud.config.ConfigserverConfig.Producer
,com.yahoo.cloud.config.CuratorConfig.Producer
,com.yahoo.cloud.config.ZookeeperServerConfig.Producer
,com.yahoo.config.ConfigInstance.Producer
,com.yahoo.config.docproc.DocprocConfig.Producer
,com.yahoo.config.docproc.SchemamappingConfig.Producer
,com.yahoo.config.model.api.ApplicationClusterInfo
,com.yahoo.container.ComponentsConfig.Producer
,com.yahoo.container.core.ApplicationMetadataConfig.Producer
,com.yahoo.container.core.document.ContainerDocumentConfig.Producer
,com.yahoo.container.di.config.ApplicationBundlesConfig.Producer
,com.yahoo.container.di.config.PlatformBundlesConfig.Producer
,com.yahoo.container.handler.metrics.MetricsProxyApiConfig.Producer
,com.yahoo.container.jdisc.config.HealthMonitorConfig.Producer
,com.yahoo.container.jdisc.ContainerMbusConfig.Producer
,com.yahoo.container.jdisc.JdiscBindingsConfig.Producer
,com.yahoo.container.QrSearchersConfig.Producer
,com.yahoo.document.config.DocumentmanagerConfig.Producer
,com.yahoo.prelude.semantics.SemanticRulesConfig.Producer
,com.yahoo.search.config.IndexInfoConfig.Producer
,com.yahoo.search.config.QrStartConfig.Producer
,com.yahoo.search.pagetemplates.PageTemplatesConfig.Producer
,com.yahoo.search.query.profile.config.QueryProfilesConfig.Producer
,com.yahoo.vespa.config.search.core.OnnxModelsConfig.Producer
,com.yahoo.vespa.config.search.core.RankingConstantsConfig.Producer
,com.yahoo.vespa.config.search.core.RankingExpressionsConfig.Producer
,com.yahoo.vespa.config.search.RankProfilesConfig.Producer
,com.yahoo.vespa.configdefinition.IlscriptsConfig.Producer
,ConfigProducer
,Serializable
public final class ApplicationContainerCluster extends ContainerCluster<ApplicationContainer> implements com.yahoo.container.di.config.ApplicationBundlesConfig.Producer, com.yahoo.search.config.QrStartConfig.Producer, com.yahoo.vespa.config.search.RankProfilesConfig.Producer, com.yahoo.vespa.config.search.core.RankingConstantsConfig.Producer, com.yahoo.vespa.config.search.core.OnnxModelsConfig.Producer, com.yahoo.vespa.config.search.core.RankingExpressionsConfig.Producer, com.yahoo.container.jdisc.ContainerMbusConfig.Producer, com.yahoo.container.handler.metrics.MetricsProxyApiConfig.Producer, com.yahoo.cloud.config.ZookeeperServerConfig.Producer, com.yahoo.config.model.api.ApplicationClusterInfo
A container cluster that is typically set up from the user application.- Author:
- gjoranv
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ApplicationContainerCluster.MbusParams
-
Field Summary
Fields Modifier and Type Field Description static int
heapSizePercentageOfTotalNodeMemory
static int
heapSizePercentageOfTotalNodeMemoryWhenCombinedCluster
static BindingPattern
METRICS_V2_HANDLER_BINDING_1
static BindingPattern
METRICS_V2_HANDLER_BINDING_2
static String
METRICS_V2_HANDLER_CLASS
static String
PROMETHEUS_V1_HANDLER_CLASS
-
Fields inherited from class com.yahoo.vespa.model.container.ContainerCluster
APPLICATION_STATUS_HANDLER_CLASS, BINDINGS_OVERVIEW_HANDLER_CLASS, containers, G1GC, LOG_HANDLER_CLASS, PARALLEL_GC, RESERVED_URI_PREFIX, ROOT_HANDLER_BINDING, ROOT_HANDLER_PATH, STATE_HANDLER_BINDING_1, STATE_HANDLER_BINDING_2, STATE_HANDLER_CLASS, VIP_HANDLER_BINDING
-
Fields inherited from class com.yahoo.config.model.producer.AbstractConfigProducer
log
-
-
Constructor Summary
Constructors Constructor Description ApplicationContainerCluster(AbstractConfigProducer<?> parent, String configSubId, String clusterId, DeployState deployState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMbusServer(com.yahoo.component.ComponentId chainId)
protected void
doPrepare(DeployState deployState)
List<com.yahoo.config.model.api.ApplicationClusterEndpoint>
endpoints()
void
getConfig(com.yahoo.cloud.config.ZookeeperServerConfig.Builder builder)
void
getConfig(com.yahoo.container.di.config.ApplicationBundlesConfig.Builder builder)
void
getConfig(com.yahoo.container.handler.metrics.MetricsProxyApiConfig.Builder builder)
void
getConfig(com.yahoo.container.jdisc.ContainerMbusConfig.Builder builder)
void
getConfig(com.yahoo.search.config.QrStartConfig.Builder builder)
void
getConfig(com.yahoo.vespa.config.search.core.OnnxModelsConfig.Builder builder)
void
getConfig(com.yahoo.vespa.config.search.core.RankingConstantsConfig.Builder builder)
void
getConfig(com.yahoo.vespa.config.search.core.RankingExpressionsConfig.Builder builder)
void
getConfig(com.yahoo.vespa.config.search.RankProfilesConfig.Builder builder)
Optional<Integer>
getMemoryPercentage()
Returns the percentage of host physical memory this application has specified for nodes in this cluster, or empty if this is not specified by the application.Optional<String>
getTlsClientAuthority()
protected boolean
messageBusEnabled()
String
name()
void
setMbusParams(ApplicationContainerCluster.MbusParams mbusParams)
void
setMemoryPercentage(Integer memoryPercentage)
void
setMessageBusEnabled(boolean messageBusEnabled)
void
setModelEvaluation(ContainerModelEvaluation modelEvaluation)
-
Methods inherited from class com.yahoo.vespa.model.container.ContainerCluster
addApplicationStatusHandler, addCommonVespaBundles, addComponent, addContainer, addContainers, addDefaultHandlersExceptStatus, addDefaultHandlersWithVip, addDefaultRootHandler, addDefaultSearchAccessLog, addMetricStateHandler, addPlatformBundle, addSimpleComponent, addSimpleComponent, addVipHandler, concreteDocumentTypes, endpointAliases, getAllComponents, getComponentsMap, getConfig, getConfig, getConfig, getConfig, getConfig, getConfig, getConfig, getConfig, getConfig, getConfig, getConfig, getConfig, getConfig, getConfig, getConfig, getConfig, getConfig, getConfig, getContainers, getDeferChangesUntilRestart, getDocproc, getDocprocChains, getDocumentApi, getEnvironmentVars, getHandlers, getHostClusterId, getHttp, getJvmGCOptions, getName, getSearch, getSearchChains, getSecretStore, getZone, id, initialize, isHostedVespa, prepare, removeComponent, serviceAliases, setDeferChangesUntilRestart, setDocproc, setDocumentApi, setEnvironmentVars, setHostClusterId, setHttp, setHttpServerEnabled, setJvmGCOptions, setProcessingChains, setRpcServerEnabled, setSearch, setSecretStore, setZone, toString
-
Methods inherited from class com.yahoo.config.model.producer.AbstractConfigProducer
addChild, addConfigId, addDescendantService, addUserConfig, cascadeConfig, dump, getChildren, getChildrenByTypeRecursive, getConfigClassLoader, getConfigId, getDescendantServices, getMonitoringService, getParent, getRoot, getSubId, getUserConfigs, hostSystem, mergeUserConfigs, remove, removeChild, setParent, setUserConfigs, stateIsHosted, validate
-
-
-
-
Field Detail
-
METRICS_V2_HANDLER_CLASS
public static final String METRICS_V2_HANDLER_CLASS
-
METRICS_V2_HANDLER_BINDING_1
public static final BindingPattern METRICS_V2_HANDLER_BINDING_1
-
METRICS_V2_HANDLER_BINDING_2
public static final BindingPattern METRICS_V2_HANDLER_BINDING_2
-
PROMETHEUS_V1_HANDLER_CLASS
public static final String PROMETHEUS_V1_HANDLER_CLASS
-
heapSizePercentageOfTotalNodeMemory
public static final int heapSizePercentageOfTotalNodeMemory
- See Also:
- Constant Field Values
-
heapSizePercentageOfTotalNodeMemoryWhenCombinedCluster
public static final int heapSizePercentageOfTotalNodeMemoryWhenCombinedCluster
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ApplicationContainerCluster
public ApplicationContainerCluster(AbstractConfigProducer<?> parent, String configSubId, String clusterId, DeployState deployState)
-
-
Method Detail
-
doPrepare
protected void doPrepare(DeployState deployState)
- Specified by:
doPrepare
in classContainerCluster<ApplicationContainer>
-
setModelEvaluation
public void setModelEvaluation(ContainerModelEvaluation modelEvaluation)
-
setMemoryPercentage
public void setMemoryPercentage(Integer memoryPercentage)
-
getMemoryPercentage
public Optional<Integer> getMemoryPercentage()
Description copied from class:ContainerCluster
Returns the percentage of host physical memory this application has specified for nodes in this cluster, or empty if this is not specified by the application.- Overrides:
getMemoryPercentage
in classContainerCluster<ApplicationContainer>
-
getConfig
public void getConfig(com.yahoo.container.di.config.ApplicationBundlesConfig.Builder builder)
- Specified by:
getConfig
in interfacecom.yahoo.container.di.config.ApplicationBundlesConfig.Producer
-
getConfig
public void getConfig(com.yahoo.vespa.config.search.RankProfilesConfig.Builder builder)
- Specified by:
getConfig
in interfacecom.yahoo.vespa.config.search.RankProfilesConfig.Producer
-
getConfig
public void getConfig(com.yahoo.vespa.config.search.core.RankingConstantsConfig.Builder builder)
- Specified by:
getConfig
in interfacecom.yahoo.vespa.config.search.core.RankingConstantsConfig.Producer
-
getConfig
public void getConfig(com.yahoo.vespa.config.search.core.OnnxModelsConfig.Builder builder)
- Specified by:
getConfig
in interfacecom.yahoo.vespa.config.search.core.OnnxModelsConfig.Producer
-
getConfig
public void getConfig(com.yahoo.vespa.config.search.core.RankingExpressionsConfig.Builder builder)
- Specified by:
getConfig
in interfacecom.yahoo.vespa.config.search.core.RankingExpressionsConfig.Producer
-
getConfig
public void getConfig(com.yahoo.container.jdisc.ContainerMbusConfig.Builder builder)
- Specified by:
getConfig
in interfacecom.yahoo.container.jdisc.ContainerMbusConfig.Producer
-
getConfig
public void getConfig(com.yahoo.container.handler.metrics.MetricsProxyApiConfig.Builder builder)
- Specified by:
getConfig
in interfacecom.yahoo.container.handler.metrics.MetricsProxyApiConfig.Producer
-
getConfig
public void getConfig(com.yahoo.search.config.QrStartConfig.Builder builder)
- Specified by:
getConfig
in interfacecom.yahoo.search.config.QrStartConfig.Producer
- Overrides:
getConfig
in classContainerCluster<ApplicationContainer>
-
getConfig
public void getConfig(com.yahoo.cloud.config.ZookeeperServerConfig.Builder builder)
- Specified by:
getConfig
in interfacecom.yahoo.cloud.config.ZookeeperServerConfig.Producer
-
setMbusParams
public void setMbusParams(ApplicationContainerCluster.MbusParams mbusParams)
-
setMessageBusEnabled
public void setMessageBusEnabled(boolean messageBusEnabled)
-
messageBusEnabled
protected boolean messageBusEnabled()
- Specified by:
messageBusEnabled
in classContainerCluster<ApplicationContainer>
-
addMbusServer
public void addMbusServer(com.yahoo.component.ComponentId chainId)
-
endpoints
public List<com.yahoo.config.model.api.ApplicationClusterEndpoint> endpoints()
- Specified by:
endpoints
in interfacecom.yahoo.config.model.api.ApplicationClusterInfo
-
name
public String name()
- Specified by:
name
in interfacecom.yahoo.config.model.api.ApplicationClusterInfo
-
-