aboutsummaryrefslogtreecommitdiffstats
path: root/configserver/src/main/resources/configserver-app/services.xml
blob: eacb3d30568a485ee57b0626be5530e7183db610 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
<services version="1.0" xmlns:preprocess="properties">
  <container id="configserver" version="1.0">
    <config name="container.jdisc.config.health-monitor">
      <initialStatus>initializing</initialStatus>
    </config>

    <accesslog type="vespa" fileNamePattern="logs/vespa/configserver/access.log.%Y%m%d%H%M%S" compressOnRotation="true" symlinkName="access.log" />
    <accesslog type="json"  fileNamePattern="logs/vespa/configserver/access-json.log.%Y%m%d%H%M%S" symlinkName="access-json.log" compressOnRotation="true" />

    <component id="com.yahoo.vespa.config.server.ConfigServerBootstrap" bundle="configserver" />
    <component id="com.yahoo.vespa.config.server.monitoring.Metrics" bundle="configserver" />
    <component id="com.yahoo.vespa.zookeeper.ConfigServerZooKeeperServer" bundle="zookeeper-server" />
    <component id="com.yahoo.vespa.config.server.rpc.RpcServer" bundle="configserver" />
    <component id="com.yahoo.vespa.config.server.ConfigServerDB" bundle="configserver" />
    <component id="com.yahoo.vespa.config.server.filedistribution.FileDistributionFactory" bundle="configserver" />
    <component id="com.yahoo.vespa.config.server.modelfactory.ModelFactoryRegistry" bundle="configserver" />
    <component id="com.yahoo.vespa.config.server.SuperModelGenerationCounter" bundle="configserver" />
    <component id="com.yahoo.vespa.config.server.SuperModelManager" bundle="configserver" />
    <component id="com.yahoo.vespa.config.server.SuperModelRequestHandler" bundle="configserver" />
    <component id="com.yahoo.vespa.config.server.StaticConfigDefinitionRepo" bundle="configserver" />
    <component id="com.yahoo.vespa.config.server.provision.HostProvisionerProvider" bundle="configserver" />
    <component id="com.yahoo.vespa.config.server.deploy.InfraDeployerProvider" bundle="configserver" />
    <component id="com.yahoo.vespa.curator.Curator" bundle="configserver" />
    <component id="com.yahoo.vespa.config.server.tenant.TenantRepository" bundle="configserver" />
    <component id="com.yahoo.vespa.config.server.host.HostRegistry" bundle="configserver" />
    <component id="com.yahoo.vespa.config.server.ApplicationRepository" bundle="configserver" />
    <component id="com.yahoo.vespa.config.server.FallbackOnnxModelCostProvider" bundle="configserver" />
    <component id="com.yahoo.vespa.config.server.HealthCheckerProviderProvider" bundle="configserver" />
    <component id="com.yahoo.vespa.config.server.version.VersionState" bundle="configserver" />
    <component id="com.yahoo.config.provision.Zone" bundle="config-provisioning" />
    <component id="com.yahoo.vespa.config.server.application.ConfigConvergenceChecker" bundle="configserver" />
    <component id="com.yahoo.vespa.config.server.application.HttpProxy" bundle="configserver" />
    <component id="com.yahoo.vespa.config.server.filedistribution.FileServer" bundle="configserver" />
    <component id="com.yahoo.vespa.config.server.filedistribution.FileDirectory" bundle="configserver" />
    <component id="com.yahoo.vespa.config.server.rpc.RpcRequestHandlerProvider" bundle="configserver" />
    <component id="com.yahoo.vespa.config.server.rpc.security.DummyNodeIdentifierProvider" bundle="configserver" />
    <component id="com.yahoo.vespa.config.server.rpc.security.DummyNodeHostnameVerifierProvider" bundle="configserver" />
    <component id="com.yahoo.vespa.config.server.rpc.security.DefaultRpcAuthorizerProvider" bundle="configserver" />
    <component id="com.yahoo.vespa.config.server.http.TesterClient" bundle="configserver" />

    <components>
      <include dir="config-models" />
    </components>

    <preprocess:include file='config-models.xml' required='false' />
    <preprocess:include file='routing-status.xml' required='false' />
    <preprocess:include file='model-integration.xml' required='true' />

    <component id="com.yahoo.vespa.configserver.flags.ConfigServerFlagSource" bundle="configserver-flags"/>
    <component id="com.yahoo.vespa.configserver.flags.db.FlagsDbImpl" bundle="configserver-flags"/>

    <preprocess:include file='metrics-packets.xml' required='false' />
    <component id="com.yahoo.vespa.service.slobrok.SlobrokMonitorManagerImpl" bundle="service-monitor" />
    <component id="com.yahoo.vespa.service.health.HealthMonitorManager" bundle="service-monitor" />
    <component id="com.yahoo.vespa.service.manager.UnionMonitorManager" bundle="service-monitor" />
    <component id="com.yahoo.vespa.service.model.ServiceMonitorImpl" bundle="service-monitor" />
    <component id="com.yahoo.vespa.service.duper.DuperModelManager" bundle="service-monitor" />
    <component id="com.yahoo.vespa.orchestrator.status.ZkStatusService" bundle="orchestrator" />
    <component id="com.yahoo.vespa.orchestrator.controller.RetryingClusterControllerClientFactory" bundle="orchestrator" />
    <component id="com.yahoo.vespa.orchestrator.OrchestratorImpl" bundle="orchestrator">
      <preprocess:include file="orchestrator-config.xml" required="false" />
    </component>
    
    <handler id="com.yahoo.vespa.orchestrator.resources.ApplicationSuspensionRequestHandler" bundle="orchestrator">
      <binding>http://*/orchestrator/v1/suspensions/applications</binding>
      <binding>http://*/orchestrator/v1/suspensions/applications/*</binding>
    </handler>
    <handler id="com.yahoo.vespa.orchestrator.resources.HealthRequestHandler" bundle="orchestrator">
      <binding>http://*/orchestrator/v1/health</binding>
      <binding>http://*/orchestrator/v1/health/*</binding>
    </handler>
    <handler id="com.yahoo.vespa.orchestrator.resources.HostRequestHandler" bundle="orchestrator">
      <binding>http://*/orchestrator/v1/hosts</binding>
      <binding>http://*/orchestrator/v1/hosts/*</binding>
    </handler>
    <handler id="com.yahoo.vespa.orchestrator.resources.HostSuspensionRequestHandler" bundle="orchestrator">
      <binding>http://*/orchestrator/v1/suspensions/hosts</binding>
      <binding>http://*/orchestrator/v1/suspensions/hosts/*</binding>
    </handler>
    <handler id="com.yahoo.vespa.orchestrator.resources.InstanceRequestHandler" bundle="orchestrator">
      <binding>http://*/orchestrator/v1/instances</binding>
      <binding>http://*/orchestrator/v1/instances/*</binding>
    </handler>
    <handler id='com.yahoo.vespa.config.server.http.HttpGetConfigHandler' bundle='configserver'>
      <binding>http://*/config/v1/*/*</binding>
      <binding>http://*/config/v1/*</binding>
    </handler>
    <handler id='com.yahoo.vespa.config.server.http.HttpListConfigsHandler' bundle='configserver'>
      <binding>http://*/config/v1/</binding>
    </handler>
    <handler id='com.yahoo.vespa.config.server.http.HttpListNamedConfigsHandler' bundle='configserver'>
      <binding>http://*/config/v1/*/</binding>
      <binding>http://*/config/v1/*/*/</binding>
    </handler>
    <handler id='com.yahoo.vespa.config.server.http.status.StatusHandler' bundle='configserver'>
      <binding>http://*/status</binding>
    </handler>
    <handler id='com.yahoo.vespa.config.server.http.v2.TenantHandler' bundle='configserver'>
      <binding>http://*/application/v2/tenant*</binding>
    </handler>
    <handler id='com.yahoo.vespa.config.server.http.v2.SessionCreateHandler' bundle='configserver'>
      <binding>http://*/application/v2/tenant/*/session</binding>
    </handler>
    <handler id='com.yahoo.vespa.config.server.http.v2.SessionPrepareHandler' bundle='configserver'>
      <binding>http://*/application/v2/tenant/*/session/*/prepared</binding>
    </handler>
    <handler id='com.yahoo.vespa.config.server.http.v2.SessionActiveHandler' bundle='configserver'>
      <binding>http://*/application/v2/tenant/*/session/*/active</binding>
    </handler>
    <handler id='com.yahoo.vespa.config.server.http.v2.ApplicationApiHandler' bundle='configserver'>
      <binding>http://*/application/v2/tenant/*/prepareandactivate</binding>
    </handler>
    <handler id='com.yahoo.vespa.config.server.http.v2.SessionContentHandler' bundle='configserver'>
      <binding>http://*/application/v2/tenant/*/session/*/content/*</binding>
    </handler>
    <handler id='com.yahoo.vespa.config.server.http.v2.ListApplicationsHandler' bundle='configserver'>
      <binding>http://*/application/v2/tenant/*/application/</binding>
    </handler>
    <handler id='com.yahoo.vespa.config.server.http.v2.ApplicationHandler' bundle='configserver'>
      <binding>http://*/application/v2/tenant/*/application/*</binding>
    </handler>
    <handler id='com.yahoo.vespa.config.server.http.v2.HttpGetConfigHandler' bundle='configserver'>
      <binding>http://*/config/v2/tenant/*/application/*/*</binding>
      <binding>http://*/config/v2/tenant/*/application/*/*/*</binding>
      <binding>http://*/config/v2/tenant/*/application/*/environment/*/region/*/instance/*/*</binding>
      <binding>http://*/config/v2/tenant/*/application/*/environment/*/region/*/instance/*/*/*</binding>
    </handler>
    <handler id='com.yahoo.vespa.config.server.http.v2.HttpListConfigsHandler' bundle='configserver'>
      <binding>http://*/config/v2/tenant/*/application/*/</binding>
      <binding>http://*/config/v2/tenant/*/application/*/environment/*/region/*/instance/*/</binding>
    </handler>
    <handler id='com.yahoo.vespa.config.server.http.v2.HttpListNamedConfigsHandler' bundle='configserver'>
      <binding>http://*/config/v2/tenant/*/application/*/*/</binding>
      <binding>http://*/config/v2/tenant/*/application/*/*/*/</binding>
      <binding>http://*/config/v2/tenant/*/application/*/environment/*/region/*/instance/*/*/</binding>
      <binding>http://*/config/v2/tenant/*/application/*/environment/*/region/*/instance/*/*/*/</binding>
    </handler>
    <handler id='com.yahoo.vespa.config.server.http.v2.HostHandler' bundle='configserver'>
      <binding>http://*/application/v2/host/*</binding>
    </handler>

    <http>
      <server port="19071" id="configserver">
        <config name="jdisc.http.connector">
          <!-- Limit max request content size accepted -->
          <maxContentSize>2000000000</maxContentSize> <!-- ~2GB -->
        </config>
      </server>
      <preprocess:include file='http-server.xml' required='false' />
    </http>

    <preprocess:include file='athenz-identity-provider.xml' required='false' />

    <preprocess:include file='configserver-config.xml' required='false' />

    <preprocess:include file='configserver-components.xml' required='false' />

    <preprocess:include file='zookeeper-server-config.xml' required='false' />

  </container>
</services>