summaryrefslogtreecommitdiffstats
path: root/configserver/src/main/resources/configserver-app/services.xml
blob: e158ac28424c92d55506f0efce43aa34e5d3c029 (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
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
<services version="1.0" xmlns:preprocess="properties">
  <jdisc id="configserver" jetty="true" version="1.0">
    <config name="container.handler.threadpool">
      <maxthreads>100</maxthreads> <!-- Reduced thread count to minimize memory consumption -->
    </config>

    <accesslog type="vespa" fileNamePattern="logs/vespa/configserver/access.log.%Y%m%d%H%M%S" rotationScheme="date" symlinkName="access.log" />
    <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.ZooKeeperServer" bundle="zkfacade" />
    <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.session.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.session.SessionPreparer" 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.curator.Curator" bundle="configserver" />
    <component id="com.yahoo.vespa.config.server.InjectedGlobalComponentRegistry" bundle="configserver" />
    <component id="com.yahoo.vespa.config.server.tenant.Tenants" bundle="configserver" />
    <component id="com.yahoo.vespa.config.server.application.PermanentApplicationPackage" bundle="configserver" />
    <component id="com.yahoo.vespa.config.server.host.HostRegistries" bundle="configserver" />
    <component id="com.yahoo.vespa.config.server.ApplicationRepository" bundle="configserver" />
    <component id="com.yahoo.vespa.config.server.version.VersionState" bundle="configserver" />
    <component id="com.yahoo.vespa.config.server.zookeeper.ConfigCurator" bundle="configserver" />
    <component id="com.yahoo.vespa.config.server.host.ConfigRequestHostLivenessTracker" bundle="configserver" />
    <component id="com.yahoo.container.jdisc.metric.state.StateMetricConsumerFactory" bundle="container-disc" />
    <component id="com.yahoo.config.provision.Zone" bundle="config-provisioning" />
    <component id="com.yahoo.vespa.config.server.application.ApplicationConvergenceChecker" bundle="configserver" />
    <component id="com.yahoo.vespa.config.server.application.HttpProxy" bundle="configserver" />

    <component id="com.yahoo.vespa.serviceview.ConfigServerLocation" bundle="configserver" />

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

    <preprocess:include file='config-models.xml' required='false' />
    <preprocess:include file='node-repository.xml' required='false' />
    <preprocess:include file='hosted-vespa/routing-status.xml' required='false' />
    <component id="com.yahoo.vespa.service.monitor.internal.SlobrokMonitorManagerImpl" bundle="service-monitor" />
    <component id="com.yahoo.vespa.service.monitor.internal.ServiceMonitorImpl" bundle="service-monitor" />
    <component id="com.yahoo.vespa.orchestrator.ServiceMonitorInstanceLookupService" bundle="orchestrator" />
    <component id="com.yahoo.vespa.orchestrator.status.ZookeeperStatusService" bundle="orchestrator" />
    <component id="com.yahoo.vespa.orchestrator.controller.RetryingClusterControllerClientFactory" bundle="orchestrator" />
    <component id="com.yahoo.vespa.orchestrator.OrchestratorImpl" bundle="orchestrator" />
    
    <rest-api path="orchestrator" jersey2="true">      
      <components bundle="orchestrator" />      
    </rest-api>

    <rest-api path="serviceview" jersey2="true">
      <components bundle="configserver">
        <package>com.yahoo.vespa.serviceview</package>
      </components>
    </rest-api>

    <rest-api path="status" jersey2="true">
      <components bundle="configserver">
        <package>com.yahoo.vespa.config.server.restapi.impl</package>
        <package>com.yahoo.vespa.config.server.restapi.resources</package>
      </components>
    </rest-api>

    <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.v2.ListTenantsHandler' bundle='configserver'>
      <binding>http://*/application/v2/tenant/</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.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'>
      <!-- WARNING: THIS LIST *MUST* MATCH THE ONE IN ApplicationHandler::getBindingMatch -->
      <binding>http://*/application/v2/tenant/*/application/*/environment/*/region/*/instance/*/content/*</binding>
      <binding>http://*/application/v2/tenant/*/application/*/environment/*/region/*/instance/*/restart</binding>
      <binding>http://*/application/v2/tenant/*/application/*/environment/*/region/*/instance/*/log</binding>
      <binding>http://*/application/v2/tenant/*/application/*/environment/*/region/*/instance/*/converge</binding>
      <binding>http://*/application/v2/tenant/*/application/*/environment/*/region/*/instance/*/serviceconverge</binding>
      <binding>http://*/application/v2/tenant/*/application/*/environment/*/region/*/instance/*/serviceconverge/*</binding>
      <binding>http://*/application/v2/tenant/*/application/*/environment/*/region/*/instance/*/clustercontroller/*/status/*</binding>
      <binding>http://*/application/v2/tenant/*/application/*/environment/*/region/*/instance/*</binding>
      <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" />
      <preprocess:include file='hosted-vespa/http-server.xml' required='false' />
    </http>

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