Hi,
I changed the worker list to comma-separated list.
My server.xml:
<Engine name="Catalina" defaultHost="localhost" jvmRoute="worker1">

      <!--For clustering, please take a look at documentation at:
          /docs/cluster-howto.html  (simple how to)
          /docs/config/cluster.html (reference documentation) -->
 
        <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"
                 channelSendOptions="8">

          <Manager className="org.apache.catalina.ha.session.DeltaManager"
                   expireSessionsOnShutdown="false"
                   notifyListenersOnReplication="true"/>

          <Channel className="org.apache.catalina.tribes.group.GroupChannel">
            <Membership 
className="org.apache.catalina.tribes.membership.McastService"
                        address="228.0.0.4"
                        port="45564"
                        frequency="500"
                        dropTime="3000"/>
            <Receiver 
className="org.apache.catalina.tribes.transport.nio.NioReceiver"
                      address="auto"
                      port="4000"
                      autoBind="100"
                      selectorTimeout="5000"
                      maxThreads="6"/>

            <Sender 
className="org.apache.catalina.tribes.transport.ReplicationTransmitter">
              <Transport 
className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"/>
            </Sender>
            <Interceptor 
className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector"/>
            <Interceptor 
className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor"/>
          </Channel>

          <Valve className="org.apache.catalina.ha.tcp.ReplicationValve"
                 filter=""/>
          <Valve 
className="org.apache.catalina.ha.session.JvmRouteBinderValve"/>
          <ClusterListener 
className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"/>
          <ClusterListener 
className="org.apache.catalina.ha.session.ClusterSessionListener"/>
        </Cluster>         

      <!-- The request dumper valve dumps useful debugging information about
           the request and response data received and sent by Tomcat.
           Documentation at: /docs/config/valve.html -->
      <!--
      <Valve className="org.apache.catalina.valves.RequestDumperValve"/>
      -->

      <!-- This Realm uses the UserDatabase configured in the global JNDI
           resources under the key "UserDatabase".  Any edits
           that are performed against this UserDatabase are immediately
           available for use by the Realm.  -->
      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
             resourceName="UserDatabase"/>

      <!-- Define the default virtual host
           Note: XML Schema validation will not work with Xerces 2.2.
       -->
      <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">

        <!-- SingleSignOn valve, share authentication between web applications
             Documentation at: /docs/config/valve.html -->
        <!--
        <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
        -->

        <!-- Access log processes all example.
             Documentation at: /docs/config/valve.html -->

        <Valve className="org.apache.catalina.valves.AccessLogValve" 
directory="logs"  
               prefix="localhost_access_log." suffix=".txt" pattern="common" 
resolveHosts="false"/>

      </Host>

        
        <Host name="extranet" appBase="extranet">
                <Alias>k0.xxx-xxxxx.net</Alias>
                                                                                
           
                        
                <Valve className="org.apache.catalina.valves.AccessLogValve" 
directory="logs"
               prefix="extranet_access_log." suffix=".txt" pattern="common" 
resolveHosts="false"/>
      </Host>

       <Host name="akademie" appBase="akademie">          
                        <Alias>k0.xxxx-akadexxxxmie.de</Alias>
                
                  
                  <Valve className="org.apache.catalina.valves.AccessLogValve" 
directory="logs"
               prefix="akademie_access_log." suffix=".txt" pattern="common" 
resolveHosts="false"/>                
      </Host>

       <Host name="article_finder_admin" appBase="article_finder_admin">        
  
                        <Alias>xxxx-xxx.xxxxxx.de</Alias>
                        
                  
                  <Valve className="org.apache.catalina.valves.AccessLogValve" 
directory="logs"
               prefix="article_finder_admin_access_log." suffix=".txt" 
pattern="common" resolveHosts="false"/>
                  
      </Host>
    </Engine>


My conf/Catalina/ Structure: (very host contain its own App) We make this to 
have the possibility to access Manager App to restart every context seperatly.
Localhost
        Probe.xml
        Manager.xml
        Host-manager.xml
Extranet
        ROOT.xml
        Probe.xml
        Manager.xml
Akademie
        ROOT.xml
        Probe.xml
        Manager.xml
Articlefinder
        ROOT.xml
        Probe.xml
        Manager.xml


-----Ursprüngliche Nachricht-----
Von: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Gesendet: Montag, 1. Februar 2010 22:27
An: Tomcat Users List
Betreff: Re: AW: AW: Tomcat Cluster 6.x and HTTP/1.1 503 Service Temporarily 
Unavailable

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

André,

On 2/1/2010 3:54 PM, André Warnier wrote:
>>
>>> worker.loadbalancer.type=lb
>>> worker.loadbalancer.balance_workers=worker1 worker2
> 
> Should this not be :
>>> worker.loadbalancer.balance_workers=worker1,worker2
> 
> http://tomcat.apache.org/connectors-doc/reference/workers.html
>>
> balance_workers    -    A comma separated list of workers that the load
> balancer need to manage.

Good observation. I tried to look at the mod_jk code to figure out how
the string parsing was done, and I have to admit that I can't understand
any of that code. :(

Certainly using a comma-separated list would help. I'd be interested in
seeing the JkMount directives, too, and seeing if both nodes are getting
any traffic.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAktnRxoACgkQ9CaO5/Lv0PCs9ACgr8eqCglq7pp/miiT5FoIqevo
vv8An38AXScIm52q8l0cgCjNzCCoOz4c
=xUPB
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to