<!--
   - Resin 4.0 configuration file.
  -->
<resin xmlns="http://caucho.com/ns/resin"
       xmlns:resin="urn:java:com.caucho.resin">

  <!-- property-based Resin configuration -->
  <resin:properties path="${__DIR__}/resin.properties" optional="true"/>

  <resin:if test="${properties_import_url}">
     <resin:properties path="${properties_import_url}"
                    optional="true" recover="true"/>
  </resin:if>


  <!-- Logging configuration for the JDK logging API -->
  <log-handler name="" level="all" path="stdout:"
               timestamp="[%y-%m-%d %H:%M:%S.%s]"
               format=" {${thread}} ${log.message}"/>
               
  <!-- 
     - Alternative pseudo-TTCC log format
     -
     - <log-handler name="" level="all" path="stdout:"
     -           timestamp="%y-%m-%d %H:%M:%S.%s"
     -           format=" [${thread}] ${log.level} ${log.shortName} - ${log.message}"/>
    -->
   
  <!--
     - level='info' for production
     - 'fine' or 'finer' for development and troubleshooting
    -->
  <logger name="" level="${log_level?:'info'}"/>

  <logger name="com.caucho.java" level="config"/>
  <logger name="com.caucho.loader" level="config"/>

  <!-- <logger name="com.caucho.server.httpcache" level="fine"/> -->

  <!--
     - Default configuration applied to all clusters, including
     - HTTP, HTTPS, and /resin-admin configuration.
    -->
  <resin:import path="${__DIR__}/cluster-default.xml"/>
  
  <!--
     - health configuration
    -->
  <resin:import path="${__DIR__}/health.xml"/>

  
  <!--
     - Remote management requires at least one enabled admin user.
    -->
  <resin:AdminAuthenticator>
    <user name="${admin_user}" password="${admin_password}"/>
    
    <resin:import path="${__DIR__}/admin-users.xml" optional="true"/>
  </resin:AdminAuthenticator>

  <!--
     - For clustered systems, create a password in as cluster_system_key
    -->
  <cluster-system-key>${cluster_system_key}</cluster-system-key>

  <!--
     - For production sites, change dependency-check-interval to something
     - like 600s, so it only checks for updates every 10 minutes.
    -->
  <dependency-check-interval>${dependency_check_interval?:'3600s'}</dependency-check-interval>

  <!-- For resin.properties dynamic cluster joining -->
  <home-cluster>${home_cluster}</home-cluster>
  <home-server>${home_server}</home-server>
  <elastic-server>${elastic_server}</elastic-server>
  <elastic-dns>${elastic_dns}</elastic-dns>

  <!--
     - Configures the main application cluster.  Load-balancing configurations
     - will also have a web cluster.
    -->

  <cluster id="fleet">

    <proxy-cache enable="true" entries="16384" disk-size="2G" memory-size="256M"/>

    <!-- define the servers in the cluster -->
    <server id="fleet" address="127.0.0.1" port="6799">
        <!--<watchdog-port>6700</watchdog-port>-->
        <jvm-arg>-Xmx8G</jvm-arg>
        <jvm-arg>-Xms8G</jvm-arg>
        <jvm-arg>-XX:+UseG1GC</jvm-arg>
        <jvm-arg>-XX:MaxGCPauseMillis=200</jvm-arg>
        <jvm-arg>-XX:InitiatingHeapOccupancyPercent=70</jvm-arg>
        <jvm-arg>-XX:ConcGCThreads=5</jvm-arg>
        <jvm-arg>-XX:ParallelGCThreads=20</jvm-arg>
        <jvm-arg>-XX:+HeapDumpOnOutOfMemoryError</jvm-arg>
        <jvm-arg>-XX:HeapDumpPath=/home/gcostea/rel/release/</jvm-arg>
        <jvm-arg>-XX:+UseGCOverheadLimit</jvm-arg>
        <jvm-arg>-Dcom.sun.management.jmxremote.port=9997</jvm-arg>
        <jvm-arg>-Dcom.sun.management.jmxremote.ssl=false</jvm-arg>
        <jvm-arg>-Dcom.sun.management.jmxremote.authenticate=false</jvm-arg>
	<jvm-arg>-Djava.locale.providers=COMPAT</jvm-arg>
	<jvm-arg>-Duser.language=en</jvm-arg>
        <jvm-arg>-Duser.country=US</jvm-arg>
    </server>

    <host-default>
      <!-- creates the webapps directory for .war expansion -->
      <web-app-deploy path="webapps"
                      expand-preserve-fileset="WEB-INF/work/**"
                      multiversion-routing="${webapp_multiversion_routing}"
                      path-suffix="${elastic_webapp?resin.id:''}"/>
    </host-default>

    <!-- auto virtual host deployment in hosts/foo.example.com/webapps -->
    <host-deploy path="hosts">
      <host-default>
        <resin:import path="host.xml" optional="true"/>
      </host-default>
    </host-deploy>

    <!-- the default host, matching any host name -->
    <host id="" root-directory=".">
      <!--
         - webapps can be overridden/extended in the resin.xml
        -->
      <web-app id="/" root-directory="webapps/ROOT"/>

    </host>

    <host id="fleet.viatrack.ro" document-directory='/app/fleet/webdocs' root-directory='/app/fleet/webdocs'>
        <host-alias>fleet.viatrack.ro</host-alias>
	<host-alias>viatrack.ro</host-alias>
        <web-app id='/'>
           <character-encoding>utf8</character-encoding>
           <authenticator type="com.caucho.server.security.XmlAuthenticator">
             <init>
               <user>da:test:user</user>
               <password-digest>none</password-digest>
             </init>
           </authenticator>
           <login-config auth-method='basic'/>
           <security-constraint url-pattern='/uviewadmin/*' role-name='user'/>

           <servlet servlet-name='Main' servlet-class='sat.Main'/>
           <servlet-mapping url-pattern='/uview/*' servlet-name='Main'/>
           <servlet-mapping url-pattern='/uview' servlet-name='Main'/>
           <servlet-mapping url-pattern='/uviewadmin' servlet-name='Main'/>
           <servlet-mapping url-pattern='/2*.pdf' servlet-name='Main'/>
           <servlet-mapping url-pattern='/2*.xls' servlet-name='Main'/>

           <cache-mapping url-pattern='/uview?call=sat.timed.AlertStatus' max-age='0' s-max-age='0' />

        </web-app>
    </host>

    <resin:if test="${resin_doc}">
      <host id="${resin_doc_host}" root-directory="${resin_doc_host}">
        <web-app id="/resin-doc" root-directory="${resin.root}/doc/resin-doc"/>
      </host>
    </resin:if>
  </cluster>

  <cluster id="sat">

    <proxy-cache enable="true" entries="16384" disk-size="2G" memory-size="256M"/>

    <!-- define the servers in the cluster -->
    <server id="sat" address="127.0.0.1" port="6800">
	<!--<watchdog-port>6700</watchdog-port>-->
	<jvm-arg>-Xmx10G</jvm-arg>
    	<jvm-arg>-Xms10G</jvm-arg>
    	<jvm-arg>-XX:+UseG1GC</jvm-arg>
	<jvm-arg>-XX:MaxGCPauseMillis=200</jvm-arg>
	<jvm-arg>-XX:InitiatingHeapOccupancyPercent=70</jvm-arg>	
	<jvm-arg>-XX:ConcGCThreads=5</jvm-arg>
	<jvm-arg>-XX:ParallelGCThreads=20</jvm-arg>
	<jvm-arg>-XX:+HeapDumpOnOutOfMemoryError</jvm-arg>
	<jvm-arg>-XX:HeapDumpPath=/home/gcostea/rel/release/</jvm-arg>
	<jvm-arg>-XX:+UseGCOverheadLimit</jvm-arg>
	<jvm-arg>-Dcom.sun.management.jmxremote.port=9998</jvm-arg>
	<jvm-arg>-Dcom.sun.management.jmxremote.ssl=false</jvm-arg>
	<jvm-arg>-Dcom.sun.management.jmxremote.authenticate=false</jvm-arg>
	<jvm-arg>-Djava.locale.providers=COMPAT</jvm-arg>
	<jvm-arg>-Duser.language=en</jvm-arg>
        <jvm-arg>-Duser.country=US</jvm-arg>
    </server>

    <host-default>
      <!-- creates the webapps directory for .war expansion -->
      <web-app-deploy path="webapps"
                      expand-preserve-fileset="WEB-INF/work/**"
                      multiversion-routing="${webapp_multiversion_routing}"
                      path-suffix="${elastic_webapp?resin.id:''}"/>
    </host-default>

    <!-- auto virtual host deployment in hosts/foo.example.com/webapps -->
    <host-deploy path="hosts">
      <host-default>
        <resin:import path="host.xml" optional="true"/>
      </host-default>
    </host-deploy>

    <!-- the default host, matching any host name -->
    <host id="" root-directory=".">
      <!--
         - webapps can be overridden/extended in the resin.xml
        -->
      <web-app id="/" root-directory="webapps/ROOT"/>

    </host>

    <host id="viatrack.ro" document-directory='/app/sat/webdocs' root-directory='/app/sat/webdocs'>
        <host-alias>www.viatrack.ro</host-alias>
	<host-alias>viatrack.ro</host-alias>
        <web-app id='/'>
           <character-encoding>utf8</character-encoding>
           <authenticator type="com.caucho.server.security.XmlAuthenticator">
             <init>
               <user>da:test:user</user>
               <password-digest>none</password-digest>
             </init>
           </authenticator>
           <login-config auth-method='basic'/>
           <security-constraint url-pattern='/uviewadmin/*' role-name='user'/>

           <servlet servlet-name='Main' servlet-class='sat.Main'/>
           <servlet-mapping url-pattern='/uview/*' servlet-name='Main'/>
           <servlet-mapping url-pattern='/uview' servlet-name='Main'/>
           <servlet-mapping url-pattern='/uviewadmin' servlet-name='Main'/>
           <servlet-mapping url-pattern='/2*.pdf' servlet-name='Main'/>
           <servlet-mapping url-pattern='/2*.xls' servlet-name='Main'/>

           <cache-mapping url-pattern='/uview?call=sat.timed.AlertStatus' max-age='0' s-max-age='0' />

        </web-app>
    </host>

	<host id="csfleet.ro" document-directory='/app/sat/webdocs' root-directory='/app/sat/webdocs'>
		<host-alias>www.csfleet.ro</host-alias>
		<host-alias>csfleet.ro</host-alias>
    		<web-app id="/">
			<character-encoding>utf8</character-encoding>
           <authenticator type="com.caucho.server.security.XmlAuthenticator">
             <init>
               <user>da:test:user</user>
               <password-digest>none</password-digest>
             </init>
           </authenticator>
           <login-config auth-method='basic'/>
           <security-constraint url-pattern='/uviewadmin/*' role-name='user'/>

           <servlet servlet-name='Main' servlet-class='sat.Main'/>
           <servlet-mapping url-pattern='/uview/*' servlet-name='Main'/>
           <servlet-mapping url-pattern='/uview' servlet-name='Main'/>
           <servlet-mapping url-pattern='/uviewadmin' servlet-name='Main'/>
           <servlet-mapping url-pattern='/2*.pdf' servlet-name='Main'/>
           <servlet-mapping url-pattern='/2*.xls' servlet-name='Main'/>

      			<rewrite-dispatch>
        			<moved-permanently regexp="^/(.*)$"
                           		target="http://www.viatrack.ro/$1"/>
      			</rewrite-dispatch>
    		</web-app>
  	</host>

    <resin:if test="${resin_doc}">
      <host id="${resin_doc_host}" root-directory="${resin_doc_host}">
        <web-app id="/resin-doc" root-directory="${resin.root}/doc/resin-doc"/>
      </host>
    </resin:if>
  </cluster>


  <cluster id="sat_i0">

    <!-- define the servers in the cluster -->
    <server id="sat_i0" address="127.0.0.1" port="6801">
	<!--<watchdog-port>6701</watchdog-port>-->
	<jvm-arg>-Xmx4G</jvm-arg>
        <jvm-arg>-XX:+UseG1GC</jvm-arg>
        <jvm-arg>-XX:MaxGCPauseMillis=200</jvm-arg>
        <jvm-arg>-XX:InitiatingHeapOccupancyPercent=45</jvm-arg>
        <jvm-arg>-XX:G1ReservePercent=10</jvm-arg>
        <jvm-arg>-XX:ConcGCThreads=10</jvm-arg>
        <jvm-arg>-XX:ParallelGCThreads=10</jvm-arg>
	<jvm-arg>-Djava.locale.providers=COMPAT</jvm-arg>
	<jvm-arg>-Duser.language=en</jvm-arg>
        <jvm-arg>-Duser.country=US</jvm-arg>
    </server>

    <host-default>
      <!-- creates the webapps directory for .war expansion -->
      <web-app-deploy path="webapps"
                      expand-preserve-fileset="WEB-INF/work/**"
                      multiversion-routing="${webapp_multiversion_routing}"
                      path-suffix="${elastic_webapp?resin.id:''}"/>
    </host-default>

    <!-- auto virtual host deployment in hosts/foo.example.com/webapps -->
    <host-deploy path="hosts">
      <host-default>
        <resin:import path="host.xml" optional="true"/>
      </host-default>
    </host-deploy>

    <!-- the default host, matching any host name -->
    <host id="" root-directory=".">
      <!--
         - webapps can be overridden/extended in the resin.xml
        -->
      <web-app id="/" root-directory="webapps/ROOT"/>

    </host>

    <host id="sat_i0.viatrack.ro" document-directory='/app/sat_i0/webdocs' root-directory='/app/sat_i0/webdocs'>
        <host-alias>sat_i0.viatrack.ro</host-alias>
        <web-app id='/'>
           <character-encoding>utf8</character-encoding>
           <authenticator type="com.caucho.server.security.XmlAuthenticator">
             <init>
               <user>da:test:user</user>
               <password-digest>none</password-digest>
             </init>
           </authenticator>
           <login-config auth-method='basic'/>
           <security-constraint url-pattern='/uviewadmin/*' role-name='user'/>

           <servlet servlet-name='Main' servlet-class='sat.Main'/>
           <servlet-mapping url-pattern='/uview/*' servlet-name='Main'/>
           <servlet-mapping url-pattern='/uview' servlet-name='Main'/>
           <servlet-mapping url-pattern='/uviewadmin' servlet-name='Main'/>
           <servlet-mapping url-pattern='/2*.pdf' servlet-name='Main'/>
           <servlet-mapping url-pattern='/2*.xls' servlet-name='Main'/>

        </web-app>
    </host>

    <resin:if test="${resin_doc}">
      <host id="${resin_doc_host}" root-directory="${resin_doc_host}">
        <web-app id="/resin-doc" root-directory="${resin.root}/doc/resin-doc"/>
      </host>
    </resin:if>
  </cluster>


  <cluster id="sat_i2">

    <!-- define the servers in the cluster -->
    <server id="sat_i2" address="127.0.0.1" port="6803">
        <!--<watchdog-port>6703</watchdog-port>-->
	<jvm-arg>-Xmx4G</jvm-arg>
        <jvm-arg>-XX:+UseG1GC</jvm-arg>
        <jvm-arg>-XX:MaxGCPauseMillis=200</jvm-arg>
        <jvm-arg>-XX:InitiatingHeapOccupancyPercent=45</jvm-arg>
        <jvm-arg>-XX:G1ReservePercent=10</jvm-arg>
        <jvm-arg>-XX:ConcGCThreads=10</jvm-arg>
        <jvm-arg>-XX:ParallelGCThreads=10</jvm-arg>
	<jvm-arg>-Djava.locale.providers=COMPAT</jvm-arg>
	<jvm-arg>-Duser.language=en</jvm-arg>
        <jvm-arg>-Duser.country=US</jvm-arg>
    </server>

    <host-default>
      <!-- creates the webapps directory for .war expansion -->
      <web-app-deploy path="webapps"
                      expand-preserve-fileset="WEB-INF/work/**"
                      multiversion-routing="${webapp_multiversion_routing}"
                      path-suffix="${elastic_webapp?resin.id:''}"/>
    </host-default>

    <!-- auto virtual host deployment in hosts/foo.example.com/webapps -->
    <host-deploy path="hosts">
      <host-default>
        <resin:import path="host.xml" optional="true"/>
      </host-default>
    </host-deploy>

    <!-- the default host, matching any host name -->
    <host id="" root-directory=".">
      <!--
         - webapps can be overridden/extended in the resin.xml
        -->
      <web-app id="/" root-directory="webapps/ROOT"/>

    </host>

    <host id="sat_i2.viatrack.ro" document-directory='/app/sat_i2/webdocs' root-directory='/app/sat_i2/webdocs'>
        <host-alias>sat_i2.viatrack.ro</host-alias>
        <web-app id='/'>
           <character-encoding>utf8</character-encoding>
           <authenticator type="com.caucho.server.security.XmlAuthenticator">
             <init>
               <user>da:test:user</user>
               <password-digest>none</password-digest>
             </init>
           </authenticator>
           <login-config auth-method='basic'/>
           <security-constraint url-pattern='/uviewadmin/*' role-name='user'/>

           <servlet servlet-name='Main' servlet-class='sat.Main'/>
           <servlet-mapping url-pattern='/uview/*' servlet-name='Main'/>
           <servlet-mapping url-pattern='/uview' servlet-name='Main'/>
           <servlet-mapping url-pattern='/uviewadmin' servlet-name='Main'/>
           <servlet-mapping url-pattern='/2*.pdf' servlet-name='Main'/>
           <servlet-mapping url-pattern='/2*.xls' servlet-name='Main'/>

        </web-app>
    </host>

    <resin:if test="${resin_doc}">
      <host id="${resin_doc_host}" root-directory="${resin_doc_host}">
        <web-app id="/resin-doc" root-directory="${resin.root}/doc/resin-doc"/>
      </host>
    </resin:if>
  </cluster>


  <cluster id="sat_i3">

    <!-- define the servers in the cluster -->
    <server id="sat_i3" address="127.0.0.1" port="6804">
        <!--<watchdog-port>6704</watchdog-port>-->
	<jvm-arg>-Xmx4G</jvm-arg>
        <jvm-arg>-XX:+UseG1GC</jvm-arg>
        <jvm-arg>-XX:MaxGCPauseMillis=200</jvm-arg>
        <jvm-arg>-XX:InitiatingHeapOccupancyPercent=45</jvm-arg>
        <jvm-arg>-XX:G1ReservePercent=10</jvm-arg>
        <jvm-arg>-XX:ConcGCThreads=10</jvm-arg>
        <jvm-arg>-XX:ParallelGCThreads=10</jvm-arg>
	<jvm-arg>-Djava.locale.providers=COMPAT</jvm-arg>
	<jvm-arg>-Duser.language=en</jvm-arg>
        <jvm-arg>-Duser.country=US</jvm-arg>
    </server>

    <host-default>
      <!-- creates the webapps directory for .war expansion -->
      <web-app-deploy path="webapps"
                      expand-preserve-fileset="WEB-INF/work/**"
                      multiversion-routing="${webapp_multiversion_routing}"
                      path-suffix="${elastic_webapp?resin.id:''}"/>
    </host-default>

    <!-- auto virtual host deployment in hosts/foo.example.com/webapps -->
    <host-deploy path="hosts">
      <host-default>
        <resin:import path="host.xml" optional="true"/>
      </host-default>
    </host-deploy>

    <!-- the default host, matching any host name -->
    <host id="" root-directory=".">
      <!--
         - webapps can be overridden/extended in the resin.xml
        -->
      <web-app id="/" root-directory="webapps/ROOT"/>

    </host>

    <host id="sat_i3.viatrack.ro" document-directory='/app/sat_i3/webdocs' root-directory='/app/sat_i3/webdocs'>
        <host-alias>sat_i3.viatrack.ro</host-alias>
        <web-app id='/'>
           <character-encoding>utf8</character-encoding>
           <authenticator type="com.caucho.server.security.XmlAuthenticator">
             <init>
               <user>da:test:user</user>
               <password-digest>none</password-digest>
             </init>
           </authenticator>
           <login-config auth-method='basic'/>
           <security-constraint url-pattern='/uviewadmin/*' role-name='user'/>

           <servlet servlet-name='Main' servlet-class='sat.Main'/>
           <servlet-mapping url-pattern='/uview/*' servlet-name='Main'/>
           <servlet-mapping url-pattern='/uview' servlet-name='Main'/>
           <servlet-mapping url-pattern='/uviewadmin' servlet-name='Main'/>
           <servlet-mapping url-pattern='/2*.pdf' servlet-name='Main'/>
           <servlet-mapping url-pattern='/2*.xls' servlet-name='Main'/>

        </web-app>
    </host>

    <resin:if test="${resin_doc}">
      <host id="${resin_doc_host}" root-directory="${resin_doc_host}">
        <web-app id="/resin-doc" root-directory="${resin.root}/doc/resin-doc"/>
      </host>
    </resin:if>
  </cluster>


<cluster id="crh">

    <proxy-cache enable="true" entries="16384" disk-size="2G" memory-size="256M"/>

    <!-- define the servers in the cluster -->
    <server id="crh" address="127.0.0.1" port="6807">
        <!--<watchdog-port>6700</watchdog-port>-->
        <jvm-arg>-Xmx8G</jvm-arg>
        <jvm-arg>-Xms8G</jvm-arg>
        <jvm-arg>-XX:+UseG1GC</jvm-arg>
        <jvm-arg>-XX:MaxGCPauseMillis=200</jvm-arg>
        <jvm-arg>-XX:InitiatingHeapOccupancyPercent=70</jvm-arg>
        <jvm-arg>-XX:ConcGCThreads=5</jvm-arg>
        <jvm-arg>-XX:ParallelGCThreads=20</jvm-arg>
        <jvm-arg>-XX:+HeapDumpOnOutOfMemoryError</jvm-arg>
        <jvm-arg>-XX:HeapDumpPath=/home/gcostea/rel/release/</jvm-arg>
        <jvm-arg>-XX:+UseGCOverheadLimit</jvm-arg>
        <jvm-arg>-Dcom.sun.management.jmxremote.port=9996</jvm-arg>
        <jvm-arg>-Dcom.sun.management.jmxremote.ssl=false</jvm-arg>
        <jvm-arg>-Dcom.sun.management.jmxremote.authenticate=false</jvm-arg>
	<jvm-arg>-Djava.locale.providers=COMPAT</jvm-arg>
	<jvm-arg>-Duser.language=en</jvm-arg>
        <jvm-arg>-Duser.country=US</jvm-arg>
    </server>

    <host-default>
      <!-- creates the webapps directory for .war expansion -->
      <web-app-deploy path="webapps"
                      expand-preserve-fileset="WEB-INF/work/**"
                      multiversion-routing="${webapp_multiversion_routing}"
                      path-suffix="${elastic_webapp?resin.id:''}"/>
    </host-default>

    <!-- auto virtual host deployment in hosts/foo.example.com/webapps -->
    <host-deploy path="hosts">
      <host-default>
        <resin:import path="host.xml" optional="true"/>
      </host-default>
    </host-deploy>

    <!-- the default host, matching any host name -->
    <host id="" root-directory=".">
      <!--
         - webapps can be overridden/extended in the resin.xml
        -->
      <web-app id="/" root-directory="webapps/ROOT"/>
    </host>
    <host id="crh.viatrack.ro" document-directory='/app/crh/webdocs' root-directory='/app/crh/webdocs'>
        <host-alias>crh.viatrack.ro</host-alias>
        <web-app id='/'>
           <character-encoding>utf8</character-encoding>
           <authenticator type="com.caucho.server.security.XmlAuthenticator">
             <init>
               <user>da:test:user</user>
               <password-digest>none</password-digest>
             </init>
           </authenticator>
           <login-config auth-method='basic'/>
           <security-constraint url-pattern='/uviewadmin/*' role-name='user'/>

           <servlet servlet-name='Main' servlet-class='sat.Main'/>
           <servlet-mapping url-pattern='/uview/*' servlet-name='Main'/>
           <servlet-mapping url-pattern='/uview' servlet-name='Main'/>
           <servlet-mapping url-pattern='/uviewadmin' servlet-name='Main'/>
           <servlet-mapping url-pattern='/2*.pdf' servlet-name='Main'/>
           <servlet-mapping url-pattern='/2*.xls' servlet-name='Main'/>

           <cache-mapping url-pattern='/uview?call=sat.timed.AlertStatus' max-age='0' s-max-age='0' />

        </web-app>
    </host>
    <resin:if test="${resin_doc}">
      <host id="${resin_doc_host}" root-directory="${resin_doc_host}">
        <web-app id="/resin-doc" root-directory="${resin.root}/doc/resin-doc"/>
      </host>
    </resin:if>
</cluster>



<!--
  <cluster id="web">
    <server-multi id-prefix="web-" address-list="${web_servers}" port="6810"/>

    <host id="" root-directory="web">
      <web-app id="">
        <resin:LoadBalance regexp="" cluster="app"/>
      </web-app>
    </host>
  </cluster>

  <cluster id="memcached" xmlns:memcache="urn:java:com.caucho.memcached">
    <server-multi id-prefix="memcached-" address-list="${memcached_servers}" port="6820">
      <listen port="${memcached_port?:11211}"
              keepalive-timeout="600s" socket-timeout="600s">
        <memcache:MemcachedProtocol/>
      </listen>
    </server-multi>
  </cluster>
  
  <cluster id="proxycache">
    <server-multi id-prefix="proxycache-" address-list="${proxycache_servers}" port="6830"/>

    <host id="" root-directory="proxycache">
      <web-app id="">
        <resin:HttpProxy regexp=".*">
          <addresses>${backend_servers}</addresses>
        </resin:HttpProxy>
      </web-app>
    </host>
  </cluster>
-->

</resin>

