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.config.SchemaInfoConfig.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:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final BindingPattern
static final BindingPattern
static final String
static final String
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
ConstructorsConstructorDescriptionApplicationContainerCluster
(AbstractConfigProducer<?> parent, String configSubId, String clusterId, DeployState deployState) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMbusServer
(com.yahoo.component.ComponentId chainId) protected void
doPrepare
(DeployState deployState) List<com.yahoo.config.model.api.ApplicationClusterEndpoint>
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) 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.protected boolean
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
addAllPlatformBundles, addApplicationStatusHandler, addCommonVespaBundles, addComponent, addContainer, addContainers, addDefaultHandlersExceptStatus, addDefaultHandlersWithVip, addDefaultRootHandler, addDefaultSearchAccessLog, addMetricStateHandler, addPlatformBundle, addSearchAndDocprocBundles, addSimpleComponent, addSimpleComponent, addVipHandler, concreteDocumentTypes, getAllComponents, getComponentsMap, getConfig, getConfig, getConfig, getConfig, getConfig, getConfig, getConfig, getConfig, getConfig, getConfig, getConfig, getConfig, getConfig, getConfig, getConfig, getConfig, getConfig, getConfig, getConfig, getContainers, getDeferChangesUntilRestart, getDocproc, getDocprocChains, getDocumentApi, getHandlers, getHostClusterId, getHttp, getJvmGCOptions, getName, getSearch, getSearchChains, getSecretStore, getZone, id, initialize, isHostedVespa, prepare, removeComponent, setDeferChangesUntilRestart, setDocproc, setDocumentApi, setEnvironmentVars, setHostClusterId, setHttp, setHttpServerEnabled, setJvmGCOptions, setProcessingChains, setRpcServerEnabled, setSearch, setSecretStore, setZone, toString, unnecessaryPlatformBundles
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.yahoo.config.model.api.ApplicationClusterInfo
getDeferChangesUntilRestart
-
Field Details
-
METRICS_V2_HANDLER_CLASS
-
METRICS_V2_HANDLER_BINDING_1
-
METRICS_V2_HANDLER_BINDING_2
-
PROMETHEUS_V1_HANDLER_CLASS
-
heapSizePercentageOfTotalNodeMemory
public static final int heapSizePercentageOfTotalNodeMemory- See Also:
-
heapSizePercentageOfTotalNodeMemoryWhenCombinedCluster
public static final int heapSizePercentageOfTotalNodeMemoryWhenCombinedCluster- See Also:
-
-
Constructor Details
-
ApplicationContainerCluster
public ApplicationContainerCluster(AbstractConfigProducer<?> parent, String configSubId, String clusterId, DeployState deployState)
-
-
Method Details
-
doPrepare
- Specified by:
doPrepare
in classContainerCluster<ApplicationContainer>
-
setModelEvaluation
-
setMemoryPercentage
-
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
-
getTlsClientAuthority
-
setMbusParams
-
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
- Specified by:
endpoints
in interfacecom.yahoo.config.model.api.ApplicationClusterInfo
-
name
- Specified by:
name
in interfacecom.yahoo.config.model.api.ApplicationClusterInfo
-