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.RoutingProviderConfig.Producer
,com.yahoo.config.ConfigInstance.Producer
,com.yahoo.config.docproc.DocprocConfig.Producer
,com.yahoo.config.docproc.SchemamappingConfig.Producer
,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.handler.ThreadpoolConfig.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.jdisc.http.ServletPathsConfig.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.RankingConstantsConfig.Producer
,com.yahoo.vespa.config.search.RankProfilesConfig.Producer
,com.yahoo.vespa.configdefinition.IlscriptsConfig.Producer
,ConfigProducer
,java.io.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.jdisc.http.ServletPathsConfig.Producer, com.yahoo.container.jdisc.ContainerMbusConfig.Producer, com.yahoo.container.handler.metrics.MetricsProxyApiConfig.Producer
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 java.lang.String
METRICS_V2_HANDLER_CLASS
static java.lang.String
PROMETHEUS_V1_HANDLER_CLASS
-
Fields inherited from class com.yahoo.vespa.model.container.ContainerCluster
APPLICATION_STATUS_HANDLER_CLASS, BINDINGS_OVERVIEW_HANDLER_CLASS, CMS, containers, DEFAULT_LINGUISTICS_PROVIDER, G1GC, LOG_HANDLER_CLASS, 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, java.lang.String subId, java.lang.String name, DeployState deployState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMbusServer(com.yahoo.component.ComponentId chainId)
void
addRestApi(RestApi restApi)
void
addServlet(Servlet servlet)
protected void
doPrepare(DeployState deployState)
java.util.Collection<Servlet>
getAllServlets()
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.handler.ThreadpoolConfig.Builder builder)
void
getConfig(com.yahoo.container.jdisc.ContainerMbusConfig.Builder builder)
void
getConfig(com.yahoo.jdisc.http.ServletPathsConfig.Builder builder)
void
getConfig(com.yahoo.search.config.QrStartConfig.Builder builder)
void
getConfig(com.yahoo.vespa.config.search.core.RankingConstantsConfig.Builder builder)
void
getConfig(com.yahoo.vespa.config.search.RankProfilesConfig.Builder builder)
java.util.Optional<java.lang.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.java.util.Map<com.yahoo.component.ComponentId,RestApi>
getRestApiMap()
java.util.Map<com.yahoo.component.ComponentId,Servlet>
getServletMap()
java.util.Optional<java.lang.String>
getTlsClientAuthority()
protected boolean
messageBusEnabled()
void
setMbusParams(ApplicationContainerCluster.MbusParams mbusParams)
void
setMemoryPercentage(java.lang.Integer memoryPercentage)
void
setMessageBusEnabled(boolean messageBusEnabled)
void
setModelEvaluation(ContainerModelEvaluation modelEvaluation)
-
Methods inherited from class com.yahoo.vespa.model.container.ContainerCluster
addApplicationStatusHandler, 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, getDocproc, getDocprocChains, getDocumentApi, getHandlers, getHostClusterId, getHttp, getJvmGCOptions, getName, getQueueSizeFactor, getSearch, getSearchChains, getSecretStore, getThreadPoolSizeFactor, getZone, initialize, isHostedVespa, prepare, removeComponent, serviceAliases, 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, removeChild, setParent, setUserConfigs, stateIsHosted, validate
-
-
-
-
Field Detail
-
METRICS_V2_HANDLER_CLASS
public static final java.lang.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 java.lang.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, java.lang.String subId, java.lang.String name, DeployState deployState)
-
-
Method Detail
-
doPrepare
protected void doPrepare(DeployState deployState)
- Specified by:
doPrepare
in classContainerCluster<ApplicationContainer>
-
setModelEvaluation
public void setModelEvaluation(ContainerModelEvaluation modelEvaluation)
-
addRestApi
public final void addRestApi(RestApi restApi)
-
getRestApiMap
public java.util.Map<com.yahoo.component.ComponentId,RestApi> getRestApiMap()
-
getServletMap
public java.util.Map<com.yahoo.component.ComponentId,Servlet> getServletMap()
-
addServlet
public final void addServlet(Servlet servlet)
-
getAllServlets
public java.util.Collection<Servlet> getAllServlets()
-
setMemoryPercentage
public void setMemoryPercentage(java.lang.Integer memoryPercentage)
-
getMemoryPercentage
public java.util.Optional<java.lang.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.
-
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.jdisc.http.ServletPathsConfig.Builder builder)
- Specified by:
getConfig
in interfacecom.yahoo.jdisc.http.ServletPathsConfig.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.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>
-
getTlsClientAuthority
public java.util.Optional<java.lang.String> getTlsClientAuthority()
-
setMbusParams
public void setMbusParams(ApplicationContainerCluster.MbusParams mbusParams)
-
setMessageBusEnabled
public final void setMessageBusEnabled(boolean messageBusEnabled)
-
messageBusEnabled
protected boolean messageBusEnabled()
- Specified by:
messageBusEnabled
in classContainerCluster<ApplicationContainer>
-
addMbusServer
public void addMbusServer(com.yahoo.component.ComponentId chainId)
-
getConfig
public void getConfig(com.yahoo.container.handler.ThreadpoolConfig.Builder builder)
- Specified by:
getConfig
in interfacecom.yahoo.container.handler.ThreadpoolConfig.Producer
-
-