source: gs3-extensions/solr/trunk/src/etc/jetty.xml@ 29138

Last change on this file since 29138 was 29138, checked in by ak19, 7 years ago

etc folder for solr4.7.2

File size: 8.1 KB
Line 
1<?xml version="1.0"?>
2<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
3
4<!-- =============================================================== -->
5<!-- Configure the Jetty Server -->
6<!-- -->
7<!-- Documentation of this file format can be found at: -->
8<!-- http://wiki.eclipse.org/Jetty/Reference/jetty.xml_syntax -->
9<!-- -->
10<!-- =============================================================== -->
11
12
13<Configure id="Server" class="org.eclipse.jetty.server.Server">
14
15 <!-- =========================================================== -->
16 <!-- Server Thread Pool -->
17 <!-- =========================================================== -->
18 <Set name="ThreadPool">
19 <!-- Default queued blocking threadpool -->
20 <New class="org.eclipse.jetty.util.thread.QueuedThreadPool">
21 <Set name="minThreads">10</Set>
22 <Set name="maxThreads">10000</Set>
23 <Set name="detailedDump">false</Set>
24 </New>
25 </Set>
26
27 <!-- =========================================================== -->
28 <!-- Set connectors -->
29 <!-- =========================================================== -->
30
31 <!--
32 <Call name="addConnector">
33 <Arg>
34 <New class="org.eclipse.jetty.server.nio.SelectChannelConnector">
35 <Set name="host"><SystemProperty name="jetty.host" /></Set>
36 <Set name="port"><SystemProperty name="jetty.port" default="8983"/></Set>
37 <Set name="maxIdleTime">50000</Set>
38 <Set name="Acceptors">2</Set>
39 <Set name="statsOn">false</Set>
40 <Set name="confidentialPort">8443</Set>
41 <Set name="lowResourcesConnections">5000</Set>
42 <Set name="lowResourcesMaxIdleTime">5000</Set>
43 </New>
44 </Arg>
45 </Call>
46 -->
47
48 <!-- This connector is currently being used for Solr because it
49 showed better performance than nio.SelectChannelConnector
50 for typical Solr requests. -->
51 <Call name="addConnector">
52 <Arg>
53 <New class="org.eclipse.jetty.server.bio.SocketConnector">
54 <Set name="host"><SystemProperty name="jetty.host" /></Set>
55 <Set name="port"><SystemProperty name="jetty.port" default="8983"/></Set>
56 <Set name="maxIdleTime">50000</Set>
57 <Set name="lowResourceMaxIdleTime">1500</Set>
58 <Set name="statsOn">false</Set>
59 </New>
60 </Arg>
61 </Call>
62
63 <!-- if the connector below is uncommented, then jetty will also accept SSL
64 connections on port 8984, using a self signed certificate and can
65 optionally require the client to authenticate with a certificate.
66 (which can be the same as the server certificate_
67
68 # Run solr example with SSL on port 8984
69 java -jar start.jar
70 #
71 # Run post.jar so that it trusts the server cert...
72 java -Djavax.net.ssl.trustStore=../etc/solrtest.keystore -Durl=https://localhost:8984/solr/update -jar post.jar *.xml
73
74 # Run solr example with SSL requiring client certs on port 8984
75 java -Djetty.ssl.clientAuth=true -jar start.jar
76 #
77 # Run post.jar so that it trusts the server cert,
78 # and authenticates with a client cert
79 java -Djavax.net.ssl.keyStorePassword=secret -Djavax.net.ssl.keyStore=../etc/solrtest.keystore -Djavax.net.ssl.trustStore=../etc/solrtest.keystore -Durl=https://localhost:8984/solr/update -jar post.jar *.xml
80
81 -->
82 <!--
83 <Call name="addConnector">
84 <Arg>
85 <New class="org.eclipse.jetty.server.ssl.SslSelectChannelConnector">
86 <Arg>
87 <New class="org.eclipse.jetty.http.ssl.SslContextFactory">
88 <Set name="keyStore"><SystemProperty name="jetty.home" default="."/>/etc/solrtest.keystore</Set>
89 <Set name="keyStorePassword">secret</Set>
90 <Set name="needClientAuth"><SystemProperty name="jetty.ssl.clientAuth" default="false"/></Set>
91 </New>
92 </Arg>
93 <Set name="port"><SystemProperty name="jetty.ssl.port" default="8984"/></Set>
94 <Set name="maxIdleTime">30000</Set>
95 </New>
96 </Arg>
97 </Call>
98 -->
99
100 <!-- =========================================================== -->
101 <!-- Set handler Collection Structure -->
102 <!-- =========================================================== -->
103 <Set name="handler">
104 <New id="Handlers" class="org.eclipse.jetty.server.handler.HandlerCollection">
105 <Set name="handlers">
106 <Array type="org.eclipse.jetty.server.Handler">
107 <Item>
108 <New id="Contexts" class="org.eclipse.jetty.server.handler.ContextHandlerCollection"/>
109 </Item>
110 <Item>
111 <New id="DefaultHandler" class="org.eclipse.jetty.server.handler.DefaultHandler"/>
112 </Item>
113 <Item>
114 <New id="RequestLog" class="org.eclipse.jetty.server.handler.RequestLogHandler"/>
115 </Item>
116 </Array>
117 </Set>
118 </New>
119 </Set>
120
121 <!-- =========================================================== -->
122 <!-- Configure Request Log -->
123 <!-- =========================================================== -->
124 <!--
125 <Ref id="Handlers">
126 <Call name="addHandler">
127 <Arg>
128 <New id="RequestLog" class="org.eclipse.jetty.server.handler.RequestLogHandler">
129 <Set name="requestLog">
130 <New id="RequestLogImpl" class="org.eclipse.jetty.server.NCSARequestLog">
131 <Set name="filename">
132 logs/request.yyyy_mm_dd.log
133 </Set>
134 <Set name="filenameDateFormat">yyyy_MM_dd</Set>
135 <Set name="retainDays">90</Set>
136 <Set name="append">true</Set>
137 <Set name="extended">false</Set>
138 <Set name="logCookies">false</Set>
139 <Set name="LogTimeZone">UTC</Set>
140 </New>
141 </Set>
142 </New>
143 </Arg>
144 </Call>
145 </Ref>
146 -->
147
148 <!-- =========================================================== -->
149 <!-- extra options -->
150 <!-- =========================================================== -->
151 <Set name="stopAtShutdown">true</Set>
152 <Set name="sendServerVersion">false</Set>
153 <Set name="sendDateHeader">false</Set>
154 <Set name="gracefulShutdown">1000</Set>
155 <Set name="dumpAfterStart">false</Set>
156 <Set name="dumpBeforeStop">false</Set>
157
158
159
160
161 <Call name="addBean">
162 <Arg>
163 <New id="DeploymentManager" class="org.eclipse.jetty.deploy.DeploymentManager">
164 <Set name="contexts">
165 <Ref id="Contexts" />
166 </Set>
167 <Call name="setContextAttribute">
168 <Arg>org.eclipse.jetty.server.webapp.ContainerIncludeJarPattern</Arg>
169 <Arg>.*/servlet-api-[^/]*\.jar$</Arg>
170 </Call>
171
172
173 <!-- Add a customize step to the deployment lifecycle -->
174 <!-- uncomment and replace DebugBinding with your extended AppLifeCycle.Binding class
175 <Call name="insertLifeCycleNode">
176 <Arg>deployed</Arg>
177 <Arg>starting</Arg>
178 <Arg>customise</Arg>
179 </Call>
180 <Call name="addLifeCycleBinding">
181 <Arg>
182 <New class="org.eclipse.jetty.deploy.bindings.DebugBinding">
183 <Arg>customise</Arg>
184 </New>
185 </Arg>
186 </Call>
187 -->
188
189 </New>
190 </Arg>
191 </Call>
192
193 <Ref id="DeploymentManager">
194 <Call name="addAppProvider">
195 <Arg>
196 <New class="org.eclipse.jetty.deploy.providers.ContextProvider">
197 <Set name="monitoredDirName"><SystemProperty name="jetty.home" default="."/>/contexts</Set>
198 <Set name="scanInterval">0</Set>
199 </New>
200 </Arg>
201 </Call>
202 </Ref>
203
204</Configure>
Note: See TracBrowser for help on using the repository browser.