Think you ask to find node with this service so it behaves as configured.
Remove it for static clusters.

Le 5 juil. 2017 20:43, "Elder Moraes" <elder.mor...@gmail.com> a écrit :

Sorry, I don't get it...


Twitter: @elderjava <https://twitter.com/elderjava>
Blog: http://eldermoraes.com



2017-07-05 15:38 GMT-03:00 Romain Manni-Bucau <rmannibu...@gmail.com>:

> (disclaimer: read quickly on phone so can be wrong)
>
> seems you use membership discovery, can't it be simply that?
>
> 2017-07-05 20:07 GMT+02:00 Elder Moraes <elder.mor...@gmail.com>:
>
> > Sure! Here they are:
> >
> > Name: Catalina:type=Cluster,component=Member,name="tcp://{172, 17, 0,
> > 3}:4000"
> > modelerType: org.apache.tomcat.util.modeler.BaseModelMBean
> > memberAliveTime: 59124
> > suspect: false
> > udpPort: -1
> > local: false
> > securePort: -1
> > hostname: {172, 17, 0, 3}
> > port: 4000
> > serviceStartTime: 0
> > ready: true
> > failing: false
> > name: tcp://{172, 17, 0, 3}:4000
> > msgCount: 0
> >
> > Name: Catalina:type=Cluster,component=Member,name="tcp://172.17.0.4:4000
> "
> > modelerType: org.apache.tomcat.util.modeler.BaseModelMBean
> > memberAliveTime: 8094
> > suspect: false
> > udpPort: -1
> > local: true
> > securePort: -1
> > hostname: 172.17.0.4
> > port: 4000
> > serviceStartTime: 1499277570908
> > ready: true
> > failing: false
> > name: tcp://172.17.0.4:4000
> > msgCount: 108
> >
> > Name: Catalina:type=Cluster,component=Member,name="tcp://{172, 17, 0,
> > 5}:4000"
> > modelerType: org.apache.tomcat.util.modeler.BaseModelMBean
> > memberAliveTime: 52614
> > suspect: false
> > udpPort: -1
> > local: false
> > securePort: -1
> > hostname: {172, 17, 0, 5}
> > port: 4000
> > serviceStartTime: 0
> > ready: true
> > failing: false
> > name: tcp://{172, 17, 0, 5}:4000
> > msgCount: 0
> >
> > Name: Catalina:type=Cluster
> > modelerType: org.apache.tomcat.util.modeler.BaseModelMBean
> > channelStartOptions: 15
> > stateName: STARTED
> > channelSendOptions: 8
> > domain: Catalina
> > clusterName: Catalina
> > heartbeatBackgroundEnabled: false
> > notifyLifecycleListenerOnFailure: false
> > objectName: Catalina:type=Cluster
> >
> > Name: Catalina:type=Cluster,component=Deployer
> > modelerType: org.apache.catalina.mbeans.ClassNameMBean
> > watchDir: /tmp/war-listen/
> > processDeployFrequency: 2
> > tempDir: /tmp/war-temp/
> > maxValidTime: 300
> > deployDir: /tmp/war-deploy/
> > watchEnabled: false
> >
> >
> > Twitter: @elderjava <https://twitter.com/elderjava>
> > Blog: http://eldermoraes.com
> >
> >
> >
> > 2017-07-05 13:40 GMT-03:00 Romain Manni-Bucau <rmannibu...@gmail.com>:
> >
> > > Hmm, can you have a look into JMX on some tomee instances to check the
> > > tomcat cluster config please?
> > >
> > >
> > > Romain Manni-Bucau
> > > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > > <https://blog-rmannibucau.rhcloud.com> | Old Blog
> > > <http://rmannibucau.wordpress.com> | Github <https://github.com/
> > > rmannibucau> |
> > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
> > > <https://javaeefactory-rmannibucau.rhcloud.com>
> > >
> > > 2017-07-05 18:34 GMT+02:00 Elder Moraes <elder.mor...@gmail.com>:
> > >
> > > > Hi Romain,
> > > >
> > > > Actually my problem is right the opposite (I forget to mention -
> > sorry!):
> > > > I'm trying to use a static discovery, but it is working as a dynamic
> > one.
> > > > In other words, when I run another container (say, host4) it joins
> into
> > > the
> > > > cluster.
> > > >
> > > >
> > > >
> > > > Cheers,
> > > >
> > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > Blog: http://eldermoraes.com
> > > >
> > > >
> > > >
> > > > 2017-07-05 12:38 GMT-03:00 Romain Manni-Bucau <rmannibu...@gmail.com
> >:
> > > >
> > > > > Hi Elder,
> > > > >
> > > > > are all the binding address (host)/ports opened between your
> > > containers?
> > > > > (can you telnet between them)
> > > > > do you use docker-compose to create the cluster (it helps a bit)?
> > > > > did you activate the debug log of tomcat clustering? it generally
> > helps
> > > > >
> > > > >
> > > > > Romain Manni-Bucau
> > > > > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > > > > <https://blog-rmannibucau.rhcloud.com> | Old Blog
> > > > > <http://rmannibucau.wordpress.com> | Github <https://github.com/
> > > > > rmannibucau> |
> > > > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE
> Factory
> > > > > <https://javaeefactory-rmannibucau.rhcloud.com>
> > > > >
> > > > > 2017-07-05 17:30 GMT+02:00 Elder Moraes <elder.mor...@gmail.com>:
> > > > >
> > > > > > Hi everyone!
> > > > > >
> > > > > > Could you help me? I've been struggling to build a cluster using
> > > Docker
> > > > > and
> > > > > > Tomee based on the static discovery membership.
> > > > > >
> > > > > > Docker image: tomee:8-jre-7.0.3-plume
> > > > > >
> > > > > > Please refer to the "Cluster" node described bellow. Could you
> > point
> > > me
> > > > > > what is wrong?
> > > > > >
> > > > > > <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.
> > > > > > StaticMembershipInterceptor">
> > > > > >                            <Member
> > > > > > className="org.apache.catalina.tribes.membership.StaticMember"
> > > > > >                                   port="5678"
> > > > > >                                   securePort="-1"
> > > > > >                                   host="tomee-soujava1"
> > > > > >                                   domain="staging-cluster"
> > > > > >
> > > > > > uniqueId="{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}"/>
> > > > > >                           <Member
> > > > > > className="org.apache.catalina.tribes.membership.StaticMember"
> > > > > >                                                   port="5678"
> > > > > >
 securePort="-1"
> > > > > >
> > >  host="tomee-soujava2"
> > > > > >
> > > > >  domain="staging-cluster"
> > > > > >
> > > > > > uniqueId="{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2}"/>
> > > > > >                           <Member
> > > > > > className="org.apache.catalina.tribes.membership.StaticMember"
> > > > > >                                                   port="5678"
> > > > > >
 securePort="-1"
> > > > > >
> > >  host="tomee-soujava3"
> > > > > >
> > > > >  domain="staging-cluster"
> > > > > >
> > > > > > uniqueId="{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3}"/>
> > > > > >                      </Interceptor>
> > > > > >
> > > > > >               </Interceptor>
> > > > > >           <Interceptor
> > > > > > className="org.apache.catalina.tribes.group.interceptors.
> > > > > > MessageDispatchInterceptor"/>
> > > > > >
> > > > > >       </Channel>
> > > > > >
> > > > > >       <Valve className="org.apache.catalina.ha.tcp.
> > ReplicationValve"
> > > > > >              filter=""/>
> > > > > >       <Valve
> > > > > > className="org.apache.catalina.ha.session.JvmRouteBinderValve"/>
> > > > > >
> > > > > >       <Deployer className="org.apache.catalina.ha.deploy.
> > > > > FarmWarDeployer"
> > > > > >                 tempDir="/tmp/war-temp/"
> > > > > >                 deployDir="/tmp/war-deploy/"
> > > > > >                 watchDir="/tmp/war-listen/"
> > > > > >                 watchEnabled="false"/>
> > > > > >
> > > > > >       <ClusterListener
> > > > > > className="org.apache.catalina.ha.session.
> > ClusterSessionListener"/>
> > > > > > </Cluster>
> > > > > >
> > > > > >
> > > > > >
> > > > > > Best regards,
> > > > > >
> > > > > > Elder
> > > > > >
> > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > Blog: http://eldermoraes.com
> > > > > >
> > > > >
> > > >
> > >
> >
>

Reply via email to