conf_server.xml.cluster

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

다음 판
이전 판
conf_server.xml.cluster [2015/08/03 06:51] – 만듦 koovconf_server.xml.cluster [2024/01/12 02:09] (현재) koov
줄 1: 줄 1:
 + --- //[[koovis@gmail.com|이강우]] 2015/08/03 16:13//
 ====== server.xml ====== ====== server.xml ======
  
-<code vim> +''Apache Tomcat 8.5.x'' 기준 
-<?xml version='1.0encoding='utf-8'?>+ 
 +<WRAP prewrap> 
 +<code vim server.xml.cluster
 +<?xml version="1.0encoding="UTF-8"?>
 <!-- <!--
   Licensed to the Apache Software Foundation (ASF) under one or more   Licensed to the Apache Software Foundation (ASF) under one or more
줄 30: 줄 34:
   <!--APR library loader. Documentation at /docs/apr.html -->   <!--APR library loader. Documentation at /docs/apr.html -->
   <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />   <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
-  <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html --> 
-  <Listener className="org.apache.catalina.core.JasperListener" /> 
   <!-- Prevent memory leaks due to use of particular java/javax APIs-->   <!-- Prevent memory leaks due to use of particular java/javax APIs-->
   <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />   <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
줄 67: 줄 69:
     <!-- A "Connector" represents an endpoint by which requests are received     <!-- A "Connector" represents an endpoint by which requests are received
          and responses are returned. Documentation at :          and responses are returned. Documentation at :
-         Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)+         Java HTTP Connector: /docs/config/http.html
          Java AJP  Connector: /docs/config/ajp.html          Java AJP  Connector: /docs/config/ajp.html
          APR (HTTP/AJP) Connector: /docs/apr.html          APR (HTTP/AJP) Connector: /docs/apr.html
-         Define a non-SSL HTTP/1.1 Connector on port 8080+         Define a non-SSL/TLS HTTP/1.1 Connector on port 8080
     -->     -->
     <Connector address="${tomcat.address.http}" port="${tomcat.port.http}" protocol="HTTP/1.1"     <Connector address="${tomcat.address.http}" port="${tomcat.port.http}" protocol="HTTP/1.1"
                connectionTimeout="20000"                connectionTimeout="20000"
 +               maxParameterCount="1000"
                allowTrace="false"                allowTrace="false"
 +               server="${tomcat.connector.server}"
                maxPostSize="${tomcat.connector.maxPostSize}"                maxPostSize="${tomcat.connector.maxPostSize}"
                maxThreads="${tomcat.connector.maxThreads}"                maxThreads="${tomcat.connector.maxThreads}"
 +               maxParameterCount="1000"
                redirectPort="${tomcat.port.https}"                redirectPort="${tomcat.port.https}"
                URIEncoding="${tomcat.connector.URIEncoding}"                URIEncoding="${tomcat.connector.URIEncoding}"
줄 88: 줄 93:
                redirectPort="8443" />                redirectPort="8443" />
     -->     -->
-    <!-- Define SSL HTTP/1.1 Connector on port 8443 +    <!-- Define an SSL/TLS HTTP/1.1 Connector on port 8443 
-         This connector uses the BIO implementation that requires the JSSE +         This connector uses the NIO implementation. The default 
-         style configuration. When using the APR/native implementation, the +         SSLImplementation will depend on the presence of the APR/native 
-         OpenSSL style configuration is required as described in the APR/native +         library and the useOpenSSL attribute of the 
-         documentation -->+         AprLifecycleListener. 
 +         Either JSSE or OpenSSL style configuration may be used regardless of 
 +         the SSLImplementation selected. JSSE style configuration is used below. 
 +    -->
     <!--     <!--
-    <Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol+    <Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol
-               maxThreads="150" SSLEnabled="true" scheme="httpssecure="true+               maxThreads="150" SSLEnabled="true"
-               clientAuth="falsesslProtocol="TLS" />+        <SSLHostConfig> 
 +            <Certificate certificateKeystoreFile="conf/localhost-rsa.jks" 
 +                         type="RSA" /> 
 +        </SSLHostConfig> 
 +    </Connector> 
 +    --> 
 +    <!-- Define an SSL/TLS HTTP/1.1 Connector on port 8443 with HTTP/2 
 +         This connector uses the APR/native implementation which always uses 
 +         OpenSSL for TLS. 
 +         Either JSSE or OpenSSL style configuration may be used. OpenSSL style 
 +         configuration is used below. 
 +    --> 
 +    <!-- 
 +    <Connector port="8443" protocol="org.apache.coyote.http11.Http11AprProtocol
 +               maxThreads="150SSLEnabled="true
 +        <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" /> 
 +        <SSLHostConfig> 
 +            <Certificate certificateKeyFile="conf/localhost-rsa-key.pem" 
 +                         certificateFile="conf/localhost-rsa-cert.pem" 
 +                         certificateChainFile="conf/localhost-rsa-chain.pem" 
 +                         type="RSA" /> 
 +        </SSLHostConfig> 
 +    </Connector>
     -->     -->
  
     <!-- Define an AJP 1.3 Connector on port 8009 -->     <!-- Define an AJP 1.3 Connector on port 8009 -->
 +    <!--
 +    <Connector protocol="AJP/1.3"
 +               address="::1"
 +               port="8009"
 +               redirectPort="8443" />
 +    -->
     <Connector address="${tomcat.address.ajp}" port="${tomcat.port.ajp}" protocol="AJP/1.3"     <Connector address="${tomcat.address.ajp}" port="${tomcat.port.ajp}" protocol="AJP/1.3"
 +               maxParameterCount="1000"
                allowTrace="false"                allowTrace="false"
 +               server="${tomcat.connector.server}"
                maxPostSize="${tomcat.connector.maxPostSize}"                maxPostSize="${tomcat.connector.maxPostSize}"
                maxThreads="${tomcat.connector.maxThreads}"                maxThreads="${tomcat.connector.maxThreads}"
 +               maxParameterCount="1000"
                redirectPort="${tomcat.port.https}"                redirectPort="${tomcat.port.https}"
                URIEncoding="${tomcat.connector.URIEncoding}"                URIEncoding="${tomcat.connector.URIEncoding}"
 +               secretRequired="false"
                useBodyEncodingForURI="true" />                useBodyEncodingForURI="true" />
  
줄 125: 줄 165:
       <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>       <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
       -->       -->
 +
         <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"         <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"
-                 channelSendOptions="8">+                 channelSendOptions="6" channelStartOptions="3">
  
 +          <!-- Delta Manager -->
           <Manager className="org.apache.catalina.ha.session.DeltaManager"           <Manager className="org.apache.catalina.ha.session.DeltaManager"
                    expireSessionsOnShutdown="false"                    expireSessionsOnShutdown="false"
                    notifyListenersOnReplication="true"/>                    notifyListenersOnReplication="true"/>
 +
 +          <!-- Backup Manager
 +          <Manager className="org.apache.catalina.ha.session.BackupManager"
 +                   expireSessionsOnShutdown="false"
 +                   notifyListenersOnReplication="true"
 +                   mapSendOptions="6"/>
 +          -->
  
           <Channel className="org.apache.catalina.tribes.group.GroupChannel">           <Channel className="org.apache.catalina.tribes.group.GroupChannel">
 +
 +            <!-- Multicast Member -->
 +            <!--
             <Membership className="org.apache.catalina.tribes.membership.McastService"             <Membership className="org.apache.catalina.tribes.membership.McastService"
                         address="${tomcat.cluster.member.address}"                         address="${tomcat.cluster.member.address}"
줄 138: 줄 190:
                         frequency="500"                         frequency="500"
                         dropTime="3000"/>                         dropTime="3000"/>
 +            -->
 +
             <Receiver className="org.apache.catalina.tribes.transport.nio.NioReceiver"             <Receiver className="org.apache.catalina.tribes.transport.nio.NioReceiver"
                       address="${tomcat.cluster.receiver.address}"                       address="${tomcat.cluster.receiver.address}"
                       port="${tomcat.cluster.receiver.port}"                       port="${tomcat.cluster.receiver.port}"
-                      autoBind="100+                      selectorTimeout="100"
-                      selectorTimeout="5000"+
                       maxThreads="6"/>                       maxThreads="6"/>
  
줄 148: 줄 201:
               <Transport className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"/>               <Transport className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"/>
             </Sender>             </Sender>
 +            <Interceptor className="org.apache.catalina.tribes.group.interceptors.TcpPingInterceptor"/>
             <Interceptor className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector"/>             <Interceptor className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector"/>
-            <Interceptor className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor"/>+            <Interceptor className="org.apache.catalina.tribes.group.interceptors.MessageDispatchInterceptor"/>
             <Interceptor className="org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor"/>             <Interceptor className="org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor"/>
 +
 +            <Interceptor className="org.apache.catalina.tribes.group.interceptors.StaticMembershipInterceptor">
 +       <LocalMember className="org.apache.catalina.tribes.membership.StaticMember"
 +                           domain="staging-cluster"
 +                           uniqueId="{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1}"/>
 +
 +              <Member className="org.apache.catalina.tribes.membership.StaticMember"
 +                      port="5001"
 +                      securePort="-1"
 +                      host="tomcat2"
 +                      domain="staging-cluster"
 +                      uniqueId="{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,2}"/>
 +            </Interceptor>
 +
           </Channel>           </Channel>
  
           <Valve className="org.apache.catalina.ha.tcp.ReplicationValve"           <Valve className="org.apache.catalina.ha.tcp.ReplicationValve"
-                 filter=""/>+                 filter=".*\.gif|.*\.js|.*\.jpeg|.*\.jpg|.*\.png|.*\.htm|.*\.html|.*\.css|.*\.txt"/>
           <Valve className="org.apache.catalina.ha.session.JvmRouteBinderValve"/>           <Valve className="org.apache.catalina.ha.session.JvmRouteBinderValve"/>
  
 +          <!--
           <Deployer className="org.apache.catalina.ha.deploy.FarmWarDeployer"           <Deployer className="org.apache.catalina.ha.deploy.FarmWarDeployer"
                     tempDir="/tmp/war-temp/"                     tempDir="/tmp/war-temp/"
줄 162: 줄 231:
                     watchDir="/tmp/war-listen/"                     watchDir="/tmp/war-listen/"
                     watchEnabled="false"/>                     watchEnabled="false"/>
 +          -->
  
-          <ClusterListener className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"/> 
           <ClusterListener className="org.apache.catalina.ha.session.ClusterSessionListener"/>           <ClusterListener className="org.apache.catalina.ha.session.ClusterSessionListener"/>
         </Cluster>         </Cluster>
줄 192: 줄 261:
              Note: The pattern used is equivalent to using pattern="common" -->              Note: The pattern used is equivalent to using pattern="common" -->
         <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"         <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
-               prefix="localhost_access_log." suffix=".txt"+               prefix="localhost_access_log" suffix=".txt"
                pattern="%h %l %u %t &quot;%r&quot; %s %b" />                pattern="%h %l %u %t &quot;%r&quot; %s %b" />
  
줄 199: 줄 268:
   </Service>   </Service>
 </Server> </Server>
 +
 </code> </code>
 +</WRAP>
  • conf_server.xml.cluster.1438584716.txt.gz
  • 마지막으로 수정됨: 2015/08/03 06:51
  • 저자 koov