You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by Elder Moraes <el...@gmail.com> on 2017/07/05 15:30:47 UTC

Building a Static Discovery Cluster

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

Re: Building a Static Discovery Cluster

Posted by Ivan Junckes Filho <iv...@gmail.com>.
Thanks guys, great ideas! I will try to make a video for this and will
share with you later.

On Tue, Jul 11, 2017 at 10:00 AM, Romain Manni-Bucau <rm...@gmail.com>
wrote:

> If some people want to create some console tuto I would recommand
> https://asciinema.org/ rather than plain video, rendering is customizable
> (colors, font etc) and it is lighter than videos. It is really great for
> setup/config/build... samples. (tip: ensure your shell has colors, makes it
> more readable).
>
>
> 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-11 14:16 GMT+02:00 Jonathan Gallimore <
> jonathan.gallimore@gmail.com>
> :
>
> > Great idea. I was thinking the same thing. I quite fancy the idea of
> > putting a few screencasts up on the site for various things - I
> personally
> > quite like short videos over following text instructions. Personal
> > preference of course.
> >
> > Jon
> >
> > On Tue, Jul 11, 2017 at 1:08 PM, Romain Manni-Bucau <
> rmannibucau@gmail.com
> > >
> > wrote:
> >
> > > We can also "just" add a video to the website to have it permanent in
> > case
> > > part of the world misses the webinar ;)
> > >
> > >
> > > 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-11 13:42 GMT+02:00 Andy Gumbrecht <ag...@tomitribe.com>:
> > >
> > > > That's a really cool idea Ivan - How about proposing a 'Getting
> > Started'
> > > > webinar and inviting the user and dev list?
> > > >
> > > > Andy.
> > > >
> > > > On 11 July 2017 at 13:19, Ivan Junckes Filho <iv...@gmail.com>
> > > > wrote:
> > > >
> > > > > Hi Elder, If you need a google hangout to get started on the
> website
> > > let
> > > > me
> > > > > know.
> > > > >
> > > > > I have been touching it lately and will be happy to help.
> > > > >
> > > > >
> > > > >
> > > > > On Tue, Jul 11, 2017 at 3:30 AM, Romain Manni-Bucau <
> > > > rmannibucau@gmail.com
> > > > > >
> > > > > wrote:
> > > > >
> > > > > > Hi Elder,
> > > > > >
> > > > > > site was not yet updated (any volonteer welcomed ;)) but you can
> do
> > > it
> > > > on
> > > > > > github through a PR:
> > > > > >
> > > > > > 1. fork https://github.com/apache/tomee-site-generator
> > > > > > 2. add a page in
> > > > > > https://github.com/apache/tomee-site-generator/tree/
> > > > > > master/src/main/jbake/content
> > > > > > 3. add a link to this page
> > > > > >
> > > > > >
> > > > > > 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-11 1:07 GMT+02:00 Daniel Cunha <da...@apache.org>:
> > > > > >
> > > > > > > Hi Elder,
> > > > > > >
> > > > > > > Look the section Contribute the this site.
> > > > > > > http://tomee.apache.org/community/index.html
> > > > > > >
> > > > > > > Thank you.
> > > > > > >
> > > > > > > Daniel Cunha
> > > > > > > https://twitter.com/dvlc_
> > > > > > >
> > > > > > > On Jul 10, 2017 6:59 PM, "Elder Moraes" <
> elder.moraes@gmail.com>
> > > > > wrote:
> > > > > > >
> > > > > > > Hello David, Romain and others,
> > > > > > >
> > > > > > > I've just figured it out! Now I have a real static cluster,
> with
> > > > > session
> > > > > > > being shared between nodes and avoiding unexpected members to
> > > joining
> > > > > in.
> > > > > > >
> > > > > > > There are 3 key points:
> > > > > > >
> > > > > > >    1. channelStartOptions="3" (to avoid using multicast);
> > > > > > >    2. Receiver and Member using the same port;
> > > > > > >    3. Turn one of the members into a LocalMember (instead of
> > > Member).
> > > > > It
> > > > > > >    will work as the Replication Listener and Receiver Server.
> > > > > > >
> > > > > > > By doing this you'll be able to see, after all the nodes are up
> > and
> > > > > > > running, the Group Channel showing confirmation of each node
> > added.
> > > > And
> > > > > > > once you try to add another with unexpected IP, it is solemnly
> > > > > ignored...
> > > > > > > ;-)
> > > > > > >
> > > > > > > How can I turn it into some documentation for Tomee? I have all
> > the
> > > > > > > details...
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > > Blog: http://eldermoraes.com
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > 2017-07-10 14:40 GMT-03:00 Elder Moraes <
> elder.moraes@gmail.com
> > >:
> > > > > > >
> > > > > > > > Hey David!
> > > > > > > >
> > > > > > > > I've sent to the Tomcat list, but still didn't get any reply.
> > > > > > > >
> > > > > > > > Anyway I'm still trying to figure it out by myself and will
> be
> > a
> > > > > > pleasure
> > > > > > > > to contribute with some docs once I do it.
> > > > > > > >
> > > > > > > >
> > > > > > > > Tks!
> > > > > > > >
> > > > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > > > Blog: http://eldermoraes.com
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > 2017-07-09 2:50 GMT-03:00 David Blevins <
> > david.blevins@gmail.com
> > > >:
> > > > > > > >
> > > > > > > >>  Hi Elder! just checking to see if you got the help you were
> > > > looking
> > > > > > > for.
> > > > > > > >>
> > > > > > > >>  When you get it figured out any new docs would be amazing.
> > > > > > > >>
> > > > > > > >> On Fri, Jul 7, 2017 at 9:57 AM Elder Moraes <
> > > > elder.moraes@gmail.com
> > > > > >
> > > > > > > >> wrote:
> > > > > > > >>
> > > > > > > >> > Ok, will try them.
> > > > > > > >> >
> > > > > > > >> > Thanks!
> > > > > > > >> >
> > > > > > > >> >
> > > > > > > >> > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > > >> > Blog: http://eldermoraes.com
> > > > > > > >> >
> > > > > > > >> >
> > > > > > > >> >
> > > > > > > >> > 2017-07-06 18:02 GMT-03:00 Romain Manni-Bucau <
> > > > > > rmannibucau@gmail.com
> > > > > > > >:
> > > > > > > >> >
> > > > > > > >> > > outch, no more, didnt resetup a cluster since 2 years.
> But
> > > if
> > > > > you
> > > > > > > >> push a
> > > > > > > >> > > tomee-maven-plugin sample it would be quick to help.
> > > > > > > >> > >
> > > > > > > >> > > Side note: Tomcat list can also be more relevant since
> > they
> > > > > fully
> > > > > > > own
> > > > > > > >> > that
> > > > > > > >> > > part.
> > > > > > > >> > >
> > > > > > > >> > >
> > > > > > > >> > > 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-06 22:52 GMT+02:00 Elder Moraes <
> > > > elder.moraes@gmail.com
> > > > > >:
> > > > > > > >> > >
> > > > > > > >> > > > Do you have some working example? Don't need to be
> > > > dockerized.
> > > > > > > >> > > >
> > > > > > > >> > > >
> > > > > > > >> > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > > >> > > > Blog: http://eldermoraes.com
> > > > > > > >> > > >
> > > > > > > >> > > >
> > > > > > > >> > > > 2017-07-06 17:05 GMT-03:00 Romain Manni-Bucau <
> > > > > > > >> rmannibucau@gmail.com>:
> > > > > > > >> > > >
> > > > > > > >> > > > > yes should help, you can
> > > > > > > >> > > > > check org.apache.catalina.tribes.mem
> > > > > > > >> bership.McastServiceImpl#start,
> > > > > > > >> > > > > org.apache.catalina.tribes.
> group.ChannelCoordinator#
> > > > > > > internalStart
> > > > > > > >> > > > > and org.apache.catalina.tribes.
> > > group.ChannelCoordinator#
> > > > > > > sendMess
> > > > > > > >> age
> > > > > > > >> > to
> > > > > > > >> > > > see
> > > > > > > >> > > > > it in action. It basically disable multicast
> services
> > > > > > (threads)
> > > > > > > >> and
> > > > > > > >> > > > switch
> > > > > > > >> > > > > it to send messages
> > > > > > > >> > > > >
> > > > > > > >> > > > >
> > > > > > > >> > > > > 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-06 20:53 GMT+02:00 Elder Moraes <
> > > > > > elder.moraes@gmail.com
> > > > > > > >:
> > > > > > > >> > > > >
> > > > > > > >> > > > > > The new logs are here:
> > > > > > > >> > > > > >
> > > > > > > >> > > > > > https://www.dropbox.com/s/
> > > > 1bdz8vf9pw0h42v/catalina.2017-
> > > > > > > >> > > 07-06.log?dl=0
> > > > > > > >> > > > > >
> > > > > > > >> > > > > > Yes, it shows everything! ;-)
> > > > > > > >> > > > > >
> > > > > > > >> > > > > > The last four lines shows the unexpected member
> > being
> > > > > added
> > > > > > to
> > > > > > > >> the
> > > > > > > >> > > > > cluster.
> > > > > > > >> > > > > >
> > > > > > > >> > > > > > Don't seems like is a Docker problem, as the new
> > > member
> > > > is
> > > > > > > >> allowed
> > > > > > > >> > by
> > > > > > > >> > > > the
> > > > > > > >> > > > > > cluster.
> > > > > > > >> > > > > >
> > > > > > > >> > > > > > The multicast setup that I've mentioned before has
> > > > nothing
> > > > > > to
> > > > > > > >> do?
> > > > > > > >> > > > > >
> > > > > > > >> > > > > >
> > > > > > > >> > > > > > Twitter: @elderjava <
> https://twitter.com/elderjava>
> > > > > > > >> > > > > > Blog: http://eldermoraes.com
> > > > > > > >> > > > > >
> > > > > > > >> > > > > >
> > > > > > > >> > > > > >
> > > > > > > >> > > > > > 2017-07-06 15:42 GMT-03:00 Romain Manni-Bucau <
> > > > > > > >> > rmannibucau@gmail.com
> > > > > > > >> > > >:
> > > > > > > >> > > > > >
> > > > > > > >> > > > > > > What are the new logs? ;)
> > > > > > > >> > > > > > >
> > > > > > > >> > > > > > > Tomcat logs everything showing if connection
> > works,
> > > if
> > > > > > > members
> > > > > > > >> > are
> > > > > > > >> > > > > > > accepted/connecting etc...
> > > > > > > >> > > > > > >
> > > > > > > >> > > > > > > From what i saw the docker setup is not matching
> > the
> > > > > conf.
> > > > > > > >> Maybe
> > > > > > > >> > > > start
> > > > > > > >> > > > > by
> > > > > > > >> > > > > > > making it running without docker before
> > dockerizing
> > > > it.
> > > > > > > >> > > > > > >
> > > > > > > >> > > > > > > Side note: maybe you want local member in your
> > > cluster
> > > > > > > >> (depends
> > > > > > > >> > > your
> > > > > > > >> > > > > goal
> > > > > > > >> > > > > > > but was often done IIRC).
> > > > > > > >> > > > > > >
> > > > > > > >> > > > > > > Le 6 juil. 2017 19:50, "Elder Moraes" <
> > > > > > > elder.moraes@gmail.com
> > > > > > > >
> > > > > > > >> a
> > > > > > > >> > > > > écrit :
> > > > > > > >> > > > > > >
> > > > > > > >> > > > > > > > Thanks guys.
> > > > > > > >> > > > > > > >
> > > > > > > >> > > > > > > > I'm not using docker-compose.
> > > > > > > >> > > > > > > >
> > > > > > > >> > > > > > > > Actually I've just fixed that errors logged
> just
> > > by
> > > > > > > >> creating a
> > > > > > > >> > > > > > > > docker-network for the cluster and defining a
> > > static
> > > > > IP
> > > > > > > for
> > > > > > > >> > each
> > > > > > > >> > > > > > member.
> > > > > > > >> > > > > > > So
> > > > > > > >> > > > > > > > the cluster is working well at this point.
> > > > > > > >> > > > > > > >
> > > > > > > >> > > > > > > > But it is still working as a dynamic one. I've
> > > found
> > > > > > > >> somewhere
> > > > > > > >> > > > that I
> > > > > > > >> > > > > > > > should use channelStartOptions="3" to disable
> > > > > multicast
> > > > > > > and
> > > > > > > >> > avoid
> > > > > > > >> > > > > > > > unexpected members. But once I do it, the
> > session
> > > is
> > > > > not
> > > > > > > >> shared
> > > > > > > >> > > > thru
> > > > > > > >> > > > > > the
> > > > > > > >> > > > > > > > cluster anymore.
> > > > > > > >> > > > > > > >
> > > > > > > >> > > > > > > > Any thoughts?
> > > > > > > >> > > > > > > >
> > > > > > > >> > > > > > > >
> > > > > > > >> > > > > > > > Twitter: @elderjava <
> > > https://twitter.com/elderjava>
> > > > > > > >> > > > > > > > Blog: http://eldermoraes.com
> > > > > > > >> > > > > > > >
> > > > > > > >> > > > > > > >
> > > > > > > >> > > > > > > > 2017-07-06 10:03 GMT-03:00 Thiago Veronezi <
> > > > > > > >> > thiago@veronezi.org
> > > > > > > >> > > >:
> > > > > > > >> > > > > > > >
> > > > > > > >> > > > > > > > > If you are using docker-compose, check the
> > > > > depends_on
> > > > > > > >> option.
> > > > > > > >> > > It
> > > > > > > >> > > > > will
> > > > > > > >> > > > > > > > > guarantee you have your name available. It
> > does
> > > > not
> > > > > > > >> guarantee
> > > > > > > >> > > you
> > > > > > > >> > > > > > have
> > > > > > > >> > > > > > > > the
> > > > > > > >> > > > > > > > > service fully up and running though. If you
> > need
> > > > > that
> > > > > > > too,
> > > > > > > >> > you
> > > > > > > >> > > > will
> > > > > > > >> > > > > > > need
> > > > > > > >> > > > > > > > > the script to wait for the service behind
> that
> > > > name
> > > > > to
> > > > > > > be
> > > > > > > >> > > ready.
> > > > > > > >> > > > > > > > >
> > > > > > > >> > > > > > > > > []s,
> > > > > > > >> > > > > > > > > Thiago.
> > > > > > > >> > > > > > > > >
> > > > > > > >> > > > > > > > >
> > > > > > > >> > > > > > > > > On 5 Jul 2017 6:16 pm, "Romain Manni-Bucau"
> <
> > > > > > > >> > > > rmannibucau@gmail.com
> > > > > > > >> > > > > >
> > > > > > > >> > > > > > > > wrote:
> > > > > > > >> > > > > > > > >
> > > > > > > >> > > > > > > > > > looks like docker dns is not working that
> > well
> > > > and
> > > > > > > >> > > registration
> > > > > > > >> > > > > > > fails -
> > > > > > > >> > > > > > > > > or
> > > > > > > >> > > > > > > > > > the startup is not ordered properly but
> > result
> > > > > lead
> > > > > > to
> > > > > > > >> the
> > > > > > > >> > > > same.
> > > > > > > >> > > > > > > Often
> > > > > > > >> > > > > > > > > saw
> > > > > > > >> > > > > > > > > > docker-compose having a small bash loop to
> > > wait
> > > > > for
> > > > > > > the
> > > > > > > >> > > > host/port
> > > > > > > >> > > > > > > being
> > > > > > > >> > > > > > > > > > accessible. Maybe that's what you need
> (yes
> > it
> > > > is
> > > > > > > ugly)
> > > > > > > >> > > > > > > > > >
> > > > > > > >> > > > > > > > > >
> > > > > > > >> > > > > > > > > > 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-06 0:13 GMT+02:00 Elder Moraes <
> > > > > > > >> > > elder.moraes@gmail.com
> > > > > > > >> > > > >:
> > > > > > > >> > > > > > > > > >
> > > > > > > >> > > > > > > > > > > I've got the log and put here:
> > > > > > > >> > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > https://www.dropbox.com/s/yxt3
> > > > > > > >> ym1ucv1hwb3/catalina.2017-
> > > > > > > >> > > > > > > > 07-05.log?dl=0
> > > > > > > >> > > > > > > > > > >
> > > > > > > >> > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > Twitter: @elderjava <
> > > > > > https://twitter.com/elderjava>
> > > > > > > >> > > > > > > > > > > Blog: http://eldermoraes.com
> > > > > > > >> > > > > > > > > > >
> > > > > > > >> > > > > > > > > > >
> > > > > > > >> > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > 2017-07-05 18:56 GMT-03:00 Romain
> > > Manni-Bucau
> > > > <
> > > > > > > >> > > > > > > rmannibucau@gmail.com
> > > > > > > >> > > > > > > > >:
> > > > > > > >> > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > interesting, would be great to have
> > debug
> > > > log
> > > > > of
> > > > > > > >> that
> > > > > > > >> > > > > > clustering
> > > > > > > >> > > > > > > > part
> > > > > > > >> > > > > > > > > > > > (something like
> > > org.apache.catalina.tribes.
> > > > > > level
> > > > > > > =
> > > > > > > >> > > FINE),
> > > > > > > >> > > > > > think
> > > > > > > >> > > > > > > > the
> > > > > > > >> > > > > > > > > > > static
> > > > > > > >> > > > > > > > > > > > members are actually excluded of the
> > > cluster
> > > > > > > reading
> > > > > > > >> > this
> > > > > > > >> > > > > error
> > > > > > > >> > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > 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 23:53 GMT+02:00 Elder
> Moraes
> > <
> > > > > > > >> > > > > > elder.moraes@gmail.com
> > > > > > > >> > > > > > > >:
> > > > > > > >> > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > Hmm, why not the tcpfailuredetector
> > as a
> > > > > root
> > > > > > > (/>)
> > > > > > > >> > > > instead
> > > > > > > >> > > > > of
> > > > > > > >> > > > > > > > > > wrapping
> > > > > > > >> > > > > > > > > > > > the
> > > > > > > >> > > > > > > > > > > > > static membership one?
> > > > > > > >> > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > Done e got this error:
> > > > > > > >> > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > 05-Jul-2017 21:51:32.845 WARNING
> > > > > > > >> > > > > > > > > > > > > [GroupChannel-Heartbeat[
> > > > > Catalina-Channel]-1]
> > > > > > > >> > > > > > > > > > > > > sun.reflect.
> NativeMethodAccessorImpl.
> > > > invoke
> > > > > > > >> Unable to
> > > > > > > >> > > > > > perform
> > > > > > > >> > > > > > > > > > > heartbeat
> > > > > > > >> > > > > > > > > > > > on
> > > > > > > >> > > > > > > > > > > > > the TcpFailureDetector.
> > > > > > > >> > > > > > > > > > > > >  java.lang.
> > > ArrayIndexOutOfBoundsException
> > > > :
> > > > > 0
> > > > > > > >> > > > > > > > > > > > >     at
> > > > > > > >> > > > > > > > > > > > > org.apache.catalina.tribes.
> > > > > > > membership.MemberImpl.
> > > > > > > >> > > > > > > > > > > > > hashCode(MemberImpl.java:570)
> > > > > > > >> > > > > > > > > > > > >     at java.util.HashMap.hash(
> > > > > > HashMap.java:338)
> > > > > > > >> > > > > > > > > > > > >     at
> > > > > > > >> > java.util.HashMap.containsKey(HashMap.java:595)
> > > > > > > >> > > > > > > > > > > > >     at
> > > > > > > >> > > > > > > > > > > > > org.apache.catalina.tribes.
> > > > > > group.interceptors.
> > > > > > > >> > > > > > > > TcpFailureDetector.
> > > > > > > >> > > > > > > > > > > > > performBasicCheck(
> > > > > > TcpFailureDetector.java:258)
> > > > > > > >> > > > > > > > > > > > >     at
> > > > > > > >> > > > > > > > > > > > > org.apache.catalina.tribes.
> > > > > > group.interceptors.
> > > > > > > >> > > > > > > > TcpFailureDetector.
> > > > > > > >> > > > > > > > > > > > > checkMembers(
> > > TcpFailureDetector.java:225)
> > > > > > > >> > > > > > > > > > > > >     at
> > > > > > > >> > > > > > > > > > > > > org.apache.catalina.tribes.
> > > > > > group.interceptors.
> > > > > > > >> > > > > > > > > > > > > TcpFailureDetector.heartbeat(
> > > > > > > >> > > > TcpFailureDetector.java:218)
> > > > > > > >> > > > > > > > > > > > >     at
> > > > > > > >> > > > > > > > > > > > > org.apache.catalina.tribes.
> > > > > > > >> > > group.ChannelInterceptorBase.
> > > > > > > >> > > > > > > > heartbeat(
> > > > > > > >> > > > > > > > > > > > > ChannelInterceptorBase.java:100)
> > > > > > > >> > > > > > > > > > > > >     at
> > > > > > > >> > > > > > > > > > > > > org.apache.catalina.tribes.
> > > > > > > >> > > group.GroupChannel.heartbeat(
> > > > > > > >> > > > > > > > > > > > > GroupChannel.java:161)
> > > > > > > >> > > > > > > > > > > > >     at
> > > > > > > >> > > > > > > > > > > > > org.apache.catalina.tribes.
> > > > > > group.GroupChannel$
> > > > > > > >> > > > > > > > HeartbeatThread.run(
> > > > > > > >> > > > > > > > > > > > > GroupChannel.java:719)
> > > > > > > >> > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > Twitter: @elderjava <
> > > > > > > >> https://twitter.com/elderjava>
> > > > > > > >> > > > > > > > > > > > > Blog: http://eldermoraes.com
> > > > > > > >> > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > 2017-07-05 18:47 GMT-03:00 Romain
> > > > > Manni-Bucau
> > > > > > <
> > > > > > > >> > > > > > > > > rmannibucau@gmail.com
> > > > > > > >> > > > > > > > > > >:
> > > > > > > >> > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > > Hmm, why not the
> tcpfailuredetector
> > > as a
> > > > > > root
> > > > > > > >> (/>)
> > > > > > > >> > > > > instead
> > > > > > > >> > > > > > of
> > > > > > > >> > > > > > > > > > > wrapping
> > > > > > > >> > > > > > > > > > > > > the
> > > > > > > >> > > > > > > > > > > > > > static membership one?
> > > > > > > >> > > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > > Also did you manage to get debug
> log
> > > of
> > > > > > tomcat
> > > > > > > >> > > cluster?
> > > > > > > >> > > > > it
> > > > > > > >> > > > > > > > helps
> > > > > > > >> > > > > > > > > a
> > > > > > > >> > > > > > > > > > > lot
> > > > > > > >> > > > > > > > > > > > in
> > > > > > > >> > > > > > > > > > > > > > general
> > > > > > > >> > > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > > 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/r
> > > > > > > >> mannibucau>
> > > > > > > >> > |
> > > > > > > >> > > > > > JavaEE
> > > > > > > >> > > > > > > > > > Factory
> > > > > > > >> > > > > > > > > > > > > > <https://javaeefactory-
> > > > > > > rmannibucau.rhcloud.com>
> > > > > > > >> > > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > > 2017-07-05 23:43 GMT+02:00 Elder
> > > Moraes
> > > > <
> > > > > > > >> > > > > > > > elder.moraes@gmail.com
> > > > > > > >> > > > > > > > > >:
> > > > > > > >> > > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > > > Did it. No errors found.
> > > > > > > >> > > > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > > > If you want to have a look at
> the
> > > > > > > server.xml.
> > > > > > > >> > Also
> > > > > > > >> > > > I've
> > > > > > > >> > > > > > > > undone
> > > > > > > >> > > > > > > > > > the
> > > > > > > >> > > > > > > > > > > > > > changes
> > > > > > > >> > > > > > > > > > > > > > > I've made before.
> > > > > > > >> > > > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > > > https://www.dropbox.com/s/
> > > > > > > >> > > > > p3iknyku2rb3f3w/server.xml?dl=
> > > > > > > >> > > > > > 0
> > > > > > > >> > > > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > > > Twitter: @elderjava <
> > > > > > > >> > https://twitter.com/elderjava
> > > > > > > >> > > >
> > > > > > > >> > > > > > > > > > > > > > > Blog: http://eldermoraes.com
> > > > > > > >> > > > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > > > 2017-07-05 17:08 GMT-03:00
> Romain
> > > > > > > Manni-Bucau
> > > > > > > >> <
> > > > > > > >> > > > > > > > > > > rmannibucau@gmail.com
> > > > > > > >> > > > > > > > > > > > >:
> > > > > > > >> > > > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > > > > Gmail formatting doesnt help
> > much
> > > > but
> > > > > > > think
> > > > > > > >> it
> > > > > > > >> > > can
> > > > > > > >> > > > > miss
> > > > > > > >> > > > > > > > some
> > > > > > > >> > > > > > > > > > > > closing
> > > > > > > >> > > > > > > > > > > > > > > tags.
> > > > > > > >> > > > > > > > > > > > > > > > Autoformat it in an ide, it
> > should
> > > > > show
> > > > > > > it.
> > > > > > > >> > > > > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > > > > Le 5 juil. 2017 21:28, "Elder
> > > > Moraes"
> > > > > <
> > > > > > > >> > > > > > > > > elder.moraes@gmail.com>
> > > > > > > >> > > > > > > > > > a
> > > > > > > >> > > > > > > > > > > > > > écrit :
> > > > > > > >> > > > > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > > > > > Actually I can't... :-(
> > > > > > > >> > > > > > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > > > > > But if you could point me
> > where
> > > I
> > > > > > should
> > > > > > > >> > look,
> > > > > > > >> > > > > maybe
> > > > > > > >> > > > > > I
> > > > > > > >> > > > > > > > can
> > > > > > > >> > > > > > > > > > > figure
> > > > > > > >> > > > > > > > > > > > > it
> > > > > > > >> > > > > > > > > > > > > > > out.
> > > > > > > >> > > > > > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > > > > > Is that code that I've sent
> > here
> > > > > > > correct?
> > > > > > > >> No
> > > > > > > >> > > > issue?
> > > > > > > >> > > > > > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > > > > > Did I put the
> > > > > > > StaticMembershipInterceptor
> > > > > > > >> at
> > > > > > > >> > > > right
> > > > > > > >> > > > > > > place?
> > > > > > > >> > > > > > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > > > > > Twitter: @elderjava <
> > > > > > > >> > > > https://twitter.com/elderjava
> > > > > > > >> > > > > >
> > > > > > > >> > > > > > > > > > > > > > > > > Blog:
> http://eldermoraes.com
> > > > > > > >> > > > > > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > > > > > 2017-07-05 16:21 GMT-03:00
> > > Romain
> > > > > > > >> > Manni-Bucau <
> > > > > > > >> > > > > > > > > > > > > rmannibucau@gmail.com
> > > > > > > >> > > > > > > > > > > > > > >:
> > > > > > > >> > > > > > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > > > > > > Do you think you can do a
> > > setup
> > > > > > > without
> > > > > > > >> > > docker?
> > > > > > > >> > > > > > Would
> > > > > > > >> > > > > > > > be
> > > > > > > >> > > > > > > > > > > easier
> > > > > > > >> > > > > > > > > > > > > to
> > > > > > > >> > > > > > > > > > > > > > > > check
> > > > > > > >> > > > > > > > > > > > > > > > > > but sounds like a config
> > > issue.
> > > > > > > >> > > > > > > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > > > > > > Le 5 juil. 2017 21:18,
> > "Elder
> > > > > > Moraes"
> > > > > > > <
> > > > > > > >> > > > > > > > > > > elder.moraes@gmail.com>
> > > > > > > >> > > > > > > > > > > > a
> > > > > > > >> > > > > > > > > > > > > > > > écrit :
> > > > > > > >> > > > > > > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > > > > > > > If you are talking about
> > > > > removing
> > > > > > > the
> > > > > > > >> > > > > > McastService,
> > > > > > > >> > > > > > > > > I've
> > > > > > > >> > > > > > > > > > > > > already
> > > > > > > >> > > > > > > > > > > > > > > done
> > > > > > > >> > > > > > > > > > > > > > > > > and
> > > > > > > >> > > > > > > > > > > > > > > > > > > didn't work. The cluster
> > > still
> > > > > > works
> > > > > > > >> as a
> > > > > > > >> > > > > dynamic
> > > > > > > >> > > > > > > > one.
> > > > > > > >> > > > > > > > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > > > > > > > Twitter: @elderjava <
> > > > > > > >> > > > > > https://twitter.com/elderjava
> > > > > > > >> > > > > > > >
> > > > > > > >> > > > > > > > > > > > > > > > > > > Blog:
> > > http://eldermoraes.com
> > > > > > > >> > > > > > > > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > > > > > > > 2017-07-05 16:08
> GMT-03:00
> > > > > Romain
> > > > > > > >> > > > Manni-Bucau <
> > > > > > > >> > > > > > > > > > > > > > > rmannibucau@gmail.com
> > > > > > > >> > > > > > > > > > > > > > > > >:
> > > > > > > >> > > > > > > > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > > > > > > > > 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.moraes@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 <
> > > > > > > >> > > > > > > > > > > > > > > > rmannibucau@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.moraes@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://1
> > > > > > > >> > > > > > > > > > > > > > > > > > > > 72.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
> > > > > > > >> > > > > > > > > > > > > > > > > > > > > >
> > > > > > notifyLifecycleListenerOnFailu
> > > > > > > >> re:
> > > > > > > >> > > > 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 <
> > > > > > > >> > > > > > > > > > > > > > > > > > rmannibucau@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.moraes@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 <
> > > > > > > >> > > > > > > > > > > > > > > > > > > > rmannibucau@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.moraes@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
> > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > > >
> > > > > > > >> > > > > > > > > > >
> > > > > > > >> > > > > > > > > >
> > > > > > > >> > > > > > > > >
> > > > > > > >> > > > > > > >
> > > > > > > >> > > > > > >
> > > > > > > >> > > > > >
> > > > > > > >> > > > >
> > > > > > > >> > > >
> > > > > > > >> > >
> > > > > > > >> >
> > > > > > > >> --
> > > > > > > >> Sent from my iPhone
> > > > > > > >>
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > >   Andy Gumbrecht
> > > >   https://twitter.com/AndyGeeDe
> > > >   http://www.tomitribe.com
> > > >
> > >
> >
>

Re: Building a Static Discovery Cluster

Posted by Romain Manni-Bucau <rm...@gmail.com>.
If some people want to create some console tuto I would recommand
https://asciinema.org/ rather than plain video, rendering is customizable
(colors, font etc) and it is lighter than videos. It is really great for
setup/config/build... samples. (tip: ensure your shell has colors, makes it
more readable).


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-11 14:16 GMT+02:00 Jonathan Gallimore <jo...@gmail.com>
:

> Great idea. I was thinking the same thing. I quite fancy the idea of
> putting a few screencasts up on the site for various things - I personally
> quite like short videos over following text instructions. Personal
> preference of course.
>
> Jon
>
> On Tue, Jul 11, 2017 at 1:08 PM, Romain Manni-Bucau <rmannibucau@gmail.com
> >
> wrote:
>
> > We can also "just" add a video to the website to have it permanent in
> case
> > part of the world misses the webinar ;)
> >
> >
> > 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-11 13:42 GMT+02:00 Andy Gumbrecht <ag...@tomitribe.com>:
> >
> > > That's a really cool idea Ivan - How about proposing a 'Getting
> Started'
> > > webinar and inviting the user and dev list?
> > >
> > > Andy.
> > >
> > > On 11 July 2017 at 13:19, Ivan Junckes Filho <iv...@gmail.com>
> > > wrote:
> > >
> > > > Hi Elder, If you need a google hangout to get started on the website
> > let
> > > me
> > > > know.
> > > >
> > > > I have been touching it lately and will be happy to help.
> > > >
> > > >
> > > >
> > > > On Tue, Jul 11, 2017 at 3:30 AM, Romain Manni-Bucau <
> > > rmannibucau@gmail.com
> > > > >
> > > > wrote:
> > > >
> > > > > Hi Elder,
> > > > >
> > > > > site was not yet updated (any volonteer welcomed ;)) but you can do
> > it
> > > on
> > > > > github through a PR:
> > > > >
> > > > > 1. fork https://github.com/apache/tomee-site-generator
> > > > > 2. add a page in
> > > > > https://github.com/apache/tomee-site-generator/tree/
> > > > > master/src/main/jbake/content
> > > > > 3. add a link to this page
> > > > >
> > > > >
> > > > > 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-11 1:07 GMT+02:00 Daniel Cunha <da...@apache.org>:
> > > > >
> > > > > > Hi Elder,
> > > > > >
> > > > > > Look the section Contribute the this site.
> > > > > > http://tomee.apache.org/community/index.html
> > > > > >
> > > > > > Thank you.
> > > > > >
> > > > > > Daniel Cunha
> > > > > > https://twitter.com/dvlc_
> > > > > >
> > > > > > On Jul 10, 2017 6:59 PM, "Elder Moraes" <el...@gmail.com>
> > > > wrote:
> > > > > >
> > > > > > Hello David, Romain and others,
> > > > > >
> > > > > > I've just figured it out! Now I have a real static cluster, with
> > > > session
> > > > > > being shared between nodes and avoiding unexpected members to
> > joining
> > > > in.
> > > > > >
> > > > > > There are 3 key points:
> > > > > >
> > > > > >    1. channelStartOptions="3" (to avoid using multicast);
> > > > > >    2. Receiver and Member using the same port;
> > > > > >    3. Turn one of the members into a LocalMember (instead of
> > Member).
> > > > It
> > > > > >    will work as the Replication Listener and Receiver Server.
> > > > > >
> > > > > > By doing this you'll be able to see, after all the nodes are up
> and
> > > > > > running, the Group Channel showing confirmation of each node
> added.
> > > And
> > > > > > once you try to add another with unexpected IP, it is solemnly
> > > > ignored...
> > > > > > ;-)
> > > > > >
> > > > > > How can I turn it into some documentation for Tomee? I have all
> the
> > > > > > details...
> > > > > >
> > > > > >
> > > > > >
> > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > Blog: http://eldermoraes.com
> > > > > >
> > > > > >
> > > > > >
> > > > > > 2017-07-10 14:40 GMT-03:00 Elder Moraes <elder.moraes@gmail.com
> >:
> > > > > >
> > > > > > > Hey David!
> > > > > > >
> > > > > > > I've sent to the Tomcat list, but still didn't get any reply.
> > > > > > >
> > > > > > > Anyway I'm still trying to figure it out by myself and will be
> a
> > > > > pleasure
> > > > > > > to contribute with some docs once I do it.
> > > > > > >
> > > > > > >
> > > > > > > Tks!
> > > > > > >
> > > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > > Blog: http://eldermoraes.com
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > 2017-07-09 2:50 GMT-03:00 David Blevins <
> david.blevins@gmail.com
> > >:
> > > > > > >
> > > > > > >>  Hi Elder! just checking to see if you got the help you were
> > > looking
> > > > > > for.
> > > > > > >>
> > > > > > >>  When you get it figured out any new docs would be amazing.
> > > > > > >>
> > > > > > >> On Fri, Jul 7, 2017 at 9:57 AM Elder Moraes <
> > > elder.moraes@gmail.com
> > > > >
> > > > > > >> wrote:
> > > > > > >>
> > > > > > >> > Ok, will try them.
> > > > > > >> >
> > > > > > >> > Thanks!
> > > > > > >> >
> > > > > > >> >
> > > > > > >> > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > >> > Blog: http://eldermoraes.com
> > > > > > >> >
> > > > > > >> >
> > > > > > >> >
> > > > > > >> > 2017-07-06 18:02 GMT-03:00 Romain Manni-Bucau <
> > > > > rmannibucau@gmail.com
> > > > > > >:
> > > > > > >> >
> > > > > > >> > > outch, no more, didnt resetup a cluster since 2 years. But
> > if
> > > > you
> > > > > > >> push a
> > > > > > >> > > tomee-maven-plugin sample it would be quick to help.
> > > > > > >> > >
> > > > > > >> > > Side note: Tomcat list can also be more relevant since
> they
> > > > fully
> > > > > > own
> > > > > > >> > that
> > > > > > >> > > part.
> > > > > > >> > >
> > > > > > >> > >
> > > > > > >> > > 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-06 22:52 GMT+02:00 Elder Moraes <
> > > elder.moraes@gmail.com
> > > > >:
> > > > > > >> > >
> > > > > > >> > > > Do you have some working example? Don't need to be
> > > dockerized.
> > > > > > >> > > >
> > > > > > >> > > >
> > > > > > >> > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > >> > > > Blog: http://eldermoraes.com
> > > > > > >> > > >
> > > > > > >> > > >
> > > > > > >> > > > 2017-07-06 17:05 GMT-03:00 Romain Manni-Bucau <
> > > > > > >> rmannibucau@gmail.com>:
> > > > > > >> > > >
> > > > > > >> > > > > yes should help, you can
> > > > > > >> > > > > check org.apache.catalina.tribes.mem
> > > > > > >> bership.McastServiceImpl#start,
> > > > > > >> > > > > org.apache.catalina.tribes.group.ChannelCoordinator#
> > > > > > internalStart
> > > > > > >> > > > > and org.apache.catalina.tribes.
> > group.ChannelCoordinator#
> > > > > > sendMess
> > > > > > >> age
> > > > > > >> > to
> > > > > > >> > > > see
> > > > > > >> > > > > it in action. It basically disable multicast services
> > > > > (threads)
> > > > > > >> and
> > > > > > >> > > > switch
> > > > > > >> > > > > it to send messages
> > > > > > >> > > > >
> > > > > > >> > > > >
> > > > > > >> > > > > 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-06 20:53 GMT+02:00 Elder Moraes <
> > > > > elder.moraes@gmail.com
> > > > > > >:
> > > > > > >> > > > >
> > > > > > >> > > > > > The new logs are here:
> > > > > > >> > > > > >
> > > > > > >> > > > > > https://www.dropbox.com/s/
> > > 1bdz8vf9pw0h42v/catalina.2017-
> > > > > > >> > > 07-06.log?dl=0
> > > > > > >> > > > > >
> > > > > > >> > > > > > Yes, it shows everything! ;-)
> > > > > > >> > > > > >
> > > > > > >> > > > > > The last four lines shows the unexpected member
> being
> > > > added
> > > > > to
> > > > > > >> the
> > > > > > >> > > > > cluster.
> > > > > > >> > > > > >
> > > > > > >> > > > > > Don't seems like is a Docker problem, as the new
> > member
> > > is
> > > > > > >> allowed
> > > > > > >> > by
> > > > > > >> > > > the
> > > > > > >> > > > > > cluster.
> > > > > > >> > > > > >
> > > > > > >> > > > > > The multicast setup that I've mentioned before has
> > > nothing
> > > > > to
> > > > > > >> do?
> > > > > > >> > > > > >
> > > > > > >> > > > > >
> > > > > > >> > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > >> > > > > > Blog: http://eldermoraes.com
> > > > > > >> > > > > >
> > > > > > >> > > > > >
> > > > > > >> > > > > >
> > > > > > >> > > > > > 2017-07-06 15:42 GMT-03:00 Romain Manni-Bucau <
> > > > > > >> > rmannibucau@gmail.com
> > > > > > >> > > >:
> > > > > > >> > > > > >
> > > > > > >> > > > > > > What are the new logs? ;)
> > > > > > >> > > > > > >
> > > > > > >> > > > > > > Tomcat logs everything showing if connection
> works,
> > if
> > > > > > members
> > > > > > >> > are
> > > > > > >> > > > > > > accepted/connecting etc...
> > > > > > >> > > > > > >
> > > > > > >> > > > > > > From what i saw the docker setup is not matching
> the
> > > > conf.
> > > > > > >> Maybe
> > > > > > >> > > > start
> > > > > > >> > > > > by
> > > > > > >> > > > > > > making it running without docker before
> dockerizing
> > > it.
> > > > > > >> > > > > > >
> > > > > > >> > > > > > > Side note: maybe you want local member in your
> > cluster
> > > > > > >> (depends
> > > > > > >> > > your
> > > > > > >> > > > > goal
> > > > > > >> > > > > > > but was often done IIRC).
> > > > > > >> > > > > > >
> > > > > > >> > > > > > > Le 6 juil. 2017 19:50, "Elder Moraes" <
> > > > > > elder.moraes@gmail.com
> > > > > > >
> > > > > > >> a
> > > > > > >> > > > > écrit :
> > > > > > >> > > > > > >
> > > > > > >> > > > > > > > Thanks guys.
> > > > > > >> > > > > > > >
> > > > > > >> > > > > > > > I'm not using docker-compose.
> > > > > > >> > > > > > > >
> > > > > > >> > > > > > > > Actually I've just fixed that errors logged just
> > by
> > > > > > >> creating a
> > > > > > >> > > > > > > > docker-network for the cluster and defining a
> > static
> > > > IP
> > > > > > for
> > > > > > >> > each
> > > > > > >> > > > > > member.
> > > > > > >> > > > > > > So
> > > > > > >> > > > > > > > the cluster is working well at this point.
> > > > > > >> > > > > > > >
> > > > > > >> > > > > > > > But it is still working as a dynamic one. I've
> > found
> > > > > > >> somewhere
> > > > > > >> > > > that I
> > > > > > >> > > > > > > > should use channelStartOptions="3" to disable
> > > > multicast
> > > > > > and
> > > > > > >> > avoid
> > > > > > >> > > > > > > > unexpected members. But once I do it, the
> session
> > is
> > > > not
> > > > > > >> shared
> > > > > > >> > > > thru
> > > > > > >> > > > > > the
> > > > > > >> > > > > > > > cluster anymore.
> > > > > > >> > > > > > > >
> > > > > > >> > > > > > > > Any thoughts?
> > > > > > >> > > > > > > >
> > > > > > >> > > > > > > >
> > > > > > >> > > > > > > > Twitter: @elderjava <
> > https://twitter.com/elderjava>
> > > > > > >> > > > > > > > Blog: http://eldermoraes.com
> > > > > > >> > > > > > > >
> > > > > > >> > > > > > > >
> > > > > > >> > > > > > > > 2017-07-06 10:03 GMT-03:00 Thiago Veronezi <
> > > > > > >> > thiago@veronezi.org
> > > > > > >> > > >:
> > > > > > >> > > > > > > >
> > > > > > >> > > > > > > > > If you are using docker-compose, check the
> > > > depends_on
> > > > > > >> option.
> > > > > > >> > > It
> > > > > > >> > > > > will
> > > > > > >> > > > > > > > > guarantee you have your name available. It
> does
> > > not
> > > > > > >> guarantee
> > > > > > >> > > you
> > > > > > >> > > > > > have
> > > > > > >> > > > > > > > the
> > > > > > >> > > > > > > > > service fully up and running though. If you
> need
> > > > that
> > > > > > too,
> > > > > > >> > you
> > > > > > >> > > > will
> > > > > > >> > > > > > > need
> > > > > > >> > > > > > > > > the script to wait for the service behind that
> > > name
> > > > to
> > > > > > be
> > > > > > >> > > ready.
> > > > > > >> > > > > > > > >
> > > > > > >> > > > > > > > > []s,
> > > > > > >> > > > > > > > > Thiago.
> > > > > > >> > > > > > > > >
> > > > > > >> > > > > > > > >
> > > > > > >> > > > > > > > > On 5 Jul 2017 6:16 pm, "Romain Manni-Bucau" <
> > > > > > >> > > > rmannibucau@gmail.com
> > > > > > >> > > > > >
> > > > > > >> > > > > > > > wrote:
> > > > > > >> > > > > > > > >
> > > > > > >> > > > > > > > > > looks like docker dns is not working that
> well
> > > and
> > > > > > >> > > registration
> > > > > > >> > > > > > > fails -
> > > > > > >> > > > > > > > > or
> > > > > > >> > > > > > > > > > the startup is not ordered properly but
> result
> > > > lead
> > > > > to
> > > > > > >> the
> > > > > > >> > > > same.
> > > > > > >> > > > > > > Often
> > > > > > >> > > > > > > > > saw
> > > > > > >> > > > > > > > > > docker-compose having a small bash loop to
> > wait
> > > > for
> > > > > > the
> > > > > > >> > > > host/port
> > > > > > >> > > > > > > being
> > > > > > >> > > > > > > > > > accessible. Maybe that's what you need (yes
> it
> > > is
> > > > > > ugly)
> > > > > > >> > > > > > > > > >
> > > > > > >> > > > > > > > > >
> > > > > > >> > > > > > > > > > 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-06 0:13 GMT+02:00 Elder Moraes <
> > > > > > >> > > elder.moraes@gmail.com
> > > > > > >> > > > >:
> > > > > > >> > > > > > > > > >
> > > > > > >> > > > > > > > > > > I've got the log and put here:
> > > > > > >> > > > > > > > > > >
> > > > > > >> > > > > > > > > > > https://www.dropbox.com/s/yxt3
> > > > > > >> ym1ucv1hwb3/catalina.2017-
> > > > > > >> > > > > > > > 07-05.log?dl=0
> > > > > > >> > > > > > > > > > >
> > > > > > >> > > > > > > > > > >
> > > > > > >> > > > > > > > > > > Twitter: @elderjava <
> > > > > https://twitter.com/elderjava>
> > > > > > >> > > > > > > > > > > Blog: http://eldermoraes.com
> > > > > > >> > > > > > > > > > >
> > > > > > >> > > > > > > > > > >
> > > > > > >> > > > > > > > > > >
> > > > > > >> > > > > > > > > > > 2017-07-05 18:56 GMT-03:00 Romain
> > Manni-Bucau
> > > <
> > > > > > >> > > > > > > rmannibucau@gmail.com
> > > > > > >> > > > > > > > >:
> > > > > > >> > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > interesting, would be great to have
> debug
> > > log
> > > > of
> > > > > > >> that
> > > > > > >> > > > > > clustering
> > > > > > >> > > > > > > > part
> > > > > > >> > > > > > > > > > > > (something like
> > org.apache.catalina.tribes.
> > > > > level
> > > > > > =
> > > > > > >> > > FINE),
> > > > > > >> > > > > > think
> > > > > > >> > > > > > > > the
> > > > > > >> > > > > > > > > > > static
> > > > > > >> > > > > > > > > > > > members are actually excluded of the
> > cluster
> > > > > > reading
> > > > > > >> > this
> > > > > > >> > > > > error
> > > > > > >> > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > 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 23:53 GMT+02:00 Elder Moraes
> <
> > > > > > >> > > > > > elder.moraes@gmail.com
> > > > > > >> > > > > > > >:
> > > > > > >> > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > Hmm, why not the tcpfailuredetector
> as a
> > > > root
> > > > > > (/>)
> > > > > > >> > > > instead
> > > > > > >> > > > > of
> > > > > > >> > > > > > > > > > wrapping
> > > > > > >> > > > > > > > > > > > the
> > > > > > >> > > > > > > > > > > > > static membership one?
> > > > > > >> > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > Done e got this error:
> > > > > > >> > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > 05-Jul-2017 21:51:32.845 WARNING
> > > > > > >> > > > > > > > > > > > > [GroupChannel-Heartbeat[
> > > > Catalina-Channel]-1]
> > > > > > >> > > > > > > > > > > > > sun.reflect.NativeMethodAccessorImpl.
> > > invoke
> > > > > > >> Unable to
> > > > > > >> > > > > > perform
> > > > > > >> > > > > > > > > > > heartbeat
> > > > > > >> > > > > > > > > > > > on
> > > > > > >> > > > > > > > > > > > > the TcpFailureDetector.
> > > > > > >> > > > > > > > > > > > >  java.lang.
> > ArrayIndexOutOfBoundsException
> > > :
> > > > 0
> > > > > > >> > > > > > > > > > > > >     at
> > > > > > >> > > > > > > > > > > > > org.apache.catalina.tribes.
> > > > > > membership.MemberImpl.
> > > > > > >> > > > > > > > > > > > > hashCode(MemberImpl.java:570)
> > > > > > >> > > > > > > > > > > > >     at java.util.HashMap.hash(
> > > > > HashMap.java:338)
> > > > > > >> > > > > > > > > > > > >     at
> > > > > > >> > java.util.HashMap.containsKey(HashMap.java:595)
> > > > > > >> > > > > > > > > > > > >     at
> > > > > > >> > > > > > > > > > > > > org.apache.catalina.tribes.
> > > > > group.interceptors.
> > > > > > >> > > > > > > > TcpFailureDetector.
> > > > > > >> > > > > > > > > > > > > performBasicCheck(
> > > > > TcpFailureDetector.java:258)
> > > > > > >> > > > > > > > > > > > >     at
> > > > > > >> > > > > > > > > > > > > org.apache.catalina.tribes.
> > > > > group.interceptors.
> > > > > > >> > > > > > > > TcpFailureDetector.
> > > > > > >> > > > > > > > > > > > > checkMembers(
> > TcpFailureDetector.java:225)
> > > > > > >> > > > > > > > > > > > >     at
> > > > > > >> > > > > > > > > > > > > org.apache.catalina.tribes.
> > > > > group.interceptors.
> > > > > > >> > > > > > > > > > > > > TcpFailureDetector.heartbeat(
> > > > > > >> > > > TcpFailureDetector.java:218)
> > > > > > >> > > > > > > > > > > > >     at
> > > > > > >> > > > > > > > > > > > > org.apache.catalina.tribes.
> > > > > > >> > > group.ChannelInterceptorBase.
> > > > > > >> > > > > > > > heartbeat(
> > > > > > >> > > > > > > > > > > > > ChannelInterceptorBase.java:100)
> > > > > > >> > > > > > > > > > > > >     at
> > > > > > >> > > > > > > > > > > > > org.apache.catalina.tribes.
> > > > > > >> > > group.GroupChannel.heartbeat(
> > > > > > >> > > > > > > > > > > > > GroupChannel.java:161)
> > > > > > >> > > > > > > > > > > > >     at
> > > > > > >> > > > > > > > > > > > > org.apache.catalina.tribes.
> > > > > group.GroupChannel$
> > > > > > >> > > > > > > > HeartbeatThread.run(
> > > > > > >> > > > > > > > > > > > > GroupChannel.java:719)
> > > > > > >> > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > Twitter: @elderjava <
> > > > > > >> https://twitter.com/elderjava>
> > > > > > >> > > > > > > > > > > > > Blog: http://eldermoraes.com
> > > > > > >> > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > 2017-07-05 18:47 GMT-03:00 Romain
> > > > Manni-Bucau
> > > > > <
> > > > > > >> > > > > > > > > rmannibucau@gmail.com
> > > > > > >> > > > > > > > > > >:
> > > > > > >> > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > > Hmm, why not the tcpfailuredetector
> > as a
> > > > > root
> > > > > > >> (/>)
> > > > > > >> > > > > instead
> > > > > > >> > > > > > of
> > > > > > >> > > > > > > > > > > wrapping
> > > > > > >> > > > > > > > > > > > > the
> > > > > > >> > > > > > > > > > > > > > static membership one?
> > > > > > >> > > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > > Also did you manage to get debug log
> > of
> > > > > tomcat
> > > > > > >> > > cluster?
> > > > > > >> > > > > it
> > > > > > >> > > > > > > > helps
> > > > > > >> > > > > > > > > a
> > > > > > >> > > > > > > > > > > lot
> > > > > > >> > > > > > > > > > > > in
> > > > > > >> > > > > > > > > > > > > > general
> > > > > > >> > > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > > 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/r
> > > > > > >> mannibucau>
> > > > > > >> > |
> > > > > > >> > > > > > JavaEE
> > > > > > >> > > > > > > > > > Factory
> > > > > > >> > > > > > > > > > > > > > <https://javaeefactory-
> > > > > > rmannibucau.rhcloud.com>
> > > > > > >> > > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > > 2017-07-05 23:43 GMT+02:00 Elder
> > Moraes
> > > <
> > > > > > >> > > > > > > > elder.moraes@gmail.com
> > > > > > >> > > > > > > > > >:
> > > > > > >> > > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > > > Did it. No errors found.
> > > > > > >> > > > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > > > If you want to have a look at the
> > > > > > server.xml.
> > > > > > >> > Also
> > > > > > >> > > > I've
> > > > > > >> > > > > > > > undone
> > > > > > >> > > > > > > > > > the
> > > > > > >> > > > > > > > > > > > > > changes
> > > > > > >> > > > > > > > > > > > > > > I've made before.
> > > > > > >> > > > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > > > https://www.dropbox.com/s/
> > > > > > >> > > > > p3iknyku2rb3f3w/server.xml?dl=
> > > > > > >> > > > > > 0
> > > > > > >> > > > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > > > Twitter: @elderjava <
> > > > > > >> > https://twitter.com/elderjava
> > > > > > >> > > >
> > > > > > >> > > > > > > > > > > > > > > Blog: http://eldermoraes.com
> > > > > > >> > > > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > > > 2017-07-05 17:08 GMT-03:00 Romain
> > > > > > Manni-Bucau
> > > > > > >> <
> > > > > > >> > > > > > > > > > > rmannibucau@gmail.com
> > > > > > >> > > > > > > > > > > > >:
> > > > > > >> > > > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > > > > Gmail formatting doesnt help
> much
> > > but
> > > > > > think
> > > > > > >> it
> > > > > > >> > > can
> > > > > > >> > > > > miss
> > > > > > >> > > > > > > > some
> > > > > > >> > > > > > > > > > > > closing
> > > > > > >> > > > > > > > > > > > > > > tags.
> > > > > > >> > > > > > > > > > > > > > > > Autoformat it in an ide, it
> should
> > > > show
> > > > > > it.
> > > > > > >> > > > > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > > > > Le 5 juil. 2017 21:28, "Elder
> > > Moraes"
> > > > <
> > > > > > >> > > > > > > > > elder.moraes@gmail.com>
> > > > > > >> > > > > > > > > > a
> > > > > > >> > > > > > > > > > > > > > écrit :
> > > > > > >> > > > > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > > > > > Actually I can't... :-(
> > > > > > >> > > > > > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > > > > > But if you could point me
> where
> > I
> > > > > should
> > > > > > >> > look,
> > > > > > >> > > > > maybe
> > > > > > >> > > > > > I
> > > > > > >> > > > > > > > can
> > > > > > >> > > > > > > > > > > figure
> > > > > > >> > > > > > > > > > > > > it
> > > > > > >> > > > > > > > > > > > > > > out.
> > > > > > >> > > > > > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > > > > > Is that code that I've sent
> here
> > > > > > correct?
> > > > > > >> No
> > > > > > >> > > > issue?
> > > > > > >> > > > > > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > > > > > Did I put the
> > > > > > StaticMembershipInterceptor
> > > > > > >> at
> > > > > > >> > > > right
> > > > > > >> > > > > > > place?
> > > > > > >> > > > > > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > > > > > Twitter: @elderjava <
> > > > > > >> > > > https://twitter.com/elderjava
> > > > > > >> > > > > >
> > > > > > >> > > > > > > > > > > > > > > > > Blog: http://eldermoraes.com
> > > > > > >> > > > > > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > > > > > 2017-07-05 16:21 GMT-03:00
> > Romain
> > > > > > >> > Manni-Bucau <
> > > > > > >> > > > > > > > > > > > > rmannibucau@gmail.com
> > > > > > >> > > > > > > > > > > > > > >:
> > > > > > >> > > > > > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > > > > > > Do you think you can do a
> > setup
> > > > > > without
> > > > > > >> > > docker?
> > > > > > >> > > > > > Would
> > > > > > >> > > > > > > > be
> > > > > > >> > > > > > > > > > > easier
> > > > > > >> > > > > > > > > > > > > to
> > > > > > >> > > > > > > > > > > > > > > > check
> > > > > > >> > > > > > > > > > > > > > > > > > but sounds like a config
> > issue.
> > > > > > >> > > > > > > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > > > > > > Le 5 juil. 2017 21:18,
> "Elder
> > > > > Moraes"
> > > > > > <
> > > > > > >> > > > > > > > > > > elder.moraes@gmail.com>
> > > > > > >> > > > > > > > > > > > a
> > > > > > >> > > > > > > > > > > > > > > > écrit :
> > > > > > >> > > > > > > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > > > > > > > If you are talking about
> > > > removing
> > > > > > the
> > > > > > >> > > > > > McastService,
> > > > > > >> > > > > > > > > I've
> > > > > > >> > > > > > > > > > > > > already
> > > > > > >> > > > > > > > > > > > > > > done
> > > > > > >> > > > > > > > > > > > > > > > > and
> > > > > > >> > > > > > > > > > > > > > > > > > > didn't work. The cluster
> > still
> > > > > works
> > > > > > >> as a
> > > > > > >> > > > > dynamic
> > > > > > >> > > > > > > > one.
> > > > > > >> > > > > > > > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > > > > > > > Twitter: @elderjava <
> > > > > > >> > > > > > https://twitter.com/elderjava
> > > > > > >> > > > > > > >
> > > > > > >> > > > > > > > > > > > > > > > > > > Blog:
> > http://eldermoraes.com
> > > > > > >> > > > > > > > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > > > > > > > 2017-07-05 16:08 GMT-03:00
> > > > Romain
> > > > > > >> > > > Manni-Bucau <
> > > > > > >> > > > > > > > > > > > > > > rmannibucau@gmail.com
> > > > > > >> > > > > > > > > > > > > > > > >:
> > > > > > >> > > > > > > > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > > > > > > > > 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.moraes@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 <
> > > > > > >> > > > > > > > > > > > > > > > rmannibucau@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.moraes@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://1
> > > > > > >> > > > > > > > > > > > > > > > > > > > 72.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
> > > > > > >> > > > > > > > > > > > > > > > > > > > > >
> > > > > notifyLifecycleListenerOnFailu
> > > > > > >> re:
> > > > > > >> > > > 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 <
> > > > > > >> > > > > > > > > > > > > > > > > > rmannibucau@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.moraes@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 <
> > > > > > >> > > > > > > > > > > > > > > > > > > > rmannibucau@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.moraes@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
> > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > > >
> > > > > > >> > > > > > > > > > > >
> > > > > > >> > > > > > > > > > >
> > > > > > >> > > > > > > > > >
> > > > > > >> > > > > > > > >
> > > > > > >> > > > > > > >
> > > > > > >> > > > > > >
> > > > > > >> > > > > >
> > > > > > >> > > > >
> > > > > > >> > > >
> > > > > > >> > >
> > > > > > >> >
> > > > > > >> --
> > > > > > >> Sent from my iPhone
> > > > > > >>
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > >   Andy Gumbrecht
> > >   https://twitter.com/AndyGeeDe
> > >   http://www.tomitribe.com
> > >
> >
>

Re: Building a Static Discovery Cluster

Posted by Jonathan Gallimore <jo...@gmail.com>.
Great idea. I was thinking the same thing. I quite fancy the idea of
putting a few screencasts up on the site for various things - I personally
quite like short videos over following text instructions. Personal
preference of course.

Jon

On Tue, Jul 11, 2017 at 1:08 PM, Romain Manni-Bucau <rm...@gmail.com>
wrote:

> We can also "just" add a video to the website to have it permanent in case
> part of the world misses the webinar ;)
>
>
> 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-11 13:42 GMT+02:00 Andy Gumbrecht <ag...@tomitribe.com>:
>
> > That's a really cool idea Ivan - How about proposing a 'Getting Started'
> > webinar and inviting the user and dev list?
> >
> > Andy.
> >
> > On 11 July 2017 at 13:19, Ivan Junckes Filho <iv...@gmail.com>
> > wrote:
> >
> > > Hi Elder, If you need a google hangout to get started on the website
> let
> > me
> > > know.
> > >
> > > I have been touching it lately and will be happy to help.
> > >
> > >
> > >
> > > On Tue, Jul 11, 2017 at 3:30 AM, Romain Manni-Bucau <
> > rmannibucau@gmail.com
> > > >
> > > wrote:
> > >
> > > > Hi Elder,
> > > >
> > > > site was not yet updated (any volonteer welcomed ;)) but you can do
> it
> > on
> > > > github through a PR:
> > > >
> > > > 1. fork https://github.com/apache/tomee-site-generator
> > > > 2. add a page in
> > > > https://github.com/apache/tomee-site-generator/tree/
> > > > master/src/main/jbake/content
> > > > 3. add a link to this page
> > > >
> > > >
> > > > 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-11 1:07 GMT+02:00 Daniel Cunha <da...@apache.org>:
> > > >
> > > > > Hi Elder,
> > > > >
> > > > > Look the section Contribute the this site.
> > > > > http://tomee.apache.org/community/index.html
> > > > >
> > > > > Thank you.
> > > > >
> > > > > Daniel Cunha
> > > > > https://twitter.com/dvlc_
> > > > >
> > > > > On Jul 10, 2017 6:59 PM, "Elder Moraes" <el...@gmail.com>
> > > wrote:
> > > > >
> > > > > Hello David, Romain and others,
> > > > >
> > > > > I've just figured it out! Now I have a real static cluster, with
> > > session
> > > > > being shared between nodes and avoiding unexpected members to
> joining
> > > in.
> > > > >
> > > > > There are 3 key points:
> > > > >
> > > > >    1. channelStartOptions="3" (to avoid using multicast);
> > > > >    2. Receiver and Member using the same port;
> > > > >    3. Turn one of the members into a LocalMember (instead of
> Member).
> > > It
> > > > >    will work as the Replication Listener and Receiver Server.
> > > > >
> > > > > By doing this you'll be able to see, after all the nodes are up and
> > > > > running, the Group Channel showing confirmation of each node added.
> > And
> > > > > once you try to add another with unexpected IP, it is solemnly
> > > ignored...
> > > > > ;-)
> > > > >
> > > > > How can I turn it into some documentation for Tomee? I have all the
> > > > > details...
> > > > >
> > > > >
> > > > >
> > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > Blog: http://eldermoraes.com
> > > > >
> > > > >
> > > > >
> > > > > 2017-07-10 14:40 GMT-03:00 Elder Moraes <el...@gmail.com>:
> > > > >
> > > > > > Hey David!
> > > > > >
> > > > > > I've sent to the Tomcat list, but still didn't get any reply.
> > > > > >
> > > > > > Anyway I'm still trying to figure it out by myself and will be a
> > > > pleasure
> > > > > > to contribute with some docs once I do it.
> > > > > >
> > > > > >
> > > > > > Tks!
> > > > > >
> > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > Blog: http://eldermoraes.com
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > 2017-07-09 2:50 GMT-03:00 David Blevins <david.blevins@gmail.com
> >:
> > > > > >
> > > > > >>  Hi Elder! just checking to see if you got the help you were
> > looking
> > > > > for.
> > > > > >>
> > > > > >>  When you get it figured out any new docs would be amazing.
> > > > > >>
> > > > > >> On Fri, Jul 7, 2017 at 9:57 AM Elder Moraes <
> > elder.moraes@gmail.com
> > > >
> > > > > >> wrote:
> > > > > >>
> > > > > >> > Ok, will try them.
> > > > > >> >
> > > > > >> > Thanks!
> > > > > >> >
> > > > > >> >
> > > > > >> > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > >> > Blog: http://eldermoraes.com
> > > > > >> >
> > > > > >> >
> > > > > >> >
> > > > > >> > 2017-07-06 18:02 GMT-03:00 Romain Manni-Bucau <
> > > > rmannibucau@gmail.com
> > > > > >:
> > > > > >> >
> > > > > >> > > outch, no more, didnt resetup a cluster since 2 years. But
> if
> > > you
> > > > > >> push a
> > > > > >> > > tomee-maven-plugin sample it would be quick to help.
> > > > > >> > >
> > > > > >> > > Side note: Tomcat list can also be more relevant since they
> > > fully
> > > > > own
> > > > > >> > that
> > > > > >> > > part.
> > > > > >> > >
> > > > > >> > >
> > > > > >> > > 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-06 22:52 GMT+02:00 Elder Moraes <
> > elder.moraes@gmail.com
> > > >:
> > > > > >> > >
> > > > > >> > > > Do you have some working example? Don't need to be
> > dockerized.
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > >> > > > Blog: http://eldermoraes.com
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > > > 2017-07-06 17:05 GMT-03:00 Romain Manni-Bucau <
> > > > > >> rmannibucau@gmail.com>:
> > > > > >> > > >
> > > > > >> > > > > yes should help, you can
> > > > > >> > > > > check org.apache.catalina.tribes.mem
> > > > > >> bership.McastServiceImpl#start,
> > > > > >> > > > > org.apache.catalina.tribes.group.ChannelCoordinator#
> > > > > internalStart
> > > > > >> > > > > and org.apache.catalina.tribes.
> group.ChannelCoordinator#
> > > > > sendMess
> > > > > >> age
> > > > > >> > to
> > > > > >> > > > see
> > > > > >> > > > > it in action. It basically disable multicast services
> > > > (threads)
> > > > > >> and
> > > > > >> > > > switch
> > > > > >> > > > > it to send messages
> > > > > >> > > > >
> > > > > >> > > > >
> > > > > >> > > > > 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-06 20:53 GMT+02:00 Elder Moraes <
> > > > elder.moraes@gmail.com
> > > > > >:
> > > > > >> > > > >
> > > > > >> > > > > > The new logs are here:
> > > > > >> > > > > >
> > > > > >> > > > > > https://www.dropbox.com/s/
> > 1bdz8vf9pw0h42v/catalina.2017-
> > > > > >> > > 07-06.log?dl=0
> > > > > >> > > > > >
> > > > > >> > > > > > Yes, it shows everything! ;-)
> > > > > >> > > > > >
> > > > > >> > > > > > The last four lines shows the unexpected member being
> > > added
> > > > to
> > > > > >> the
> > > > > >> > > > > cluster.
> > > > > >> > > > > >
> > > > > >> > > > > > Don't seems like is a Docker problem, as the new
> member
> > is
> > > > > >> allowed
> > > > > >> > by
> > > > > >> > > > the
> > > > > >> > > > > > cluster.
> > > > > >> > > > > >
> > > > > >> > > > > > The multicast setup that I've mentioned before has
> > nothing
> > > > to
> > > > > >> do?
> > > > > >> > > > > >
> > > > > >> > > > > >
> > > > > >> > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > >> > > > > > Blog: http://eldermoraes.com
> > > > > >> > > > > >
> > > > > >> > > > > >
> > > > > >> > > > > >
> > > > > >> > > > > > 2017-07-06 15:42 GMT-03:00 Romain Manni-Bucau <
> > > > > >> > rmannibucau@gmail.com
> > > > > >> > > >:
> > > > > >> > > > > >
> > > > > >> > > > > > > What are the new logs? ;)
> > > > > >> > > > > > >
> > > > > >> > > > > > > Tomcat logs everything showing if connection works,
> if
> > > > > members
> > > > > >> > are
> > > > > >> > > > > > > accepted/connecting etc...
> > > > > >> > > > > > >
> > > > > >> > > > > > > From what i saw the docker setup is not matching the
> > > conf.
> > > > > >> Maybe
> > > > > >> > > > start
> > > > > >> > > > > by
> > > > > >> > > > > > > making it running without docker before dockerizing
> > it.
> > > > > >> > > > > > >
> > > > > >> > > > > > > Side note: maybe you want local member in your
> cluster
> > > > > >> (depends
> > > > > >> > > your
> > > > > >> > > > > goal
> > > > > >> > > > > > > but was often done IIRC).
> > > > > >> > > > > > >
> > > > > >> > > > > > > Le 6 juil. 2017 19:50, "Elder Moraes" <
> > > > > elder.moraes@gmail.com
> > > > > >
> > > > > >> a
> > > > > >> > > > > écrit :
> > > > > >> > > > > > >
> > > > > >> > > > > > > > Thanks guys.
> > > > > >> > > > > > > >
> > > > > >> > > > > > > > I'm not using docker-compose.
> > > > > >> > > > > > > >
> > > > > >> > > > > > > > Actually I've just fixed that errors logged just
> by
> > > > > >> creating a
> > > > > >> > > > > > > > docker-network for the cluster and defining a
> static
> > > IP
> > > > > for
> > > > > >> > each
> > > > > >> > > > > > member.
> > > > > >> > > > > > > So
> > > > > >> > > > > > > > the cluster is working well at this point.
> > > > > >> > > > > > > >
> > > > > >> > > > > > > > But it is still working as a dynamic one. I've
> found
> > > > > >> somewhere
> > > > > >> > > > that I
> > > > > >> > > > > > > > should use channelStartOptions="3" to disable
> > > multicast
> > > > > and
> > > > > >> > avoid
> > > > > >> > > > > > > > unexpected members. But once I do it, the session
> is
> > > not
> > > > > >> shared
> > > > > >> > > > thru
> > > > > >> > > > > > the
> > > > > >> > > > > > > > cluster anymore.
> > > > > >> > > > > > > >
> > > > > >> > > > > > > > Any thoughts?
> > > > > >> > > > > > > >
> > > > > >> > > > > > > >
> > > > > >> > > > > > > > Twitter: @elderjava <
> https://twitter.com/elderjava>
> > > > > >> > > > > > > > Blog: http://eldermoraes.com
> > > > > >> > > > > > > >
> > > > > >> > > > > > > >
> > > > > >> > > > > > > > 2017-07-06 10:03 GMT-03:00 Thiago Veronezi <
> > > > > >> > thiago@veronezi.org
> > > > > >> > > >:
> > > > > >> > > > > > > >
> > > > > >> > > > > > > > > If you are using docker-compose, check the
> > > depends_on
> > > > > >> option.
> > > > > >> > > It
> > > > > >> > > > > will
> > > > > >> > > > > > > > > guarantee you have your name available. It does
> > not
> > > > > >> guarantee
> > > > > >> > > you
> > > > > >> > > > > > have
> > > > > >> > > > > > > > the
> > > > > >> > > > > > > > > service fully up and running though. If you need
> > > that
> > > > > too,
> > > > > >> > you
> > > > > >> > > > will
> > > > > >> > > > > > > need
> > > > > >> > > > > > > > > the script to wait for the service behind that
> > name
> > > to
> > > > > be
> > > > > >> > > ready.
> > > > > >> > > > > > > > >
> > > > > >> > > > > > > > > []s,
> > > > > >> > > > > > > > > Thiago.
> > > > > >> > > > > > > > >
> > > > > >> > > > > > > > >
> > > > > >> > > > > > > > > On 5 Jul 2017 6:16 pm, "Romain Manni-Bucau" <
> > > > > >> > > > rmannibucau@gmail.com
> > > > > >> > > > > >
> > > > > >> > > > > > > > wrote:
> > > > > >> > > > > > > > >
> > > > > >> > > > > > > > > > looks like docker dns is not working that well
> > and
> > > > > >> > > registration
> > > > > >> > > > > > > fails -
> > > > > >> > > > > > > > > or
> > > > > >> > > > > > > > > > the startup is not ordered properly but result
> > > lead
> > > > to
> > > > > >> the
> > > > > >> > > > same.
> > > > > >> > > > > > > Often
> > > > > >> > > > > > > > > saw
> > > > > >> > > > > > > > > > docker-compose having a small bash loop to
> wait
> > > for
> > > > > the
> > > > > >> > > > host/port
> > > > > >> > > > > > > being
> > > > > >> > > > > > > > > > accessible. Maybe that's what you need (yes it
> > is
> > > > > ugly)
> > > > > >> > > > > > > > > >
> > > > > >> > > > > > > > > >
> > > > > >> > > > > > > > > > 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-06 0:13 GMT+02:00 Elder Moraes <
> > > > > >> > > elder.moraes@gmail.com
> > > > > >> > > > >:
> > > > > >> > > > > > > > > >
> > > > > >> > > > > > > > > > > I've got the log and put here:
> > > > > >> > > > > > > > > > >
> > > > > >> > > > > > > > > > > https://www.dropbox.com/s/yxt3
> > > > > >> ym1ucv1hwb3/catalina.2017-
> > > > > >> > > > > > > > 07-05.log?dl=0
> > > > > >> > > > > > > > > > >
> > > > > >> > > > > > > > > > >
> > > > > >> > > > > > > > > > > Twitter: @elderjava <
> > > > https://twitter.com/elderjava>
> > > > > >> > > > > > > > > > > Blog: http://eldermoraes.com
> > > > > >> > > > > > > > > > >
> > > > > >> > > > > > > > > > >
> > > > > >> > > > > > > > > > >
> > > > > >> > > > > > > > > > > 2017-07-05 18:56 GMT-03:00 Romain
> Manni-Bucau
> > <
> > > > > >> > > > > > > rmannibucau@gmail.com
> > > > > >> > > > > > > > >:
> > > > > >> > > > > > > > > > >
> > > > > >> > > > > > > > > > > > interesting, would be great to have debug
> > log
> > > of
> > > > > >> that
> > > > > >> > > > > > clustering
> > > > > >> > > > > > > > part
> > > > > >> > > > > > > > > > > > (something like
> org.apache.catalina.tribes.
> > > > level
> > > > > =
> > > > > >> > > FINE),
> > > > > >> > > > > > think
> > > > > >> > > > > > > > the
> > > > > >> > > > > > > > > > > static
> > > > > >> > > > > > > > > > > > members are actually excluded of the
> cluster
> > > > > reading
> > > > > >> > this
> > > > > >> > > > > error
> > > > > >> > > > > > > > > > > >
> > > > > >> > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > 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 23:53 GMT+02:00 Elder Moraes <
> > > > > >> > > > > > elder.moraes@gmail.com
> > > > > >> > > > > > > >:
> > > > > >> > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > Hmm, why not the tcpfailuredetector as a
> > > root
> > > > > (/>)
> > > > > >> > > > instead
> > > > > >> > > > > of
> > > > > >> > > > > > > > > > wrapping
> > > > > >> > > > > > > > > > > > the
> > > > > >> > > > > > > > > > > > > static membership one?
> > > > > >> > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > Done e got this error:
> > > > > >> > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > 05-Jul-2017 21:51:32.845 WARNING
> > > > > >> > > > > > > > > > > > > [GroupChannel-Heartbeat[
> > > Catalina-Channel]-1]
> > > > > >> > > > > > > > > > > > > sun.reflect.NativeMethodAccessorImpl.
> > invoke
> > > > > >> Unable to
> > > > > >> > > > > > perform
> > > > > >> > > > > > > > > > > heartbeat
> > > > > >> > > > > > > > > > > > on
> > > > > >> > > > > > > > > > > > > the TcpFailureDetector.
> > > > > >> > > > > > > > > > > > >  java.lang.
> ArrayIndexOutOfBoundsException
> > :
> > > 0
> > > > > >> > > > > > > > > > > > >     at
> > > > > >> > > > > > > > > > > > > org.apache.catalina.tribes.
> > > > > membership.MemberImpl.
> > > > > >> > > > > > > > > > > > > hashCode(MemberImpl.java:570)
> > > > > >> > > > > > > > > > > > >     at java.util.HashMap.hash(
> > > > HashMap.java:338)
> > > > > >> > > > > > > > > > > > >     at
> > > > > >> > java.util.HashMap.containsKey(HashMap.java:595)
> > > > > >> > > > > > > > > > > > >     at
> > > > > >> > > > > > > > > > > > > org.apache.catalina.tribes.
> > > > group.interceptors.
> > > > > >> > > > > > > > TcpFailureDetector.
> > > > > >> > > > > > > > > > > > > performBasicCheck(
> > > > TcpFailureDetector.java:258)
> > > > > >> > > > > > > > > > > > >     at
> > > > > >> > > > > > > > > > > > > org.apache.catalina.tribes.
> > > > group.interceptors.
> > > > > >> > > > > > > > TcpFailureDetector.
> > > > > >> > > > > > > > > > > > > checkMembers(
> TcpFailureDetector.java:225)
> > > > > >> > > > > > > > > > > > >     at
> > > > > >> > > > > > > > > > > > > org.apache.catalina.tribes.
> > > > group.interceptors.
> > > > > >> > > > > > > > > > > > > TcpFailureDetector.heartbeat(
> > > > > >> > > > TcpFailureDetector.java:218)
> > > > > >> > > > > > > > > > > > >     at
> > > > > >> > > > > > > > > > > > > org.apache.catalina.tribes.
> > > > > >> > > group.ChannelInterceptorBase.
> > > > > >> > > > > > > > heartbeat(
> > > > > >> > > > > > > > > > > > > ChannelInterceptorBase.java:100)
> > > > > >> > > > > > > > > > > > >     at
> > > > > >> > > > > > > > > > > > > org.apache.catalina.tribes.
> > > > > >> > > group.GroupChannel.heartbeat(
> > > > > >> > > > > > > > > > > > > GroupChannel.java:161)
> > > > > >> > > > > > > > > > > > >     at
> > > > > >> > > > > > > > > > > > > org.apache.catalina.tribes.
> > > > group.GroupChannel$
> > > > > >> > > > > > > > HeartbeatThread.run(
> > > > > >> > > > > > > > > > > > > GroupChannel.java:719)
> > > > > >> > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > Twitter: @elderjava <
> > > > > >> https://twitter.com/elderjava>
> > > > > >> > > > > > > > > > > > > Blog: http://eldermoraes.com
> > > > > >> > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > 2017-07-05 18:47 GMT-03:00 Romain
> > > Manni-Bucau
> > > > <
> > > > > >> > > > > > > > > rmannibucau@gmail.com
> > > > > >> > > > > > > > > > >:
> > > > > >> > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > > Hmm, why not the tcpfailuredetector
> as a
> > > > root
> > > > > >> (/>)
> > > > > >> > > > > instead
> > > > > >> > > > > > of
> > > > > >> > > > > > > > > > > wrapping
> > > > > >> > > > > > > > > > > > > the
> > > > > >> > > > > > > > > > > > > > static membership one?
> > > > > >> > > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > > Also did you manage to get debug log
> of
> > > > tomcat
> > > > > >> > > cluster?
> > > > > >> > > > > it
> > > > > >> > > > > > > > helps
> > > > > >> > > > > > > > > a
> > > > > >> > > > > > > > > > > lot
> > > > > >> > > > > > > > > > > > in
> > > > > >> > > > > > > > > > > > > > general
> > > > > >> > > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > > 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/r
> > > > > >> mannibucau>
> > > > > >> > |
> > > > > >> > > > > > JavaEE
> > > > > >> > > > > > > > > > Factory
> > > > > >> > > > > > > > > > > > > > <https://javaeefactory-
> > > > > rmannibucau.rhcloud.com>
> > > > > >> > > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > > 2017-07-05 23:43 GMT+02:00 Elder
> Moraes
> > <
> > > > > >> > > > > > > > elder.moraes@gmail.com
> > > > > >> > > > > > > > > >:
> > > > > >> > > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > > > Did it. No errors found.
> > > > > >> > > > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > > > If you want to have a look at the
> > > > > server.xml.
> > > > > >> > Also
> > > > > >> > > > I've
> > > > > >> > > > > > > > undone
> > > > > >> > > > > > > > > > the
> > > > > >> > > > > > > > > > > > > > changes
> > > > > >> > > > > > > > > > > > > > > I've made before.
> > > > > >> > > > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > > > https://www.dropbox.com/s/
> > > > > >> > > > > p3iknyku2rb3f3w/server.xml?dl=
> > > > > >> > > > > > 0
> > > > > >> > > > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > > > Twitter: @elderjava <
> > > > > >> > https://twitter.com/elderjava
> > > > > >> > > >
> > > > > >> > > > > > > > > > > > > > > Blog: http://eldermoraes.com
> > > > > >> > > > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > > > 2017-07-05 17:08 GMT-03:00 Romain
> > > > > Manni-Bucau
> > > > > >> <
> > > > > >> > > > > > > > > > > rmannibucau@gmail.com
> > > > > >> > > > > > > > > > > > >:
> > > > > >> > > > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > > > > Gmail formatting doesnt help much
> > but
> > > > > think
> > > > > >> it
> > > > > >> > > can
> > > > > >> > > > > miss
> > > > > >> > > > > > > > some
> > > > > >> > > > > > > > > > > > closing
> > > > > >> > > > > > > > > > > > > > > tags.
> > > > > >> > > > > > > > > > > > > > > > Autoformat it in an ide, it should
> > > show
> > > > > it.
> > > > > >> > > > > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > > > > Le 5 juil. 2017 21:28, "Elder
> > Moraes"
> > > <
> > > > > >> > > > > > > > > elder.moraes@gmail.com>
> > > > > >> > > > > > > > > > a
> > > > > >> > > > > > > > > > > > > > écrit :
> > > > > >> > > > > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > > > > > Actually I can't... :-(
> > > > > >> > > > > > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > > > > > But if you could point me where
> I
> > > > should
> > > > > >> > look,
> > > > > >> > > > > maybe
> > > > > >> > > > > > I
> > > > > >> > > > > > > > can
> > > > > >> > > > > > > > > > > figure
> > > > > >> > > > > > > > > > > > > it
> > > > > >> > > > > > > > > > > > > > > out.
> > > > > >> > > > > > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > > > > > Is that code that I've sent here
> > > > > correct?
> > > > > >> No
> > > > > >> > > > issue?
> > > > > >> > > > > > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > > > > > Did I put the
> > > > > StaticMembershipInterceptor
> > > > > >> at
> > > > > >> > > > right
> > > > > >> > > > > > > place?
> > > > > >> > > > > > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > > > > > Twitter: @elderjava <
> > > > > >> > > > https://twitter.com/elderjava
> > > > > >> > > > > >
> > > > > >> > > > > > > > > > > > > > > > > Blog: http://eldermoraes.com
> > > > > >> > > > > > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > > > > > 2017-07-05 16:21 GMT-03:00
> Romain
> > > > > >> > Manni-Bucau <
> > > > > >> > > > > > > > > > > > > rmannibucau@gmail.com
> > > > > >> > > > > > > > > > > > > > >:
> > > > > >> > > > > > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > > > > > > Do you think you can do a
> setup
> > > > > without
> > > > > >> > > docker?
> > > > > >> > > > > > Would
> > > > > >> > > > > > > > be
> > > > > >> > > > > > > > > > > easier
> > > > > >> > > > > > > > > > > > > to
> > > > > >> > > > > > > > > > > > > > > > check
> > > > > >> > > > > > > > > > > > > > > > > > but sounds like a config
> issue.
> > > > > >> > > > > > > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > > > > > > Le 5 juil. 2017 21:18, "Elder
> > > > Moraes"
> > > > > <
> > > > > >> > > > > > > > > > > elder.moraes@gmail.com>
> > > > > >> > > > > > > > > > > > a
> > > > > >> > > > > > > > > > > > > > > > écrit :
> > > > > >> > > > > > > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > > > > > > > If you are talking about
> > > removing
> > > > > the
> > > > > >> > > > > > McastService,
> > > > > >> > > > > > > > > I've
> > > > > >> > > > > > > > > > > > > already
> > > > > >> > > > > > > > > > > > > > > done
> > > > > >> > > > > > > > > > > > > > > > > and
> > > > > >> > > > > > > > > > > > > > > > > > > didn't work. The cluster
> still
> > > > works
> > > > > >> as a
> > > > > >> > > > > dynamic
> > > > > >> > > > > > > > one.
> > > > > >> > > > > > > > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > > > > > > > Twitter: @elderjava <
> > > > > >> > > > > > https://twitter.com/elderjava
> > > > > >> > > > > > > >
> > > > > >> > > > > > > > > > > > > > > > > > > Blog:
> http://eldermoraes.com
> > > > > >> > > > > > > > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > > > > > > > 2017-07-05 16:08 GMT-03:00
> > > Romain
> > > > > >> > > > Manni-Bucau <
> > > > > >> > > > > > > > > > > > > > > rmannibucau@gmail.com
> > > > > >> > > > > > > > > > > > > > > > >:
> > > > > >> > > > > > > > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > > > > > > > > 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.moraes@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 <
> > > > > >> > > > > > > > > > > > > > > > rmannibucau@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.moraes@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://1
> > > > > >> > > > > > > > > > > > > > > > > > > > 72.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
> > > > > >> > > > > > > > > > > > > > > > > > > > > >
> > > > notifyLifecycleListenerOnFailu
> > > > > >> re:
> > > > > >> > > > 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 <
> > > > > >> > > > > > > > > > > > > > > > > > rmannibucau@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.moraes@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 <
> > > > > >> > > > > > > > > > > > > > > > > > > > rmannibucau@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.moraes@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
> > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > > >
> > > > > >> > > > > > > > > > > >
> > > > > >> > > > > > > > > > >
> > > > > >> > > > > > > > > >
> > > > > >> > > > > > > > >
> > > > > >> > > > > > > >
> > > > > >> > > > > > >
> > > > > >> > > > > >
> > > > > >> > > > >
> > > > > >> > > >
> > > > > >> > >
> > > > > >> >
> > > > > >> --
> > > > > >> Sent from my iPhone
> > > > > >>
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> >
> >
> > --
> >   Andy Gumbrecht
> >   https://twitter.com/AndyGeeDe
> >   http://www.tomitribe.com
> >
>

Re: Building a Static Discovery Cluster

Posted by Romain Manni-Bucau <rm...@gmail.com>.
We can also "just" add a video to the website to have it permanent in case
part of the world misses the webinar ;)


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-11 13:42 GMT+02:00 Andy Gumbrecht <ag...@tomitribe.com>:

> That's a really cool idea Ivan - How about proposing a 'Getting Started'
> webinar and inviting the user and dev list?
>
> Andy.
>
> On 11 July 2017 at 13:19, Ivan Junckes Filho <iv...@gmail.com>
> wrote:
>
> > Hi Elder, If you need a google hangout to get started on the website let
> me
> > know.
> >
> > I have been touching it lately and will be happy to help.
> >
> >
> >
> > On Tue, Jul 11, 2017 at 3:30 AM, Romain Manni-Bucau <
> rmannibucau@gmail.com
> > >
> > wrote:
> >
> > > Hi Elder,
> > >
> > > site was not yet updated (any volonteer welcomed ;)) but you can do it
> on
> > > github through a PR:
> > >
> > > 1. fork https://github.com/apache/tomee-site-generator
> > > 2. add a page in
> > > https://github.com/apache/tomee-site-generator/tree/
> > > master/src/main/jbake/content
> > > 3. add a link to this page
> > >
> > >
> > > 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-11 1:07 GMT+02:00 Daniel Cunha <da...@apache.org>:
> > >
> > > > Hi Elder,
> > > >
> > > > Look the section Contribute the this site.
> > > > http://tomee.apache.org/community/index.html
> > > >
> > > > Thank you.
> > > >
> > > > Daniel Cunha
> > > > https://twitter.com/dvlc_
> > > >
> > > > On Jul 10, 2017 6:59 PM, "Elder Moraes" <el...@gmail.com>
> > wrote:
> > > >
> > > > Hello David, Romain and others,
> > > >
> > > > I've just figured it out! Now I have a real static cluster, with
> > session
> > > > being shared between nodes and avoiding unexpected members to joining
> > in.
> > > >
> > > > There are 3 key points:
> > > >
> > > >    1. channelStartOptions="3" (to avoid using multicast);
> > > >    2. Receiver and Member using the same port;
> > > >    3. Turn one of the members into a LocalMember (instead of Member).
> > It
> > > >    will work as the Replication Listener and Receiver Server.
> > > >
> > > > By doing this you'll be able to see, after all the nodes are up and
> > > > running, the Group Channel showing confirmation of each node added.
> And
> > > > once you try to add another with unexpected IP, it is solemnly
> > ignored...
> > > > ;-)
> > > >
> > > > How can I turn it into some documentation for Tomee? I have all the
> > > > details...
> > > >
> > > >
> > > >
> > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > Blog: http://eldermoraes.com
> > > >
> > > >
> > > >
> > > > 2017-07-10 14:40 GMT-03:00 Elder Moraes <el...@gmail.com>:
> > > >
> > > > > Hey David!
> > > > >
> > > > > I've sent to the Tomcat list, but still didn't get any reply.
> > > > >
> > > > > Anyway I'm still trying to figure it out by myself and will be a
> > > pleasure
> > > > > to contribute with some docs once I do it.
> > > > >
> > > > >
> > > > > Tks!
> > > > >
> > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > Blog: http://eldermoraes.com
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > 2017-07-09 2:50 GMT-03:00 David Blevins <da...@gmail.com>:
> > > > >
> > > > >>  Hi Elder! just checking to see if you got the help you were
> looking
> > > > for.
> > > > >>
> > > > >>  When you get it figured out any new docs would be amazing.
> > > > >>
> > > > >> On Fri, Jul 7, 2017 at 9:57 AM Elder Moraes <
> elder.moraes@gmail.com
> > >
> > > > >> wrote:
> > > > >>
> > > > >> > Ok, will try them.
> > > > >> >
> > > > >> > Thanks!
> > > > >> >
> > > > >> >
> > > > >> > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > >> > Blog: http://eldermoraes.com
> > > > >> >
> > > > >> >
> > > > >> >
> > > > >> > 2017-07-06 18:02 GMT-03:00 Romain Manni-Bucau <
> > > rmannibucau@gmail.com
> > > > >:
> > > > >> >
> > > > >> > > outch, no more, didnt resetup a cluster since 2 years. But if
> > you
> > > > >> push a
> > > > >> > > tomee-maven-plugin sample it would be quick to help.
> > > > >> > >
> > > > >> > > Side note: Tomcat list can also be more relevant since they
> > fully
> > > > own
> > > > >> > that
> > > > >> > > part.
> > > > >> > >
> > > > >> > >
> > > > >> > > 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-06 22:52 GMT+02:00 Elder Moraes <
> elder.moraes@gmail.com
> > >:
> > > > >> > >
> > > > >> > > > Do you have some working example? Don't need to be
> dockerized.
> > > > >> > > >
> > > > >> > > >
> > > > >> > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > >> > > > Blog: http://eldermoraes.com
> > > > >> > > >
> > > > >> > > >
> > > > >> > > > 2017-07-06 17:05 GMT-03:00 Romain Manni-Bucau <
> > > > >> rmannibucau@gmail.com>:
> > > > >> > > >
> > > > >> > > > > yes should help, you can
> > > > >> > > > > check org.apache.catalina.tribes.mem
> > > > >> bership.McastServiceImpl#start,
> > > > >> > > > > org.apache.catalina.tribes.group.ChannelCoordinator#
> > > > internalStart
> > > > >> > > > > and org.apache.catalina.tribes.group.ChannelCoordinator#
> > > > sendMess
> > > > >> age
> > > > >> > to
> > > > >> > > > see
> > > > >> > > > > it in action. It basically disable multicast services
> > > (threads)
> > > > >> and
> > > > >> > > > switch
> > > > >> > > > > it to send messages
> > > > >> > > > >
> > > > >> > > > >
> > > > >> > > > > 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-06 20:53 GMT+02:00 Elder Moraes <
> > > elder.moraes@gmail.com
> > > > >:
> > > > >> > > > >
> > > > >> > > > > > The new logs are here:
> > > > >> > > > > >
> > > > >> > > > > > https://www.dropbox.com/s/
> 1bdz8vf9pw0h42v/catalina.2017-
> > > > >> > > 07-06.log?dl=0
> > > > >> > > > > >
> > > > >> > > > > > Yes, it shows everything! ;-)
> > > > >> > > > > >
> > > > >> > > > > > The last four lines shows the unexpected member being
> > added
> > > to
> > > > >> the
> > > > >> > > > > cluster.
> > > > >> > > > > >
> > > > >> > > > > > Don't seems like is a Docker problem, as the new member
> is
> > > > >> allowed
> > > > >> > by
> > > > >> > > > the
> > > > >> > > > > > cluster.
> > > > >> > > > > >
> > > > >> > > > > > The multicast setup that I've mentioned before has
> nothing
> > > to
> > > > >> do?
> > > > >> > > > > >
> > > > >> > > > > >
> > > > >> > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > >> > > > > > Blog: http://eldermoraes.com
> > > > >> > > > > >
> > > > >> > > > > >
> > > > >> > > > > >
> > > > >> > > > > > 2017-07-06 15:42 GMT-03:00 Romain Manni-Bucau <
> > > > >> > rmannibucau@gmail.com
> > > > >> > > >:
> > > > >> > > > > >
> > > > >> > > > > > > What are the new logs? ;)
> > > > >> > > > > > >
> > > > >> > > > > > > Tomcat logs everything showing if connection works, if
> > > > members
> > > > >> > are
> > > > >> > > > > > > accepted/connecting etc...
> > > > >> > > > > > >
> > > > >> > > > > > > From what i saw the docker setup is not matching the
> > conf.
> > > > >> Maybe
> > > > >> > > > start
> > > > >> > > > > by
> > > > >> > > > > > > making it running without docker before dockerizing
> it.
> > > > >> > > > > > >
> > > > >> > > > > > > Side note: maybe you want local member in your cluster
> > > > >> (depends
> > > > >> > > your
> > > > >> > > > > goal
> > > > >> > > > > > > but was often done IIRC).
> > > > >> > > > > > >
> > > > >> > > > > > > Le 6 juil. 2017 19:50, "Elder Moraes" <
> > > > elder.moraes@gmail.com
> > > > >
> > > > >> a
> > > > >> > > > > écrit :
> > > > >> > > > > > >
> > > > >> > > > > > > > Thanks guys.
> > > > >> > > > > > > >
> > > > >> > > > > > > > I'm not using docker-compose.
> > > > >> > > > > > > >
> > > > >> > > > > > > > Actually I've just fixed that errors logged just by
> > > > >> creating a
> > > > >> > > > > > > > docker-network for the cluster and defining a static
> > IP
> > > > for
> > > > >> > each
> > > > >> > > > > > member.
> > > > >> > > > > > > So
> > > > >> > > > > > > > the cluster is working well at this point.
> > > > >> > > > > > > >
> > > > >> > > > > > > > But it is still working as a dynamic one. I've found
> > > > >> somewhere
> > > > >> > > > that I
> > > > >> > > > > > > > should use channelStartOptions="3" to disable
> > multicast
> > > > and
> > > > >> > avoid
> > > > >> > > > > > > > unexpected members. But once I do it, the session is
> > not
> > > > >> shared
> > > > >> > > > thru
> > > > >> > > > > > the
> > > > >> > > > > > > > cluster anymore.
> > > > >> > > > > > > >
> > > > >> > > > > > > > Any thoughts?
> > > > >> > > > > > > >
> > > > >> > > > > > > >
> > > > >> > > > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > >> > > > > > > > Blog: http://eldermoraes.com
> > > > >> > > > > > > >
> > > > >> > > > > > > >
> > > > >> > > > > > > > 2017-07-06 10:03 GMT-03:00 Thiago Veronezi <
> > > > >> > thiago@veronezi.org
> > > > >> > > >:
> > > > >> > > > > > > >
> > > > >> > > > > > > > > If you are using docker-compose, check the
> > depends_on
> > > > >> option.
> > > > >> > > It
> > > > >> > > > > will
> > > > >> > > > > > > > > guarantee you have your name available. It does
> not
> > > > >> guarantee
> > > > >> > > you
> > > > >> > > > > > have
> > > > >> > > > > > > > the
> > > > >> > > > > > > > > service fully up and running though. If you need
> > that
> > > > too,
> > > > >> > you
> > > > >> > > > will
> > > > >> > > > > > > need
> > > > >> > > > > > > > > the script to wait for the service behind that
> name
> > to
> > > > be
> > > > >> > > ready.
> > > > >> > > > > > > > >
> > > > >> > > > > > > > > []s,
> > > > >> > > > > > > > > Thiago.
> > > > >> > > > > > > > >
> > > > >> > > > > > > > >
> > > > >> > > > > > > > > On 5 Jul 2017 6:16 pm, "Romain Manni-Bucau" <
> > > > >> > > > rmannibucau@gmail.com
> > > > >> > > > > >
> > > > >> > > > > > > > wrote:
> > > > >> > > > > > > > >
> > > > >> > > > > > > > > > looks like docker dns is not working that well
> and
> > > > >> > > registration
> > > > >> > > > > > > fails -
> > > > >> > > > > > > > > or
> > > > >> > > > > > > > > > the startup is not ordered properly but result
> > lead
> > > to
> > > > >> the
> > > > >> > > > same.
> > > > >> > > > > > > Often
> > > > >> > > > > > > > > saw
> > > > >> > > > > > > > > > docker-compose having a small bash loop to wait
> > for
> > > > the
> > > > >> > > > host/port
> > > > >> > > > > > > being
> > > > >> > > > > > > > > > accessible. Maybe that's what you need (yes it
> is
> > > > ugly)
> > > > >> > > > > > > > > >
> > > > >> > > > > > > > > >
> > > > >> > > > > > > > > > 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-06 0:13 GMT+02:00 Elder Moraes <
> > > > >> > > elder.moraes@gmail.com
> > > > >> > > > >:
> > > > >> > > > > > > > > >
> > > > >> > > > > > > > > > > I've got the log and put here:
> > > > >> > > > > > > > > > >
> > > > >> > > > > > > > > > > https://www.dropbox.com/s/yxt3
> > > > >> ym1ucv1hwb3/catalina.2017-
> > > > >> > > > > > > > 07-05.log?dl=0
> > > > >> > > > > > > > > > >
> > > > >> > > > > > > > > > >
> > > > >> > > > > > > > > > > Twitter: @elderjava <
> > > https://twitter.com/elderjava>
> > > > >> > > > > > > > > > > Blog: http://eldermoraes.com
> > > > >> > > > > > > > > > >
> > > > >> > > > > > > > > > >
> > > > >> > > > > > > > > > >
> > > > >> > > > > > > > > > > 2017-07-05 18:56 GMT-03:00 Romain Manni-Bucau
> <
> > > > >> > > > > > > rmannibucau@gmail.com
> > > > >> > > > > > > > >:
> > > > >> > > > > > > > > > >
> > > > >> > > > > > > > > > > > interesting, would be great to have debug
> log
> > of
> > > > >> that
> > > > >> > > > > > clustering
> > > > >> > > > > > > > part
> > > > >> > > > > > > > > > > > (something like org.apache.catalina.tribes.
> > > level
> > > > =
> > > > >> > > FINE),
> > > > >> > > > > > think
> > > > >> > > > > > > > the
> > > > >> > > > > > > > > > > static
> > > > >> > > > > > > > > > > > members are actually excluded of the cluster
> > > > reading
> > > > >> > this
> > > > >> > > > > error
> > > > >> > > > > > > > > > > >
> > > > >> > > > > > > > > > > >
> > > > >> > > > > > > > > > > > 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 23:53 GMT+02:00 Elder Moraes <
> > > > >> > > > > > elder.moraes@gmail.com
> > > > >> > > > > > > >:
> > > > >> > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > Hmm, why not the tcpfailuredetector as a
> > root
> > > > (/>)
> > > > >> > > > instead
> > > > >> > > > > of
> > > > >> > > > > > > > > > wrapping
> > > > >> > > > > > > > > > > > the
> > > > >> > > > > > > > > > > > > static membership one?
> > > > >> > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > Done e got this error:
> > > > >> > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > 05-Jul-2017 21:51:32.845 WARNING
> > > > >> > > > > > > > > > > > > [GroupChannel-Heartbeat[
> > Catalina-Channel]-1]
> > > > >> > > > > > > > > > > > > sun.reflect.NativeMethodAccessorImpl.
> invoke
> > > > >> Unable to
> > > > >> > > > > > perform
> > > > >> > > > > > > > > > > heartbeat
> > > > >> > > > > > > > > > > > on
> > > > >> > > > > > > > > > > > > the TcpFailureDetector.
> > > > >> > > > > > > > > > > > >  java.lang.ArrayIndexOutOfBoundsException
> :
> > 0
> > > > >> > > > > > > > > > > > >     at
> > > > >> > > > > > > > > > > > > org.apache.catalina.tribes.
> > > > membership.MemberImpl.
> > > > >> > > > > > > > > > > > > hashCode(MemberImpl.java:570)
> > > > >> > > > > > > > > > > > >     at java.util.HashMap.hash(
> > > HashMap.java:338)
> > > > >> > > > > > > > > > > > >     at
> > > > >> > java.util.HashMap.containsKey(HashMap.java:595)
> > > > >> > > > > > > > > > > > >     at
> > > > >> > > > > > > > > > > > > org.apache.catalina.tribes.
> > > group.interceptors.
> > > > >> > > > > > > > TcpFailureDetector.
> > > > >> > > > > > > > > > > > > performBasicCheck(
> > > TcpFailureDetector.java:258)
> > > > >> > > > > > > > > > > > >     at
> > > > >> > > > > > > > > > > > > org.apache.catalina.tribes.
> > > group.interceptors.
> > > > >> > > > > > > > TcpFailureDetector.
> > > > >> > > > > > > > > > > > > checkMembers(TcpFailureDetector.java:225)
> > > > >> > > > > > > > > > > > >     at
> > > > >> > > > > > > > > > > > > org.apache.catalina.tribes.
> > > group.interceptors.
> > > > >> > > > > > > > > > > > > TcpFailureDetector.heartbeat(
> > > > >> > > > TcpFailureDetector.java:218)
> > > > >> > > > > > > > > > > > >     at
> > > > >> > > > > > > > > > > > > org.apache.catalina.tribes.
> > > > >> > > group.ChannelInterceptorBase.
> > > > >> > > > > > > > heartbeat(
> > > > >> > > > > > > > > > > > > ChannelInterceptorBase.java:100)
> > > > >> > > > > > > > > > > > >     at
> > > > >> > > > > > > > > > > > > org.apache.catalina.tribes.
> > > > >> > > group.GroupChannel.heartbeat(
> > > > >> > > > > > > > > > > > > GroupChannel.java:161)
> > > > >> > > > > > > > > > > > >     at
> > > > >> > > > > > > > > > > > > org.apache.catalina.tribes.
> > > group.GroupChannel$
> > > > >> > > > > > > > HeartbeatThread.run(
> > > > >> > > > > > > > > > > > > GroupChannel.java:719)
> > > > >> > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > Twitter: @elderjava <
> > > > >> https://twitter.com/elderjava>
> > > > >> > > > > > > > > > > > > Blog: http://eldermoraes.com
> > > > >> > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > 2017-07-05 18:47 GMT-03:00 Romain
> > Manni-Bucau
> > > <
> > > > >> > > > > > > > > rmannibucau@gmail.com
> > > > >> > > > > > > > > > >:
> > > > >> > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > > Hmm, why not the tcpfailuredetector as a
> > > root
> > > > >> (/>)
> > > > >> > > > > instead
> > > > >> > > > > > of
> > > > >> > > > > > > > > > > wrapping
> > > > >> > > > > > > > > > > > > the
> > > > >> > > > > > > > > > > > > > static membership one?
> > > > >> > > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > > Also did you manage to get debug log of
> > > tomcat
> > > > >> > > cluster?
> > > > >> > > > > it
> > > > >> > > > > > > > helps
> > > > >> > > > > > > > > a
> > > > >> > > > > > > > > > > lot
> > > > >> > > > > > > > > > > > in
> > > > >> > > > > > > > > > > > > > general
> > > > >> > > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > > 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/r
> > > > >> mannibucau>
> > > > >> > |
> > > > >> > > > > > JavaEE
> > > > >> > > > > > > > > > Factory
> > > > >> > > > > > > > > > > > > > <https://javaeefactory-
> > > > rmannibucau.rhcloud.com>
> > > > >> > > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > > 2017-07-05 23:43 GMT+02:00 Elder Moraes
> <
> > > > >> > > > > > > > elder.moraes@gmail.com
> > > > >> > > > > > > > > >:
> > > > >> > > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > > > Did it. No errors found.
> > > > >> > > > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > > > If you want to have a look at the
> > > > server.xml.
> > > > >> > Also
> > > > >> > > > I've
> > > > >> > > > > > > > undone
> > > > >> > > > > > > > > > the
> > > > >> > > > > > > > > > > > > > changes
> > > > >> > > > > > > > > > > > > > > I've made before.
> > > > >> > > > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > > > https://www.dropbox.com/s/
> > > > >> > > > > p3iknyku2rb3f3w/server.xml?dl=
> > > > >> > > > > > 0
> > > > >> > > > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > > > Twitter: @elderjava <
> > > > >> > https://twitter.com/elderjava
> > > > >> > > >
> > > > >> > > > > > > > > > > > > > > Blog: http://eldermoraes.com
> > > > >> > > > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > > > 2017-07-05 17:08 GMT-03:00 Romain
> > > > Manni-Bucau
> > > > >> <
> > > > >> > > > > > > > > > > rmannibucau@gmail.com
> > > > >> > > > > > > > > > > > >:
> > > > >> > > > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > > > > Gmail formatting doesnt help much
> but
> > > > think
> > > > >> it
> > > > >> > > can
> > > > >> > > > > miss
> > > > >> > > > > > > > some
> > > > >> > > > > > > > > > > > closing
> > > > >> > > > > > > > > > > > > > > tags.
> > > > >> > > > > > > > > > > > > > > > Autoformat it in an ide, it should
> > show
> > > > it.
> > > > >> > > > > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > > > > Le 5 juil. 2017 21:28, "Elder
> Moraes"
> > <
> > > > >> > > > > > > > > elder.moraes@gmail.com>
> > > > >> > > > > > > > > > a
> > > > >> > > > > > > > > > > > > > écrit :
> > > > >> > > > > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > > > > > Actually I can't... :-(
> > > > >> > > > > > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > > > > > But if you could point me where I
> > > should
> > > > >> > look,
> > > > >> > > > > maybe
> > > > >> > > > > > I
> > > > >> > > > > > > > can
> > > > >> > > > > > > > > > > figure
> > > > >> > > > > > > > > > > > > it
> > > > >> > > > > > > > > > > > > > > out.
> > > > >> > > > > > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > > > > > Is that code that I've sent here
> > > > correct?
> > > > >> No
> > > > >> > > > issue?
> > > > >> > > > > > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > > > > > Did I put the
> > > > StaticMembershipInterceptor
> > > > >> at
> > > > >> > > > right
> > > > >> > > > > > > place?
> > > > >> > > > > > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > > > > > Twitter: @elderjava <
> > > > >> > > > https://twitter.com/elderjava
> > > > >> > > > > >
> > > > >> > > > > > > > > > > > > > > > > Blog: http://eldermoraes.com
> > > > >> > > > > > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > > > > > 2017-07-05 16:21 GMT-03:00 Romain
> > > > >> > Manni-Bucau <
> > > > >> > > > > > > > > > > > > rmannibucau@gmail.com
> > > > >> > > > > > > > > > > > > > >:
> > > > >> > > > > > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > > > > > > Do you think you can do a setup
> > > > without
> > > > >> > > docker?
> > > > >> > > > > > Would
> > > > >> > > > > > > > be
> > > > >> > > > > > > > > > > easier
> > > > >> > > > > > > > > > > > > to
> > > > >> > > > > > > > > > > > > > > > check
> > > > >> > > > > > > > > > > > > > > > > > but sounds like a config issue.
> > > > >> > > > > > > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > > > > > > Le 5 juil. 2017 21:18, "Elder
> > > Moraes"
> > > > <
> > > > >> > > > > > > > > > > elder.moraes@gmail.com>
> > > > >> > > > > > > > > > > > a
> > > > >> > > > > > > > > > > > > > > > écrit :
> > > > >> > > > > > > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > > > > > > > If you are talking about
> > removing
> > > > the
> > > > >> > > > > > McastService,
> > > > >> > > > > > > > > I've
> > > > >> > > > > > > > > > > > > already
> > > > >> > > > > > > > > > > > > > > done
> > > > >> > > > > > > > > > > > > > > > > and
> > > > >> > > > > > > > > > > > > > > > > > > didn't work. The cluster still
> > > works
> > > > >> as a
> > > > >> > > > > dynamic
> > > > >> > > > > > > > one.
> > > > >> > > > > > > > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > > > > > > > Twitter: @elderjava <
> > > > >> > > > > > https://twitter.com/elderjava
> > > > >> > > > > > > >
> > > > >> > > > > > > > > > > > > > > > > > > Blog: http://eldermoraes.com
> > > > >> > > > > > > > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > > > > > > > 2017-07-05 16:08 GMT-03:00
> > Romain
> > > > >> > > > Manni-Bucau <
> > > > >> > > > > > > > > > > > > > > rmannibucau@gmail.com
> > > > >> > > > > > > > > > > > > > > > >:
> > > > >> > > > > > > > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > > > > > > > > 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.moraes@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 <
> > > > >> > > > > > > > > > > > > > > > rmannibucau@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.moraes@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://1
> > > > >> > > > > > > > > > > > > > > > > > > > 72.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
> > > > >> > > > > > > > > > > > > > > > > > > > > >
> > > notifyLifecycleListenerOnFailu
> > > > >> re:
> > > > >> > > > 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 <
> > > > >> > > > > > > > > > > > > > > > > > rmannibucau@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.moraes@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 <
> > > > >> > > > > > > > > > > > > > > > > > > > rmannibucau@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.moraes@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
> > > > >> > > > > > > > > > > > > > > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > > >
> > > > >> > > > > > > > > > > > >
> > > > >> > > > > > > > > > > >
> > > > >> > > > > > > > > > >
> > > > >> > > > > > > > > >
> > > > >> > > > > > > > >
> > > > >> > > > > > > >
> > > > >> > > > > > >
> > > > >> > > > > >
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >> --
> > > > >> Sent from my iPhone
> > > > >>
> > > > >
> > > > >
> > > >
> > >
> >
>
>
>
> --
>   Andy Gumbrecht
>   https://twitter.com/AndyGeeDe
>   http://www.tomitribe.com
>

Re: Building a Static Discovery Cluster

Posted by Andy Gumbrecht <ag...@tomitribe.com>.
That's a really cool idea Ivan - How about proposing a 'Getting Started'
webinar and inviting the user and dev list?

Andy.

On 11 July 2017 at 13:19, Ivan Junckes Filho <iv...@gmail.com> wrote:

> Hi Elder, If you need a google hangout to get started on the website let me
> know.
>
> I have been touching it lately and will be happy to help.
>
>
>
> On Tue, Jul 11, 2017 at 3:30 AM, Romain Manni-Bucau <rmannibucau@gmail.com
> >
> wrote:
>
> > Hi Elder,
> >
> > site was not yet updated (any volonteer welcomed ;)) but you can do it on
> > github through a PR:
> >
> > 1. fork https://github.com/apache/tomee-site-generator
> > 2. add a page in
> > https://github.com/apache/tomee-site-generator/tree/
> > master/src/main/jbake/content
> > 3. add a link to this page
> >
> >
> > 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-11 1:07 GMT+02:00 Daniel Cunha <da...@apache.org>:
> >
> > > Hi Elder,
> > >
> > > Look the section Contribute the this site.
> > > http://tomee.apache.org/community/index.html
> > >
> > > Thank you.
> > >
> > > Daniel Cunha
> > > https://twitter.com/dvlc_
> > >
> > > On Jul 10, 2017 6:59 PM, "Elder Moraes" <el...@gmail.com>
> wrote:
> > >
> > > Hello David, Romain and others,
> > >
> > > I've just figured it out! Now I have a real static cluster, with
> session
> > > being shared between nodes and avoiding unexpected members to joining
> in.
> > >
> > > There are 3 key points:
> > >
> > >    1. channelStartOptions="3" (to avoid using multicast);
> > >    2. Receiver and Member using the same port;
> > >    3. Turn one of the members into a LocalMember (instead of Member).
> It
> > >    will work as the Replication Listener and Receiver Server.
> > >
> > > By doing this you'll be able to see, after all the nodes are up and
> > > running, the Group Channel showing confirmation of each node added. And
> > > once you try to add another with unexpected IP, it is solemnly
> ignored...
> > > ;-)
> > >
> > > How can I turn it into some documentation for Tomee? I have all the
> > > details...
> > >
> > >
> > >
> > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > Blog: http://eldermoraes.com
> > >
> > >
> > >
> > > 2017-07-10 14:40 GMT-03:00 Elder Moraes <el...@gmail.com>:
> > >
> > > > Hey David!
> > > >
> > > > I've sent to the Tomcat list, but still didn't get any reply.
> > > >
> > > > Anyway I'm still trying to figure it out by myself and will be a
> > pleasure
> > > > to contribute with some docs once I do it.
> > > >
> > > >
> > > > Tks!
> > > >
> > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > Blog: http://eldermoraes.com
> > > >
> > > >
> > > >
> > > >
> > > > 2017-07-09 2:50 GMT-03:00 David Blevins <da...@gmail.com>:
> > > >
> > > >>  Hi Elder! just checking to see if you got the help you were looking
> > > for.
> > > >>
> > > >>  When you get it figured out any new docs would be amazing.
> > > >>
> > > >> On Fri, Jul 7, 2017 at 9:57 AM Elder Moraes <elder.moraes@gmail.com
> >
> > > >> wrote:
> > > >>
> > > >> > Ok, will try them.
> > > >> >
> > > >> > Thanks!
> > > >> >
> > > >> >
> > > >> > Twitter: @elderjava <https://twitter.com/elderjava>
> > > >> > Blog: http://eldermoraes.com
> > > >> >
> > > >> >
> > > >> >
> > > >> > 2017-07-06 18:02 GMT-03:00 Romain Manni-Bucau <
> > rmannibucau@gmail.com
> > > >:
> > > >> >
> > > >> > > outch, no more, didnt resetup a cluster since 2 years. But if
> you
> > > >> push a
> > > >> > > tomee-maven-plugin sample it would be quick to help.
> > > >> > >
> > > >> > > Side note: Tomcat list can also be more relevant since they
> fully
> > > own
> > > >> > that
> > > >> > > part.
> > > >> > >
> > > >> > >
> > > >> > > 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-06 22:52 GMT+02:00 Elder Moraes <elder.moraes@gmail.com
> >:
> > > >> > >
> > > >> > > > Do you have some working example? Don't need to be dockerized.
> > > >> > > >
> > > >> > > >
> > > >> > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > >> > > > Blog: http://eldermoraes.com
> > > >> > > >
> > > >> > > >
> > > >> > > > 2017-07-06 17:05 GMT-03:00 Romain Manni-Bucau <
> > > >> rmannibucau@gmail.com>:
> > > >> > > >
> > > >> > > > > yes should help, you can
> > > >> > > > > check org.apache.catalina.tribes.mem
> > > >> bership.McastServiceImpl#start,
> > > >> > > > > org.apache.catalina.tribes.group.ChannelCoordinator#
> > > internalStart
> > > >> > > > > and org.apache.catalina.tribes.group.ChannelCoordinator#
> > > sendMess
> > > >> age
> > > >> > to
> > > >> > > > see
> > > >> > > > > it in action. It basically disable multicast services
> > (threads)
> > > >> and
> > > >> > > > switch
> > > >> > > > > it to send messages
> > > >> > > > >
> > > >> > > > >
> > > >> > > > > 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-06 20:53 GMT+02:00 Elder Moraes <
> > elder.moraes@gmail.com
> > > >:
> > > >> > > > >
> > > >> > > > > > The new logs are here:
> > > >> > > > > >
> > > >> > > > > > https://www.dropbox.com/s/1bdz8vf9pw0h42v/catalina.2017-
> > > >> > > 07-06.log?dl=0
> > > >> > > > > >
> > > >> > > > > > Yes, it shows everything! ;-)
> > > >> > > > > >
> > > >> > > > > > The last four lines shows the unexpected member being
> added
> > to
> > > >> the
> > > >> > > > > cluster.
> > > >> > > > > >
> > > >> > > > > > Don't seems like is a Docker problem, as the new member is
> > > >> allowed
> > > >> > by
> > > >> > > > the
> > > >> > > > > > cluster.
> > > >> > > > > >
> > > >> > > > > > The multicast setup that I've mentioned before has nothing
> > to
> > > >> do?
> > > >> > > > > >
> > > >> > > > > >
> > > >> > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > >> > > > > > Blog: http://eldermoraes.com
> > > >> > > > > >
> > > >> > > > > >
> > > >> > > > > >
> > > >> > > > > > 2017-07-06 15:42 GMT-03:00 Romain Manni-Bucau <
> > > >> > rmannibucau@gmail.com
> > > >> > > >:
> > > >> > > > > >
> > > >> > > > > > > What are the new logs? ;)
> > > >> > > > > > >
> > > >> > > > > > > Tomcat logs everything showing if connection works, if
> > > members
> > > >> > are
> > > >> > > > > > > accepted/connecting etc...
> > > >> > > > > > >
> > > >> > > > > > > From what i saw the docker setup is not matching the
> conf.
> > > >> Maybe
> > > >> > > > start
> > > >> > > > > by
> > > >> > > > > > > making it running without docker before dockerizing it.
> > > >> > > > > > >
> > > >> > > > > > > Side note: maybe you want local member in your cluster
> > > >> (depends
> > > >> > > your
> > > >> > > > > goal
> > > >> > > > > > > but was often done IIRC).
> > > >> > > > > > >
> > > >> > > > > > > Le 6 juil. 2017 19:50, "Elder Moraes" <
> > > elder.moraes@gmail.com
> > > >
> > > >> a
> > > >> > > > > écrit :
> > > >> > > > > > >
> > > >> > > > > > > > Thanks guys.
> > > >> > > > > > > >
> > > >> > > > > > > > I'm not using docker-compose.
> > > >> > > > > > > >
> > > >> > > > > > > > Actually I've just fixed that errors logged just by
> > > >> creating a
> > > >> > > > > > > > docker-network for the cluster and defining a static
> IP
> > > for
> > > >> > each
> > > >> > > > > > member.
> > > >> > > > > > > So
> > > >> > > > > > > > the cluster is working well at this point.
> > > >> > > > > > > >
> > > >> > > > > > > > But it is still working as a dynamic one. I've found
> > > >> somewhere
> > > >> > > > that I
> > > >> > > > > > > > should use channelStartOptions="3" to disable
> multicast
> > > and
> > > >> > avoid
> > > >> > > > > > > > unexpected members. But once I do it, the session is
> not
> > > >> shared
> > > >> > > > thru
> > > >> > > > > > the
> > > >> > > > > > > > cluster anymore.
> > > >> > > > > > > >
> > > >> > > > > > > > Any thoughts?
> > > >> > > > > > > >
> > > >> > > > > > > >
> > > >> > > > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > >> > > > > > > > Blog: http://eldermoraes.com
> > > >> > > > > > > >
> > > >> > > > > > > >
> > > >> > > > > > > > 2017-07-06 10:03 GMT-03:00 Thiago Veronezi <
> > > >> > thiago@veronezi.org
> > > >> > > >:
> > > >> > > > > > > >
> > > >> > > > > > > > > If you are using docker-compose, check the
> depends_on
> > > >> option.
> > > >> > > It
> > > >> > > > > will
> > > >> > > > > > > > > guarantee you have your name available. It does not
> > > >> guarantee
> > > >> > > you
> > > >> > > > > > have
> > > >> > > > > > > > the
> > > >> > > > > > > > > service fully up and running though. If you need
> that
> > > too,
> > > >> > you
> > > >> > > > will
> > > >> > > > > > > need
> > > >> > > > > > > > > the script to wait for the service behind that name
> to
> > > be
> > > >> > > ready.
> > > >> > > > > > > > >
> > > >> > > > > > > > > []s,
> > > >> > > > > > > > > Thiago.
> > > >> > > > > > > > >
> > > >> > > > > > > > >
> > > >> > > > > > > > > On 5 Jul 2017 6:16 pm, "Romain Manni-Bucau" <
> > > >> > > > rmannibucau@gmail.com
> > > >> > > > > >
> > > >> > > > > > > > wrote:
> > > >> > > > > > > > >
> > > >> > > > > > > > > > looks like docker dns is not working that well and
> > > >> > > registration
> > > >> > > > > > > fails -
> > > >> > > > > > > > > or
> > > >> > > > > > > > > > the startup is not ordered properly but result
> lead
> > to
> > > >> the
> > > >> > > > same.
> > > >> > > > > > > Often
> > > >> > > > > > > > > saw
> > > >> > > > > > > > > > docker-compose having a small bash loop to wait
> for
> > > the
> > > >> > > > host/port
> > > >> > > > > > > being
> > > >> > > > > > > > > > accessible. Maybe that's what you need (yes it is
> > > ugly)
> > > >> > > > > > > > > >
> > > >> > > > > > > > > >
> > > >> > > > > > > > > > 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-06 0:13 GMT+02:00 Elder Moraes <
> > > >> > > elder.moraes@gmail.com
> > > >> > > > >:
> > > >> > > > > > > > > >
> > > >> > > > > > > > > > > I've got the log and put here:
> > > >> > > > > > > > > > >
> > > >> > > > > > > > > > > https://www.dropbox.com/s/yxt3
> > > >> ym1ucv1hwb3/catalina.2017-
> > > >> > > > > > > > 07-05.log?dl=0
> > > >> > > > > > > > > > >
> > > >> > > > > > > > > > >
> > > >> > > > > > > > > > > Twitter: @elderjava <
> > https://twitter.com/elderjava>
> > > >> > > > > > > > > > > Blog: http://eldermoraes.com
> > > >> > > > > > > > > > >
> > > >> > > > > > > > > > >
> > > >> > > > > > > > > > >
> > > >> > > > > > > > > > > 2017-07-05 18:56 GMT-03:00 Romain Manni-Bucau <
> > > >> > > > > > > rmannibucau@gmail.com
> > > >> > > > > > > > >:
> > > >> > > > > > > > > > >
> > > >> > > > > > > > > > > > interesting, would be great to have debug log
> of
> > > >> that
> > > >> > > > > > clustering
> > > >> > > > > > > > part
> > > >> > > > > > > > > > > > (something like org.apache.catalina.tribes.
> > level
> > > =
> > > >> > > FINE),
> > > >> > > > > > think
> > > >> > > > > > > > the
> > > >> > > > > > > > > > > static
> > > >> > > > > > > > > > > > members are actually excluded of the cluster
> > > reading
> > > >> > this
> > > >> > > > > error
> > > >> > > > > > > > > > > >
> > > >> > > > > > > > > > > >
> > > >> > > > > > > > > > > > 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 23:53 GMT+02:00 Elder Moraes <
> > > >> > > > > > elder.moraes@gmail.com
> > > >> > > > > > > >:
> > > >> > > > > > > > > > > >
> > > >> > > > > > > > > > > > > Hmm, why not the tcpfailuredetector as a
> root
> > > (/>)
> > > >> > > > instead
> > > >> > > > > of
> > > >> > > > > > > > > > wrapping
> > > >> > > > > > > > > > > > the
> > > >> > > > > > > > > > > > > static membership one?
> > > >> > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > Done e got this error:
> > > >> > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > 05-Jul-2017 21:51:32.845 WARNING
> > > >> > > > > > > > > > > > > [GroupChannel-Heartbeat[
> Catalina-Channel]-1]
> > > >> > > > > > > > > > > > > sun.reflect.NativeMethodAccessorImpl.invoke
> > > >> Unable to
> > > >> > > > > > perform
> > > >> > > > > > > > > > > heartbeat
> > > >> > > > > > > > > > > > on
> > > >> > > > > > > > > > > > > the TcpFailureDetector.
> > > >> > > > > > > > > > > > >  java.lang.ArrayIndexOutOfBoundsException:
> 0
> > > >> > > > > > > > > > > > >     at
> > > >> > > > > > > > > > > > > org.apache.catalina.tribes.
> > > membership.MemberImpl.
> > > >> > > > > > > > > > > > > hashCode(MemberImpl.java:570)
> > > >> > > > > > > > > > > > >     at java.util.HashMap.hash(
> > HashMap.java:338)
> > > >> > > > > > > > > > > > >     at
> > > >> > java.util.HashMap.containsKey(HashMap.java:595)
> > > >> > > > > > > > > > > > >     at
> > > >> > > > > > > > > > > > > org.apache.catalina.tribes.
> > group.interceptors.
> > > >> > > > > > > > TcpFailureDetector.
> > > >> > > > > > > > > > > > > performBasicCheck(
> > TcpFailureDetector.java:258)
> > > >> > > > > > > > > > > > >     at
> > > >> > > > > > > > > > > > > org.apache.catalina.tribes.
> > group.interceptors.
> > > >> > > > > > > > TcpFailureDetector.
> > > >> > > > > > > > > > > > > checkMembers(TcpFailureDetector.java:225)
> > > >> > > > > > > > > > > > >     at
> > > >> > > > > > > > > > > > > org.apache.catalina.tribes.
> > group.interceptors.
> > > >> > > > > > > > > > > > > TcpFailureDetector.heartbeat(
> > > >> > > > TcpFailureDetector.java:218)
> > > >> > > > > > > > > > > > >     at
> > > >> > > > > > > > > > > > > org.apache.catalina.tribes.
> > > >> > > group.ChannelInterceptorBase.
> > > >> > > > > > > > heartbeat(
> > > >> > > > > > > > > > > > > ChannelInterceptorBase.java:100)
> > > >> > > > > > > > > > > > >     at
> > > >> > > > > > > > > > > > > org.apache.catalina.tribes.
> > > >> > > group.GroupChannel.heartbeat(
> > > >> > > > > > > > > > > > > GroupChannel.java:161)
> > > >> > > > > > > > > > > > >     at
> > > >> > > > > > > > > > > > > org.apache.catalina.tribes.
> > group.GroupChannel$
> > > >> > > > > > > > HeartbeatThread.run(
> > > >> > > > > > > > > > > > > GroupChannel.java:719)
> > > >> > > > > > > > > > > > >
> > > >> > > > > > > > > > > > >
> > > >> > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > Twitter: @elderjava <
> > > >> https://twitter.com/elderjava>
> > > >> > > > > > > > > > > > > Blog: http://eldermoraes.com
> > > >> > > > > > > > > > > > >
> > > >> > > > > > > > > > > > >
> > > >> > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > 2017-07-05 18:47 GMT-03:00 Romain
> Manni-Bucau
> > <
> > > >> > > > > > > > > rmannibucau@gmail.com
> > > >> > > > > > > > > > >:
> > > >> > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > > Hmm, why not the tcpfailuredetector as a
> > root
> > > >> (/>)
> > > >> > > > > instead
> > > >> > > > > > of
> > > >> > > > > > > > > > > wrapping
> > > >> > > > > > > > > > > > > the
> > > >> > > > > > > > > > > > > > static membership one?
> > > >> > > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > > Also did you manage to get debug log of
> > tomcat
> > > >> > > cluster?
> > > >> > > > > it
> > > >> > > > > > > > helps
> > > >> > > > > > > > > a
> > > >> > > > > > > > > > > lot
> > > >> > > > > > > > > > > > in
> > > >> > > > > > > > > > > > > > general
> > > >> > > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > > 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/r
> > > >> mannibucau>
> > > >> > |
> > > >> > > > > > JavaEE
> > > >> > > > > > > > > > Factory
> > > >> > > > > > > > > > > > > > <https://javaeefactory-
> > > rmannibucau.rhcloud.com>
> > > >> > > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > > 2017-07-05 23:43 GMT+02:00 Elder Moraes <
> > > >> > > > > > > > elder.moraes@gmail.com
> > > >> > > > > > > > > >:
> > > >> > > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > > > Did it. No errors found.
> > > >> > > > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > > > If you want to have a look at the
> > > server.xml.
> > > >> > Also
> > > >> > > > I've
> > > >> > > > > > > > undone
> > > >> > > > > > > > > > the
> > > >> > > > > > > > > > > > > > changes
> > > >> > > > > > > > > > > > > > > I've made before.
> > > >> > > > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > > > https://www.dropbox.com/s/
> > > >> > > > > p3iknyku2rb3f3w/server.xml?dl=
> > > >> > > > > > 0
> > > >> > > > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > > > Twitter: @elderjava <
> > > >> > https://twitter.com/elderjava
> > > >> > > >
> > > >> > > > > > > > > > > > > > > Blog: http://eldermoraes.com
> > > >> > > > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > > > 2017-07-05 17:08 GMT-03:00 Romain
> > > Manni-Bucau
> > > >> <
> > > >> > > > > > > > > > > rmannibucau@gmail.com
> > > >> > > > > > > > > > > > >:
> > > >> > > > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > > > > Gmail formatting doesnt help much but
> > > think
> > > >> it
> > > >> > > can
> > > >> > > > > miss
> > > >> > > > > > > > some
> > > >> > > > > > > > > > > > closing
> > > >> > > > > > > > > > > > > > > tags.
> > > >> > > > > > > > > > > > > > > > Autoformat it in an ide, it should
> show
> > > it.
> > > >> > > > > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > > > > Le 5 juil. 2017 21:28, "Elder Moraes"
> <
> > > >> > > > > > > > > elder.moraes@gmail.com>
> > > >> > > > > > > > > > a
> > > >> > > > > > > > > > > > > > écrit :
> > > >> > > > > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > > > > > Actually I can't... :-(
> > > >> > > > > > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > > > > > But if you could point me where I
> > should
> > > >> > look,
> > > >> > > > > maybe
> > > >> > > > > > I
> > > >> > > > > > > > can
> > > >> > > > > > > > > > > figure
> > > >> > > > > > > > > > > > > it
> > > >> > > > > > > > > > > > > > > out.
> > > >> > > > > > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > > > > > Is that code that I've sent here
> > > correct?
> > > >> No
> > > >> > > > issue?
> > > >> > > > > > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > > > > > Did I put the
> > > StaticMembershipInterceptor
> > > >> at
> > > >> > > > right
> > > >> > > > > > > place?
> > > >> > > > > > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > > > > > Twitter: @elderjava <
> > > >> > > > https://twitter.com/elderjava
> > > >> > > > > >
> > > >> > > > > > > > > > > > > > > > > Blog: http://eldermoraes.com
> > > >> > > > > > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > > > > > 2017-07-05 16:21 GMT-03:00 Romain
> > > >> > Manni-Bucau <
> > > >> > > > > > > > > > > > > rmannibucau@gmail.com
> > > >> > > > > > > > > > > > > > >:
> > > >> > > > > > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > > > > > > Do you think you can do a setup
> > > without
> > > >> > > docker?
> > > >> > > > > > Would
> > > >> > > > > > > > be
> > > >> > > > > > > > > > > easier
> > > >> > > > > > > > > > > > > to
> > > >> > > > > > > > > > > > > > > > check
> > > >> > > > > > > > > > > > > > > > > > but sounds like a config issue.
> > > >> > > > > > > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > > > > > > Le 5 juil. 2017 21:18, "Elder
> > Moraes"
> > > <
> > > >> > > > > > > > > > > elder.moraes@gmail.com>
> > > >> > > > > > > > > > > > a
> > > >> > > > > > > > > > > > > > > > écrit :
> > > >> > > > > > > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > > > > > > > If you are talking about
> removing
> > > the
> > > >> > > > > > McastService,
> > > >> > > > > > > > > I've
> > > >> > > > > > > > > > > > > already
> > > >> > > > > > > > > > > > > > > done
> > > >> > > > > > > > > > > > > > > > > and
> > > >> > > > > > > > > > > > > > > > > > > didn't work. The cluster still
> > works
> > > >> as a
> > > >> > > > > dynamic
> > > >> > > > > > > > one.
> > > >> > > > > > > > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > > > > > > > Twitter: @elderjava <
> > > >> > > > > > https://twitter.com/elderjava
> > > >> > > > > > > >
> > > >> > > > > > > > > > > > > > > > > > > Blog: http://eldermoraes.com
> > > >> > > > > > > > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > > > > > > > 2017-07-05 16:08 GMT-03:00
> Romain
> > > >> > > > Manni-Bucau <
> > > >> > > > > > > > > > > > > > > rmannibucau@gmail.com
> > > >> > > > > > > > > > > > > > > > >:
> > > >> > > > > > > > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > > > > > > > > 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.moraes@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 <
> > > >> > > > > > > > > > > > > > > > rmannibucau@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.moraes@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://1
> > > >> > > > > > > > > > > > > > > > > > > > 72.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
> > > >> > > > > > > > > > > > > > > > > > > > > >
> > notifyLifecycleListenerOnFailu
> > > >> re:
> > > >> > > > 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 <
> > > >> > > > > > > > > > > > > > > > > > rmannibucau@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.moraes@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 <
> > > >> > > > > > > > > > > > > > > > > > > > rmannibucau@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.moraes@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
> > > >> > > > > > > > > > > > > > > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > > >
> > > >> > > > > > > > > > > > > >
> > > >> > > > > > > > > > > > >
> > > >> > > > > > > > > > > >
> > > >> > > > > > > > > > >
> > > >> > > > > > > > > >
> > > >> > > > > > > > >
> > > >> > > > > > > >
> > > >> > > > > > >
> > > >> > > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >> --
> > > >> Sent from my iPhone
> > > >>
> > > >
> > > >
> > >
> >
>



-- 
  Andy Gumbrecht
  https://twitter.com/AndyGeeDe
  http://www.tomitribe.com

Re: Building a Static Discovery Cluster

Posted by Ivan Junckes Filho <iv...@gmail.com>.
Hi Elder, If you need a google hangout to get started on the website let me
know.

I have been touching it lately and will be happy to help.



On Tue, Jul 11, 2017 at 3:30 AM, Romain Manni-Bucau <rm...@gmail.com>
wrote:

> Hi Elder,
>
> site was not yet updated (any volonteer welcomed ;)) but you can do it on
> github through a PR:
>
> 1. fork https://github.com/apache/tomee-site-generator
> 2. add a page in
> https://github.com/apache/tomee-site-generator/tree/
> master/src/main/jbake/content
> 3. add a link to this page
>
>
> 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-11 1:07 GMT+02:00 Daniel Cunha <da...@apache.org>:
>
> > Hi Elder,
> >
> > Look the section Contribute the this site.
> > http://tomee.apache.org/community/index.html
> >
> > Thank you.
> >
> > Daniel Cunha
> > https://twitter.com/dvlc_
> >
> > On Jul 10, 2017 6:59 PM, "Elder Moraes" <el...@gmail.com> wrote:
> >
> > Hello David, Romain and others,
> >
> > I've just figured it out! Now I have a real static cluster, with session
> > being shared between nodes and avoiding unexpected members to joining in.
> >
> > There are 3 key points:
> >
> >    1. channelStartOptions="3" (to avoid using multicast);
> >    2. Receiver and Member using the same port;
> >    3. Turn one of the members into a LocalMember (instead of Member). It
> >    will work as the Replication Listener and Receiver Server.
> >
> > By doing this you'll be able to see, after all the nodes are up and
> > running, the Group Channel showing confirmation of each node added. And
> > once you try to add another with unexpected IP, it is solemnly ignored...
> > ;-)
> >
> > How can I turn it into some documentation for Tomee? I have all the
> > details...
> >
> >
> >
> > Twitter: @elderjava <https://twitter.com/elderjava>
> > Blog: http://eldermoraes.com
> >
> >
> >
> > 2017-07-10 14:40 GMT-03:00 Elder Moraes <el...@gmail.com>:
> >
> > > Hey David!
> > >
> > > I've sent to the Tomcat list, but still didn't get any reply.
> > >
> > > Anyway I'm still trying to figure it out by myself and will be a
> pleasure
> > > to contribute with some docs once I do it.
> > >
> > >
> > > Tks!
> > >
> > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > Blog: http://eldermoraes.com
> > >
> > >
> > >
> > >
> > > 2017-07-09 2:50 GMT-03:00 David Blevins <da...@gmail.com>:
> > >
> > >>  Hi Elder! just checking to see if you got the help you were looking
> > for.
> > >>
> > >>  When you get it figured out any new docs would be amazing.
> > >>
> > >> On Fri, Jul 7, 2017 at 9:57 AM Elder Moraes <el...@gmail.com>
> > >> wrote:
> > >>
> > >> > Ok, will try them.
> > >> >
> > >> > Thanks!
> > >> >
> > >> >
> > >> > Twitter: @elderjava <https://twitter.com/elderjava>
> > >> > Blog: http://eldermoraes.com
> > >> >
> > >> >
> > >> >
> > >> > 2017-07-06 18:02 GMT-03:00 Romain Manni-Bucau <
> rmannibucau@gmail.com
> > >:
> > >> >
> > >> > > outch, no more, didnt resetup a cluster since 2 years. But if you
> > >> push a
> > >> > > tomee-maven-plugin sample it would be quick to help.
> > >> > >
> > >> > > Side note: Tomcat list can also be more relevant since they fully
> > own
> > >> > that
> > >> > > part.
> > >> > >
> > >> > >
> > >> > > 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-06 22:52 GMT+02:00 Elder Moraes <el...@gmail.com>:
> > >> > >
> > >> > > > Do you have some working example? Don't need to be dockerized.
> > >> > > >
> > >> > > >
> > >> > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > >> > > > Blog: http://eldermoraes.com
> > >> > > >
> > >> > > >
> > >> > > > 2017-07-06 17:05 GMT-03:00 Romain Manni-Bucau <
> > >> rmannibucau@gmail.com>:
> > >> > > >
> > >> > > > > yes should help, you can
> > >> > > > > check org.apache.catalina.tribes.mem
> > >> bership.McastServiceImpl#start,
> > >> > > > > org.apache.catalina.tribes.group.ChannelCoordinator#
> > internalStart
> > >> > > > > and org.apache.catalina.tribes.group.ChannelCoordinator#
> > sendMess
> > >> age
> > >> > to
> > >> > > > see
> > >> > > > > it in action. It basically disable multicast services
> (threads)
> > >> and
> > >> > > > switch
> > >> > > > > it to send messages
> > >> > > > >
> > >> > > > >
> > >> > > > > 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-06 20:53 GMT+02:00 Elder Moraes <
> elder.moraes@gmail.com
> > >:
> > >> > > > >
> > >> > > > > > The new logs are here:
> > >> > > > > >
> > >> > > > > > https://www.dropbox.com/s/1bdz8vf9pw0h42v/catalina.2017-
> > >> > > 07-06.log?dl=0
> > >> > > > > >
> > >> > > > > > Yes, it shows everything! ;-)
> > >> > > > > >
> > >> > > > > > The last four lines shows the unexpected member being added
> to
> > >> the
> > >> > > > > cluster.
> > >> > > > > >
> > >> > > > > > Don't seems like is a Docker problem, as the new member is
> > >> allowed
> > >> > by
> > >> > > > the
> > >> > > > > > cluster.
> > >> > > > > >
> > >> > > > > > The multicast setup that I've mentioned before has nothing
> to
> > >> do?
> > >> > > > > >
> > >> > > > > >
> > >> > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > >> > > > > > Blog: http://eldermoraes.com
> > >> > > > > >
> > >> > > > > >
> > >> > > > > >
> > >> > > > > > 2017-07-06 15:42 GMT-03:00 Romain Manni-Bucau <
> > >> > rmannibucau@gmail.com
> > >> > > >:
> > >> > > > > >
> > >> > > > > > > What are the new logs? ;)
> > >> > > > > > >
> > >> > > > > > > Tomcat logs everything showing if connection works, if
> > members
> > >> > are
> > >> > > > > > > accepted/connecting etc...
> > >> > > > > > >
> > >> > > > > > > From what i saw the docker setup is not matching the conf.
> > >> Maybe
> > >> > > > start
> > >> > > > > by
> > >> > > > > > > making it running without docker before dockerizing it.
> > >> > > > > > >
> > >> > > > > > > Side note: maybe you want local member in your cluster
> > >> (depends
> > >> > > your
> > >> > > > > goal
> > >> > > > > > > but was often done IIRC).
> > >> > > > > > >
> > >> > > > > > > Le 6 juil. 2017 19:50, "Elder Moraes" <
> > elder.moraes@gmail.com
> > >
> > >> a
> > >> > > > > écrit :
> > >> > > > > > >
> > >> > > > > > > > Thanks guys.
> > >> > > > > > > >
> > >> > > > > > > > I'm not using docker-compose.
> > >> > > > > > > >
> > >> > > > > > > > Actually I've just fixed that errors logged just by
> > >> creating a
> > >> > > > > > > > docker-network for the cluster and defining a static IP
> > for
> > >> > each
> > >> > > > > > member.
> > >> > > > > > > So
> > >> > > > > > > > the cluster is working well at this point.
> > >> > > > > > > >
> > >> > > > > > > > But it is still working as a dynamic one. I've found
> > >> somewhere
> > >> > > > that I
> > >> > > > > > > > should use channelStartOptions="3" to disable multicast
> > and
> > >> > avoid
> > >> > > > > > > > unexpected members. But once I do it, the session is not
> > >> shared
> > >> > > > thru
> > >> > > > > > the
> > >> > > > > > > > cluster anymore.
> > >> > > > > > > >
> > >> > > > > > > > Any thoughts?
> > >> > > > > > > >
> > >> > > > > > > >
> > >> > > > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > >> > > > > > > > Blog: http://eldermoraes.com
> > >> > > > > > > >
> > >> > > > > > > >
> > >> > > > > > > > 2017-07-06 10:03 GMT-03:00 Thiago Veronezi <
> > >> > thiago@veronezi.org
> > >> > > >:
> > >> > > > > > > >
> > >> > > > > > > > > If you are using docker-compose, check the depends_on
> > >> option.
> > >> > > It
> > >> > > > > will
> > >> > > > > > > > > guarantee you have your name available. It does not
> > >> guarantee
> > >> > > you
> > >> > > > > > have
> > >> > > > > > > > the
> > >> > > > > > > > > service fully up and running though. If you need that
> > too,
> > >> > you
> > >> > > > will
> > >> > > > > > > need
> > >> > > > > > > > > the script to wait for the service behind that name to
> > be
> > >> > > ready.
> > >> > > > > > > > >
> > >> > > > > > > > > []s,
> > >> > > > > > > > > Thiago.
> > >> > > > > > > > >
> > >> > > > > > > > >
> > >> > > > > > > > > On 5 Jul 2017 6:16 pm, "Romain Manni-Bucau" <
> > >> > > > rmannibucau@gmail.com
> > >> > > > > >
> > >> > > > > > > > wrote:
> > >> > > > > > > > >
> > >> > > > > > > > > > looks like docker dns is not working that well and
> > >> > > registration
> > >> > > > > > > fails -
> > >> > > > > > > > > or
> > >> > > > > > > > > > the startup is not ordered properly but result lead
> to
> > >> the
> > >> > > > same.
> > >> > > > > > > Often
> > >> > > > > > > > > saw
> > >> > > > > > > > > > docker-compose having a small bash loop to wait for
> > the
> > >> > > > host/port
> > >> > > > > > > being
> > >> > > > > > > > > > accessible. Maybe that's what you need (yes it is
> > ugly)
> > >> > > > > > > > > >
> > >> > > > > > > > > >
> > >> > > > > > > > > > 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-06 0:13 GMT+02:00 Elder Moraes <
> > >> > > elder.moraes@gmail.com
> > >> > > > >:
> > >> > > > > > > > > >
> > >> > > > > > > > > > > I've got the log and put here:
> > >> > > > > > > > > > >
> > >> > > > > > > > > > > https://www.dropbox.com/s/yxt3
> > >> ym1ucv1hwb3/catalina.2017-
> > >> > > > > > > > 07-05.log?dl=0
> > >> > > > > > > > > > >
> > >> > > > > > > > > > >
> > >> > > > > > > > > > > Twitter: @elderjava <
> https://twitter.com/elderjava>
> > >> > > > > > > > > > > Blog: http://eldermoraes.com
> > >> > > > > > > > > > >
> > >> > > > > > > > > > >
> > >> > > > > > > > > > >
> > >> > > > > > > > > > > 2017-07-05 18:56 GMT-03:00 Romain Manni-Bucau <
> > >> > > > > > > rmannibucau@gmail.com
> > >> > > > > > > > >:
> > >> > > > > > > > > > >
> > >> > > > > > > > > > > > interesting, would be great to have debug log of
> > >> that
> > >> > > > > > clustering
> > >> > > > > > > > part
> > >> > > > > > > > > > > > (something like org.apache.catalina.tribes.
> level
> > =
> > >> > > FINE),
> > >> > > > > > think
> > >> > > > > > > > the
> > >> > > > > > > > > > > static
> > >> > > > > > > > > > > > members are actually excluded of the cluster
> > reading
> > >> > this
> > >> > > > > error
> > >> > > > > > > > > > > >
> > >> > > > > > > > > > > >
> > >> > > > > > > > > > > > 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 23:53 GMT+02:00 Elder Moraes <
> > >> > > > > > elder.moraes@gmail.com
> > >> > > > > > > >:
> > >> > > > > > > > > > > >
> > >> > > > > > > > > > > > > Hmm, why not the tcpfailuredetector as a root
> > (/>)
> > >> > > > instead
> > >> > > > > of
> > >> > > > > > > > > > wrapping
> > >> > > > > > > > > > > > the
> > >> > > > > > > > > > > > > static membership one?
> > >> > > > > > > > > > > > >
> > >> > > > > > > > > > > > > Done e got this error:
> > >> > > > > > > > > > > > >
> > >> > > > > > > > > > > > > 05-Jul-2017 21:51:32.845 WARNING
> > >> > > > > > > > > > > > > [GroupChannel-Heartbeat[Catalina-Channel]-1]
> > >> > > > > > > > > > > > > sun.reflect.NativeMethodAccessorImpl.invoke
> > >> Unable to
> > >> > > > > > perform
> > >> > > > > > > > > > > heartbeat
> > >> > > > > > > > > > > > on
> > >> > > > > > > > > > > > > the TcpFailureDetector.
> > >> > > > > > > > > > > > >  java.lang.ArrayIndexOutOfBoundsException: 0
> > >> > > > > > > > > > > > >     at
> > >> > > > > > > > > > > > > org.apache.catalina.tribes.
> > membership.MemberImpl.
> > >> > > > > > > > > > > > > hashCode(MemberImpl.java:570)
> > >> > > > > > > > > > > > >     at java.util.HashMap.hash(
> HashMap.java:338)
> > >> > > > > > > > > > > > >     at
> > >> > java.util.HashMap.containsKey(HashMap.java:595)
> > >> > > > > > > > > > > > >     at
> > >> > > > > > > > > > > > > org.apache.catalina.tribes.
> group.interceptors.
> > >> > > > > > > > TcpFailureDetector.
> > >> > > > > > > > > > > > > performBasicCheck(
> TcpFailureDetector.java:258)
> > >> > > > > > > > > > > > >     at
> > >> > > > > > > > > > > > > org.apache.catalina.tribes.
> group.interceptors.
> > >> > > > > > > > TcpFailureDetector.
> > >> > > > > > > > > > > > > checkMembers(TcpFailureDetector.java:225)
> > >> > > > > > > > > > > > >     at
> > >> > > > > > > > > > > > > org.apache.catalina.tribes.
> group.interceptors.
> > >> > > > > > > > > > > > > TcpFailureDetector.heartbeat(
> > >> > > > TcpFailureDetector.java:218)
> > >> > > > > > > > > > > > >     at
> > >> > > > > > > > > > > > > org.apache.catalina.tribes.
> > >> > > group.ChannelInterceptorBase.
> > >> > > > > > > > heartbeat(
> > >> > > > > > > > > > > > > ChannelInterceptorBase.java:100)
> > >> > > > > > > > > > > > >     at
> > >> > > > > > > > > > > > > org.apache.catalina.tribes.
> > >> > > group.GroupChannel.heartbeat(
> > >> > > > > > > > > > > > > GroupChannel.java:161)
> > >> > > > > > > > > > > > >     at
> > >> > > > > > > > > > > > > org.apache.catalina.tribes.
> group.GroupChannel$
> > >> > > > > > > > HeartbeatThread.run(
> > >> > > > > > > > > > > > > GroupChannel.java:719)
> > >> > > > > > > > > > > > >
> > >> > > > > > > > > > > > >
> > >> > > > > > > > > > > > >
> > >> > > > > > > > > > > > > Twitter: @elderjava <
> > >> https://twitter.com/elderjava>
> > >> > > > > > > > > > > > > Blog: http://eldermoraes.com
> > >> > > > > > > > > > > > >
> > >> > > > > > > > > > > > >
> > >> > > > > > > > > > > > >
> > >> > > > > > > > > > > > > 2017-07-05 18:47 GMT-03:00 Romain Manni-Bucau
> <
> > >> > > > > > > > > rmannibucau@gmail.com
> > >> > > > > > > > > > >:
> > >> > > > > > > > > > > > >
> > >> > > > > > > > > > > > > > Hmm, why not the tcpfailuredetector as a
> root
> > >> (/>)
> > >> > > > > instead
> > >> > > > > > of
> > >> > > > > > > > > > > wrapping
> > >> > > > > > > > > > > > > the
> > >> > > > > > > > > > > > > > static membership one?
> > >> > > > > > > > > > > > > >
> > >> > > > > > > > > > > > > > Also did you manage to get debug log of
> tomcat
> > >> > > cluster?
> > >> > > > > it
> > >> > > > > > > > helps
> > >> > > > > > > > > a
> > >> > > > > > > > > > > lot
> > >> > > > > > > > > > > > in
> > >> > > > > > > > > > > > > > general
> > >> > > > > > > > > > > > > >
> > >> > > > > > > > > > > > > >
> > >> > > > > > > > > > > > > > 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/r
> > >> mannibucau>
> > >> > |
> > >> > > > > > JavaEE
> > >> > > > > > > > > > Factory
> > >> > > > > > > > > > > > > > <https://javaeefactory-
> > rmannibucau.rhcloud.com>
> > >> > > > > > > > > > > > > >
> > >> > > > > > > > > > > > > > 2017-07-05 23:43 GMT+02:00 Elder Moraes <
> > >> > > > > > > > elder.moraes@gmail.com
> > >> > > > > > > > > >:
> > >> > > > > > > > > > > > > >
> > >> > > > > > > > > > > > > > > Did it. No errors found.
> > >> > > > > > > > > > > > > > >
> > >> > > > > > > > > > > > > > > If you want to have a look at the
> > server.xml.
> > >> > Also
> > >> > > > I've
> > >> > > > > > > > undone
> > >> > > > > > > > > > the
> > >> > > > > > > > > > > > > > changes
> > >> > > > > > > > > > > > > > > I've made before.
> > >> > > > > > > > > > > > > > >
> > >> > > > > > > > > > > > > > > https://www.dropbox.com/s/
> > >> > > > > p3iknyku2rb3f3w/server.xml?dl=
> > >> > > > > > 0
> > >> > > > > > > > > > > > > > >
> > >> > > > > > > > > > > > > > >
> > >> > > > > > > > > > > > > > > Twitter: @elderjava <
> > >> > https://twitter.com/elderjava
> > >> > > >
> > >> > > > > > > > > > > > > > > Blog: http://eldermoraes.com
> > >> > > > > > > > > > > > > > >
> > >> > > > > > > > > > > > > > >
> > >> > > > > > > > > > > > > > > 2017-07-05 17:08 GMT-03:00 Romain
> > Manni-Bucau
> > >> <
> > >> > > > > > > > > > > rmannibucau@gmail.com
> > >> > > > > > > > > > > > >:
> > >> > > > > > > > > > > > > > >
> > >> > > > > > > > > > > > > > > > Gmail formatting doesnt help much but
> > think
> > >> it
> > >> > > can
> > >> > > > > miss
> > >> > > > > > > > some
> > >> > > > > > > > > > > > closing
> > >> > > > > > > > > > > > > > > tags.
> > >> > > > > > > > > > > > > > > > Autoformat it in an ide, it should show
> > it.
> > >> > > > > > > > > > > > > > > >
> > >> > > > > > > > > > > > > > > > Le 5 juil. 2017 21:28, "Elder Moraes" <
> > >> > > > > > > > > elder.moraes@gmail.com>
> > >> > > > > > > > > > a
> > >> > > > > > > > > > > > > > écrit :
> > >> > > > > > > > > > > > > > > >
> > >> > > > > > > > > > > > > > > > > Actually I can't... :-(
> > >> > > > > > > > > > > > > > > > >
> > >> > > > > > > > > > > > > > > > > But if you could point me where I
> should
> > >> > look,
> > >> > > > > maybe
> > >> > > > > > I
> > >> > > > > > > > can
> > >> > > > > > > > > > > figure
> > >> > > > > > > > > > > > > it
> > >> > > > > > > > > > > > > > > out.
> > >> > > > > > > > > > > > > > > > >
> > >> > > > > > > > > > > > > > > > > Is that code that I've sent here
> > correct?
> > >> No
> > >> > > > issue?
> > >> > > > > > > > > > > > > > > > >
> > >> > > > > > > > > > > > > > > > > Did I put the
> > StaticMembershipInterceptor
> > >> at
> > >> > > > right
> > >> > > > > > > place?
> > >> > > > > > > > > > > > > > > > >
> > >> > > > > > > > > > > > > > > > >
> > >> > > > > > > > > > > > > > > > > Twitter: @elderjava <
> > >> > > > https://twitter.com/elderjava
> > >> > > > > >
> > >> > > > > > > > > > > > > > > > > Blog: http://eldermoraes.com
> > >> > > > > > > > > > > > > > > > >
> > >> > > > > > > > > > > > > > > > >
> > >> > > > > > > > > > > > > > > > >
> > >> > > > > > > > > > > > > > > > > 2017-07-05 16:21 GMT-03:00 Romain
> > >> > Manni-Bucau <
> > >> > > > > > > > > > > > > rmannibucau@gmail.com
> > >> > > > > > > > > > > > > > >:
> > >> > > > > > > > > > > > > > > > >
> > >> > > > > > > > > > > > > > > > > > Do you think you can do a setup
> > without
> > >> > > docker?
> > >> > > > > > Would
> > >> > > > > > > > be
> > >> > > > > > > > > > > easier
> > >> > > > > > > > > > > > > to
> > >> > > > > > > > > > > > > > > > check
> > >> > > > > > > > > > > > > > > > > > but sounds like a config issue.
> > >> > > > > > > > > > > > > > > > > >
> > >> > > > > > > > > > > > > > > > > > Le 5 juil. 2017 21:18, "Elder
> Moraes"
> > <
> > >> > > > > > > > > > > elder.moraes@gmail.com>
> > >> > > > > > > > > > > > a
> > >> > > > > > > > > > > > > > > > écrit :
> > >> > > > > > > > > > > > > > > > > >
> > >> > > > > > > > > > > > > > > > > > > If you are talking about removing
> > the
> > >> > > > > > McastService,
> > >> > > > > > > > > I've
> > >> > > > > > > > > > > > > already
> > >> > > > > > > > > > > > > > > done
> > >> > > > > > > > > > > > > > > > > and
> > >> > > > > > > > > > > > > > > > > > > didn't work. The cluster still
> works
> > >> as a
> > >> > > > > dynamic
> > >> > > > > > > > one.
> > >> > > > > > > > > > > > > > > > > > >
> > >> > > > > > > > > > > > > > > > > > >
> > >> > > > > > > > > > > > > > > > > > > Twitter: @elderjava <
> > >> > > > > > https://twitter.com/elderjava
> > >> > > > > > > >
> > >> > > > > > > > > > > > > > > > > > > Blog: http://eldermoraes.com
> > >> > > > > > > > > > > > > > > > > > >
> > >> > > > > > > > > > > > > > > > > > >
> > >> > > > > > > > > > > > > > > > > > > 2017-07-05 16:08 GMT-03:00 Romain
> > >> > > > Manni-Bucau <
> > >> > > > > > > > > > > > > > > rmannibucau@gmail.com
> > >> > > > > > > > > > > > > > > > >:
> > >> > > > > > > > > > > > > > > > > > >
> > >> > > > > > > > > > > > > > > > > > > > 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.moraes@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 <
> > >> > > > > > > > > > > > > > > > rmannibucau@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.moraes@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://1
> > >> > > > > > > > > > > > > > > > > > > > 72.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
> > >> > > > > > > > > > > > > > > > > > > > > >
> notifyLifecycleListenerOnFailu
> > >> re:
> > >> > > > 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 <
> > >> > > > > > > > > > > > > > > > > > rmannibucau@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.moraes@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 <
> > >> > > > > > > > > > > > > > > > > > > > rmannibucau@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.moraes@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
> > >> > > > > > > > > > > > > > > > > > > > > > > > > >
> > >> > > > > > > > > > > > > > > > > > > > > > > > >
> > >> > > > > > > > > > > > > > > > > > > > > > > >
> > >> > > > > > > > > > > > > > > > > > > > > > >
> > >> > > > > > > > > > > > > > > > > > > > > >
> > >> > > > > > > > > > > > > > > > > > > > >
> > >> > > > > > > > > > > > > > > > > > > >
> > >> > > > > > > > > > > > > > > > > > >
> > >> > > > > > > > > > > > > > > > > >
> > >> > > > > > > > > > > > > > > > >
> > >> > > > > > > > > > > > > > > >
> > >> > > > > > > > > > > > > > >
> > >> > > > > > > > > > > > > >
> > >> > > > > > > > > > > > >
> > >> > > > > > > > > > > >
> > >> > > > > > > > > > >
> > >> > > > > > > > > >
> > >> > > > > > > > >
> > >> > > > > > > >
> > >> > > > > > >
> > >> > > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >> --
> > >> Sent from my iPhone
> > >>
> > >
> > >
> >
>

Re: Building a Static Discovery Cluster

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi Elder,

site was not yet updated (any volonteer welcomed ;)) but you can do it on
github through a PR:

1. fork https://github.com/apache/tomee-site-generator
2. add a page in
https://github.com/apache/tomee-site-generator/tree/master/src/main/jbake/content
3. add a link to this page


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-11 1:07 GMT+02:00 Daniel Cunha <da...@apache.org>:

> Hi Elder,
>
> Look the section Contribute the this site.
> http://tomee.apache.org/community/index.html
>
> Thank you.
>
> Daniel Cunha
> https://twitter.com/dvlc_
>
> On Jul 10, 2017 6:59 PM, "Elder Moraes" <el...@gmail.com> wrote:
>
> Hello David, Romain and others,
>
> I've just figured it out! Now I have a real static cluster, with session
> being shared between nodes and avoiding unexpected members to joining in.
>
> There are 3 key points:
>
>    1. channelStartOptions="3" (to avoid using multicast);
>    2. Receiver and Member using the same port;
>    3. Turn one of the members into a LocalMember (instead of Member). It
>    will work as the Replication Listener and Receiver Server.
>
> By doing this you'll be able to see, after all the nodes are up and
> running, the Group Channel showing confirmation of each node added. And
> once you try to add another with unexpected IP, it is solemnly ignored...
> ;-)
>
> How can I turn it into some documentation for Tomee? I have all the
> details...
>
>
>
> Twitter: @elderjava <https://twitter.com/elderjava>
> Blog: http://eldermoraes.com
>
>
>
> 2017-07-10 14:40 GMT-03:00 Elder Moraes <el...@gmail.com>:
>
> > Hey David!
> >
> > I've sent to the Tomcat list, but still didn't get any reply.
> >
> > Anyway I'm still trying to figure it out by myself and will be a pleasure
> > to contribute with some docs once I do it.
> >
> >
> > Tks!
> >
> > Twitter: @elderjava <https://twitter.com/elderjava>
> > Blog: http://eldermoraes.com
> >
> >
> >
> >
> > 2017-07-09 2:50 GMT-03:00 David Blevins <da...@gmail.com>:
> >
> >>  Hi Elder! just checking to see if you got the help you were looking
> for.
> >>
> >>  When you get it figured out any new docs would be amazing.
> >>
> >> On Fri, Jul 7, 2017 at 9:57 AM Elder Moraes <el...@gmail.com>
> >> wrote:
> >>
> >> > Ok, will try them.
> >> >
> >> > Thanks!
> >> >
> >> >
> >> > Twitter: @elderjava <https://twitter.com/elderjava>
> >> > Blog: http://eldermoraes.com
> >> >
> >> >
> >> >
> >> > 2017-07-06 18:02 GMT-03:00 Romain Manni-Bucau <rmannibucau@gmail.com
> >:
> >> >
> >> > > outch, no more, didnt resetup a cluster since 2 years. But if you
> >> push a
> >> > > tomee-maven-plugin sample it would be quick to help.
> >> > >
> >> > > Side note: Tomcat list can also be more relevant since they fully
> own
> >> > that
> >> > > part.
> >> > >
> >> > >
> >> > > 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-06 22:52 GMT+02:00 Elder Moraes <el...@gmail.com>:
> >> > >
> >> > > > Do you have some working example? Don't need to be dockerized.
> >> > > >
> >> > > >
> >> > > > Twitter: @elderjava <https://twitter.com/elderjava>
> >> > > > Blog: http://eldermoraes.com
> >> > > >
> >> > > >
> >> > > > 2017-07-06 17:05 GMT-03:00 Romain Manni-Bucau <
> >> rmannibucau@gmail.com>:
> >> > > >
> >> > > > > yes should help, you can
> >> > > > > check org.apache.catalina.tribes.mem
> >> bership.McastServiceImpl#start,
> >> > > > > org.apache.catalina.tribes.group.ChannelCoordinator#
> internalStart
> >> > > > > and org.apache.catalina.tribes.group.ChannelCoordinator#
> sendMess
> >> age
> >> > to
> >> > > > see
> >> > > > > it in action. It basically disable multicast services (threads)
> >> and
> >> > > > switch
> >> > > > > it to send messages
> >> > > > >
> >> > > > >
> >> > > > > 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-06 20:53 GMT+02:00 Elder Moraes <elder.moraes@gmail.com
> >:
> >> > > > >
> >> > > > > > The new logs are here:
> >> > > > > >
> >> > > > > > https://www.dropbox.com/s/1bdz8vf9pw0h42v/catalina.2017-
> >> > > 07-06.log?dl=0
> >> > > > > >
> >> > > > > > Yes, it shows everything! ;-)
> >> > > > > >
> >> > > > > > The last four lines shows the unexpected member being added to
> >> the
> >> > > > > cluster.
> >> > > > > >
> >> > > > > > Don't seems like is a Docker problem, as the new member is
> >> allowed
> >> > by
> >> > > > the
> >> > > > > > cluster.
> >> > > > > >
> >> > > > > > The multicast setup that I've mentioned before has nothing to
> >> do?
> >> > > > > >
> >> > > > > >
> >> > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> >> > > > > > Blog: http://eldermoraes.com
> >> > > > > >
> >> > > > > >
> >> > > > > >
> >> > > > > > 2017-07-06 15:42 GMT-03:00 Romain Manni-Bucau <
> >> > rmannibucau@gmail.com
> >> > > >:
> >> > > > > >
> >> > > > > > > What are the new logs? ;)
> >> > > > > > >
> >> > > > > > > Tomcat logs everything showing if connection works, if
> members
> >> > are
> >> > > > > > > accepted/connecting etc...
> >> > > > > > >
> >> > > > > > > From what i saw the docker setup is not matching the conf.
> >> Maybe
> >> > > > start
> >> > > > > by
> >> > > > > > > making it running without docker before dockerizing it.
> >> > > > > > >
> >> > > > > > > Side note: maybe you want local member in your cluster
> >> (depends
> >> > > your
> >> > > > > goal
> >> > > > > > > but was often done IIRC).
> >> > > > > > >
> >> > > > > > > Le 6 juil. 2017 19:50, "Elder Moraes" <
> elder.moraes@gmail.com
> >
> >> a
> >> > > > > écrit :
> >> > > > > > >
> >> > > > > > > > Thanks guys.
> >> > > > > > > >
> >> > > > > > > > I'm not using docker-compose.
> >> > > > > > > >
> >> > > > > > > > Actually I've just fixed that errors logged just by
> >> creating a
> >> > > > > > > > docker-network for the cluster and defining a static IP
> for
> >> > each
> >> > > > > > member.
> >> > > > > > > So
> >> > > > > > > > the cluster is working well at this point.
> >> > > > > > > >
> >> > > > > > > > But it is still working as a dynamic one. I've found
> >> somewhere
> >> > > > that I
> >> > > > > > > > should use channelStartOptions="3" to disable multicast
> and
> >> > avoid
> >> > > > > > > > unexpected members. But once I do it, the session is not
> >> shared
> >> > > > thru
> >> > > > > > the
> >> > > > > > > > cluster anymore.
> >> > > > > > > >
> >> > > > > > > > Any thoughts?
> >> > > > > > > >
> >> > > > > > > >
> >> > > > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> >> > > > > > > > Blog: http://eldermoraes.com
> >> > > > > > > >
> >> > > > > > > >
> >> > > > > > > > 2017-07-06 10:03 GMT-03:00 Thiago Veronezi <
> >> > thiago@veronezi.org
> >> > > >:
> >> > > > > > > >
> >> > > > > > > > > If you are using docker-compose, check the depends_on
> >> option.
> >> > > It
> >> > > > > will
> >> > > > > > > > > guarantee you have your name available. It does not
> >> guarantee
> >> > > you
> >> > > > > > have
> >> > > > > > > > the
> >> > > > > > > > > service fully up and running though. If you need that
> too,
> >> > you
> >> > > > will
> >> > > > > > > need
> >> > > > > > > > > the script to wait for the service behind that name to
> be
> >> > > ready.
> >> > > > > > > > >
> >> > > > > > > > > []s,
> >> > > > > > > > > Thiago.
> >> > > > > > > > >
> >> > > > > > > > >
> >> > > > > > > > > On 5 Jul 2017 6:16 pm, "Romain Manni-Bucau" <
> >> > > > rmannibucau@gmail.com
> >> > > > > >
> >> > > > > > > > wrote:
> >> > > > > > > > >
> >> > > > > > > > > > looks like docker dns is not working that well and
> >> > > registration
> >> > > > > > > fails -
> >> > > > > > > > > or
> >> > > > > > > > > > the startup is not ordered properly but result lead to
> >> the
> >> > > > same.
> >> > > > > > > Often
> >> > > > > > > > > saw
> >> > > > > > > > > > docker-compose having a small bash loop to wait for
> the
> >> > > > host/port
> >> > > > > > > being
> >> > > > > > > > > > accessible. Maybe that's what you need (yes it is
> ugly)
> >> > > > > > > > > >
> >> > > > > > > > > >
> >> > > > > > > > > > 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-06 0:13 GMT+02:00 Elder Moraes <
> >> > > elder.moraes@gmail.com
> >> > > > >:
> >> > > > > > > > > >
> >> > > > > > > > > > > I've got the log and put here:
> >> > > > > > > > > > >
> >> > > > > > > > > > > https://www.dropbox.com/s/yxt3
> >> ym1ucv1hwb3/catalina.2017-
> >> > > > > > > > 07-05.log?dl=0
> >> > > > > > > > > > >
> >> > > > > > > > > > >
> >> > > > > > > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> >> > > > > > > > > > > Blog: http://eldermoraes.com
> >> > > > > > > > > > >
> >> > > > > > > > > > >
> >> > > > > > > > > > >
> >> > > > > > > > > > > 2017-07-05 18:56 GMT-03:00 Romain Manni-Bucau <
> >> > > > > > > rmannibucau@gmail.com
> >> > > > > > > > >:
> >> > > > > > > > > > >
> >> > > > > > > > > > > > interesting, would be great to have debug log of
> >> that
> >> > > > > > clustering
> >> > > > > > > > part
> >> > > > > > > > > > > > (something like org.apache.catalina.tribes.level
> =
> >> > > FINE),
> >> > > > > > think
> >> > > > > > > > the
> >> > > > > > > > > > > static
> >> > > > > > > > > > > > members are actually excluded of the cluster
> reading
> >> > this
> >> > > > > error
> >> > > > > > > > > > > >
> >> > > > > > > > > > > >
> >> > > > > > > > > > > > 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 23:53 GMT+02:00 Elder Moraes <
> >> > > > > > elder.moraes@gmail.com
> >> > > > > > > >:
> >> > > > > > > > > > > >
> >> > > > > > > > > > > > > Hmm, why not the tcpfailuredetector as a root
> (/>)
> >> > > > instead
> >> > > > > of
> >> > > > > > > > > > wrapping
> >> > > > > > > > > > > > the
> >> > > > > > > > > > > > > static membership one?
> >> > > > > > > > > > > > >
> >> > > > > > > > > > > > > Done e got this error:
> >> > > > > > > > > > > > >
> >> > > > > > > > > > > > > 05-Jul-2017 21:51:32.845 WARNING
> >> > > > > > > > > > > > > [GroupChannel-Heartbeat[Catalina-Channel]-1]
> >> > > > > > > > > > > > > sun.reflect.NativeMethodAccessorImpl.invoke
> >> Unable to
> >> > > > > > perform
> >> > > > > > > > > > > heartbeat
> >> > > > > > > > > > > > on
> >> > > > > > > > > > > > > the TcpFailureDetector.
> >> > > > > > > > > > > > >  java.lang.ArrayIndexOutOfBoundsException: 0
> >> > > > > > > > > > > > >     at
> >> > > > > > > > > > > > > org.apache.catalina.tribes.
> membership.MemberImpl.
> >> > > > > > > > > > > > > hashCode(MemberImpl.java:570)
> >> > > > > > > > > > > > >     at java.util.HashMap.hash(HashMap.java:338)
> >> > > > > > > > > > > > >     at
> >> > java.util.HashMap.containsKey(HashMap.java:595)
> >> > > > > > > > > > > > >     at
> >> > > > > > > > > > > > > org.apache.catalina.tribes.group.interceptors.
> >> > > > > > > > TcpFailureDetector.
> >> > > > > > > > > > > > > performBasicCheck(TcpFailureDetector.java:258)
> >> > > > > > > > > > > > >     at
> >> > > > > > > > > > > > > org.apache.catalina.tribes.group.interceptors.
> >> > > > > > > > TcpFailureDetector.
> >> > > > > > > > > > > > > checkMembers(TcpFailureDetector.java:225)
> >> > > > > > > > > > > > >     at
> >> > > > > > > > > > > > > org.apache.catalina.tribes.group.interceptors.
> >> > > > > > > > > > > > > TcpFailureDetector.heartbeat(
> >> > > > TcpFailureDetector.java:218)
> >> > > > > > > > > > > > >     at
> >> > > > > > > > > > > > > org.apache.catalina.tribes.
> >> > > group.ChannelInterceptorBase.
> >> > > > > > > > heartbeat(
> >> > > > > > > > > > > > > ChannelInterceptorBase.java:100)
> >> > > > > > > > > > > > >     at
> >> > > > > > > > > > > > > org.apache.catalina.tribes.
> >> > > group.GroupChannel.heartbeat(
> >> > > > > > > > > > > > > GroupChannel.java:161)
> >> > > > > > > > > > > > >     at
> >> > > > > > > > > > > > > org.apache.catalina.tribes.group.GroupChannel$
> >> > > > > > > > HeartbeatThread.run(
> >> > > > > > > > > > > > > GroupChannel.java:719)
> >> > > > > > > > > > > > >
> >> > > > > > > > > > > > >
> >> > > > > > > > > > > > >
> >> > > > > > > > > > > > > Twitter: @elderjava <
> >> https://twitter.com/elderjava>
> >> > > > > > > > > > > > > Blog: http://eldermoraes.com
> >> > > > > > > > > > > > >
> >> > > > > > > > > > > > >
> >> > > > > > > > > > > > >
> >> > > > > > > > > > > > > 2017-07-05 18:47 GMT-03:00 Romain Manni-Bucau <
> >> > > > > > > > > rmannibucau@gmail.com
> >> > > > > > > > > > >:
> >> > > > > > > > > > > > >
> >> > > > > > > > > > > > > > Hmm, why not the tcpfailuredetector as a root
> >> (/>)
> >> > > > > instead
> >> > > > > > of
> >> > > > > > > > > > > wrapping
> >> > > > > > > > > > > > > the
> >> > > > > > > > > > > > > > static membership one?
> >> > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > Also did you manage to get debug log of tomcat
> >> > > cluster?
> >> > > > > it
> >> > > > > > > > helps
> >> > > > > > > > > a
> >> > > > > > > > > > > lot
> >> > > > > > > > > > > > in
> >> > > > > > > > > > > > > > general
> >> > > > > > > > > > > > > >
> >> > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > 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/r
> >> mannibucau>
> >> > |
> >> > > > > > JavaEE
> >> > > > > > > > > > Factory
> >> > > > > > > > > > > > > > <https://javaeefactory-
> rmannibucau.rhcloud.com>
> >> > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > 2017-07-05 23:43 GMT+02:00 Elder Moraes <
> >> > > > > > > > elder.moraes@gmail.com
> >> > > > > > > > > >:
> >> > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > > Did it. No errors found.
> >> > > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > > If you want to have a look at the
> server.xml.
> >> > Also
> >> > > > I've
> >> > > > > > > > undone
> >> > > > > > > > > > the
> >> > > > > > > > > > > > > > changes
> >> > > > > > > > > > > > > > > I've made before.
> >> > > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > > https://www.dropbox.com/s/
> >> > > > > p3iknyku2rb3f3w/server.xml?dl=
> >> > > > > > 0
> >> > > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > > Twitter: @elderjava <
> >> > https://twitter.com/elderjava
> >> > > >
> >> > > > > > > > > > > > > > > Blog: http://eldermoraes.com
> >> > > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > > 2017-07-05 17:08 GMT-03:00 Romain
> Manni-Bucau
> >> <
> >> > > > > > > > > > > rmannibucau@gmail.com
> >> > > > > > > > > > > > >:
> >> > > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > > > Gmail formatting doesnt help much but
> think
> >> it
> >> > > can
> >> > > > > miss
> >> > > > > > > > some
> >> > > > > > > > > > > > closing
> >> > > > > > > > > > > > > > > tags.
> >> > > > > > > > > > > > > > > > Autoformat it in an ide, it should show
> it.
> >> > > > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > > > Le 5 juil. 2017 21:28, "Elder Moraes" <
> >> > > > > > > > > elder.moraes@gmail.com>
> >> > > > > > > > > > a
> >> > > > > > > > > > > > > > écrit :
> >> > > > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > > > > Actually I can't... :-(
> >> > > > > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > > > > But if you could point me where I should
> >> > look,
> >> > > > > maybe
> >> > > > > > I
> >> > > > > > > > can
> >> > > > > > > > > > > figure
> >> > > > > > > > > > > > > it
> >> > > > > > > > > > > > > > > out.
> >> > > > > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > > > > Is that code that I've sent here
> correct?
> >> No
> >> > > > issue?
> >> > > > > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > > > > Did I put the
> StaticMembershipInterceptor
> >> at
> >> > > > right
> >> > > > > > > place?
> >> > > > > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > > > > Twitter: @elderjava <
> >> > > > https://twitter.com/elderjava
> >> > > > > >
> >> > > > > > > > > > > > > > > > > Blog: http://eldermoraes.com
> >> > > > > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > > > > 2017-07-05 16:21 GMT-03:00 Romain
> >> > Manni-Bucau <
> >> > > > > > > > > > > > > rmannibucau@gmail.com
> >> > > > > > > > > > > > > > >:
> >> > > > > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > > > > > Do you think you can do a setup
> without
> >> > > docker?
> >> > > > > > Would
> >> > > > > > > > be
> >> > > > > > > > > > > easier
> >> > > > > > > > > > > > > to
> >> > > > > > > > > > > > > > > > check
> >> > > > > > > > > > > > > > > > > > but sounds like a config issue.
> >> > > > > > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > > > > > Le 5 juil. 2017 21:18, "Elder Moraes"
> <
> >> > > > > > > > > > > elder.moraes@gmail.com>
> >> > > > > > > > > > > > a
> >> > > > > > > > > > > > > > > > écrit :
> >> > > > > > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > > > > > > If you are talking about removing
> the
> >> > > > > > McastService,
> >> > > > > > > > > I've
> >> > > > > > > > > > > > > already
> >> > > > > > > > > > > > > > > done
> >> > > > > > > > > > > > > > > > > and
> >> > > > > > > > > > > > > > > > > > > didn't work. The cluster still works
> >> as a
> >> > > > > dynamic
> >> > > > > > > > one.
> >> > > > > > > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > > > > > > Twitter: @elderjava <
> >> > > > > > https://twitter.com/elderjava
> >> > > > > > > >
> >> > > > > > > > > > > > > > > > > > > Blog: http://eldermoraes.com
> >> > > > > > > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > > > > > > 2017-07-05 16:08 GMT-03:00 Romain
> >> > > > Manni-Bucau <
> >> > > > > > > > > > > > > > > rmannibucau@gmail.com
> >> > > > > > > > > > > > > > > > >:
> >> > > > > > > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > > > > > > > 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.moraes@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 <
> >> > > > > > > > > > > > > > > > rmannibucau@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.moraes@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://1
> >> > > > > > > > > > > > > > > > > > > > 72.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
> >> > > > > > > > > > > > > > > > > > > > > > notifyLifecycleListenerOnFailu
> >> re:
> >> > > > 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 <
> >> > > > > > > > > > > > > > > > > > rmannibucau@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.moraes@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 <
> >> > > > > > > > > > > > > > > > > > > > rmannibucau@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.moraes@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
> >> > > > > > > > > > > > > > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > >
> >> > > > > > > > > > > > > >
> >> > > > > > > > > > > > >
> >> > > > > > > > > > > >
> >> > > > > > > > > > >
> >> > > > > > > > > >
> >> > > > > > > > >
> >> > > > > > > >
> >> > > > > > >
> >> > > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >> --
> >> Sent from my iPhone
> >>
> >
> >
>

Re: Building a Static Discovery Cluster

Posted by Daniel Cunha <da...@apache.org>.
Hi Elder,

Look the section Contribute the this site.
http://tomee.apache.org/community/index.html

Thank you.

Daniel Cunha
https://twitter.com/dvlc_

On Jul 10, 2017 6:59 PM, "Elder Moraes" <el...@gmail.com> wrote:

Hello David, Romain and others,

I've just figured it out! Now I have a real static cluster, with session
being shared between nodes and avoiding unexpected members to joining in.

There are 3 key points:

   1. channelStartOptions="3" (to avoid using multicast);
   2. Receiver and Member using the same port;
   3. Turn one of the members into a LocalMember (instead of Member). It
   will work as the Replication Listener and Receiver Server.

By doing this you'll be able to see, after all the nodes are up and
running, the Group Channel showing confirmation of each node added. And
once you try to add another with unexpected IP, it is solemnly ignored...
;-)

How can I turn it into some documentation for Tomee? I have all the
details...



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



2017-07-10 14:40 GMT-03:00 Elder Moraes <el...@gmail.com>:

> Hey David!
>
> I've sent to the Tomcat list, but still didn't get any reply.
>
> Anyway I'm still trying to figure it out by myself and will be a pleasure
> to contribute with some docs once I do it.
>
>
> Tks!
>
> Twitter: @elderjava <https://twitter.com/elderjava>
> Blog: http://eldermoraes.com
>
>
>
>
> 2017-07-09 2:50 GMT-03:00 David Blevins <da...@gmail.com>:
>
>>  Hi Elder! just checking to see if you got the help you were looking for.
>>
>>  When you get it figured out any new docs would be amazing.
>>
>> On Fri, Jul 7, 2017 at 9:57 AM Elder Moraes <el...@gmail.com>
>> wrote:
>>
>> > Ok, will try them.
>> >
>> > Thanks!
>> >
>> >
>> > Twitter: @elderjava <https://twitter.com/elderjava>
>> > Blog: http://eldermoraes.com
>> >
>> >
>> >
>> > 2017-07-06 18:02 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:
>> >
>> > > outch, no more, didnt resetup a cluster since 2 years. But if you
>> push a
>> > > tomee-maven-plugin sample it would be quick to help.
>> > >
>> > > Side note: Tomcat list can also be more relevant since they fully own
>> > that
>> > > part.
>> > >
>> > >
>> > > 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-06 22:52 GMT+02:00 Elder Moraes <el...@gmail.com>:
>> > >
>> > > > Do you have some working example? Don't need to be dockerized.
>> > > >
>> > > >
>> > > > Twitter: @elderjava <https://twitter.com/elderjava>
>> > > > Blog: http://eldermoraes.com
>> > > >
>> > > >
>> > > > 2017-07-06 17:05 GMT-03:00 Romain Manni-Bucau <
>> rmannibucau@gmail.com>:
>> > > >
>> > > > > yes should help, you can
>> > > > > check org.apache.catalina.tribes.mem
>> bership.McastServiceImpl#start,
>> > > > > org.apache.catalina.tribes.group.ChannelCoordinator#internalStart
>> > > > > and org.apache.catalina.tribes.group.ChannelCoordinator#sendMess
>> age
>> > to
>> > > > see
>> > > > > it in action. It basically disable multicast services (threads)
>> and
>> > > > switch
>> > > > > it to send messages
>> > > > >
>> > > > >
>> > > > > 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-06 20:53 GMT+02:00 Elder Moraes <el...@gmail.com>:
>> > > > >
>> > > > > > The new logs are here:
>> > > > > >
>> > > > > > https://www.dropbox.com/s/1bdz8vf9pw0h42v/catalina.2017-
>> > > 07-06.log?dl=0
>> > > > > >
>> > > > > > Yes, it shows everything! ;-)
>> > > > > >
>> > > > > > The last four lines shows the unexpected member being added to
>> the
>> > > > > cluster.
>> > > > > >
>> > > > > > Don't seems like is a Docker problem, as the new member is
>> allowed
>> > by
>> > > > the
>> > > > > > cluster.
>> > > > > >
>> > > > > > The multicast setup that I've mentioned before has nothing to
>> do?
>> > > > > >
>> > > > > >
>> > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
>> > > > > > Blog: http://eldermoraes.com
>> > > > > >
>> > > > > >
>> > > > > >
>> > > > > > 2017-07-06 15:42 GMT-03:00 Romain Manni-Bucau <
>> > rmannibucau@gmail.com
>> > > >:
>> > > > > >
>> > > > > > > What are the new logs? ;)
>> > > > > > >
>> > > > > > > Tomcat logs everything showing if connection works, if
members
>> > are
>> > > > > > > accepted/connecting etc...
>> > > > > > >
>> > > > > > > From what i saw the docker setup is not matching the conf.
>> Maybe
>> > > > start
>> > > > > by
>> > > > > > > making it running without docker before dockerizing it.
>> > > > > > >
>> > > > > > > Side note: maybe you want local member in your cluster
>> (depends
>> > > your
>> > > > > goal
>> > > > > > > but was often done IIRC).
>> > > > > > >
>> > > > > > > Le 6 juil. 2017 19:50, "Elder Moraes" <elder.moraes@gmail.com
>
>> a
>> > > > > écrit :
>> > > > > > >
>> > > > > > > > Thanks guys.
>> > > > > > > >
>> > > > > > > > I'm not using docker-compose.
>> > > > > > > >
>> > > > > > > > Actually I've just fixed that errors logged just by
>> creating a
>> > > > > > > > docker-network for the cluster and defining a static IP for
>> > each
>> > > > > > member.
>> > > > > > > So
>> > > > > > > > the cluster is working well at this point.
>> > > > > > > >
>> > > > > > > > But it is still working as a dynamic one. I've found
>> somewhere
>> > > > that I
>> > > > > > > > should use channelStartOptions="3" to disable multicast and
>> > avoid
>> > > > > > > > unexpected members. But once I do it, the session is not
>> shared
>> > > > thru
>> > > > > > the
>> > > > > > > > cluster anymore.
>> > > > > > > >
>> > > > > > > > Any thoughts?
>> > > > > > > >
>> > > > > > > >
>> > > > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
>> > > > > > > > Blog: http://eldermoraes.com
>> > > > > > > >
>> > > > > > > >
>> > > > > > > > 2017-07-06 10:03 GMT-03:00 Thiago Veronezi <
>> > thiago@veronezi.org
>> > > >:
>> > > > > > > >
>> > > > > > > > > If you are using docker-compose, check the depends_on
>> option.
>> > > It
>> > > > > will
>> > > > > > > > > guarantee you have your name available. It does not
>> guarantee
>> > > you
>> > > > > > have
>> > > > > > > > the
>> > > > > > > > > service fully up and running though. If you need that
too,
>> > you
>> > > > will
>> > > > > > > need
>> > > > > > > > > the script to wait for the service behind that name to be
>> > > ready.
>> > > > > > > > >
>> > > > > > > > > []s,
>> > > > > > > > > Thiago.
>> > > > > > > > >
>> > > > > > > > >
>> > > > > > > > > On 5 Jul 2017 6:16 pm, "Romain Manni-Bucau" <
>> > > > rmannibucau@gmail.com
>> > > > > >
>> > > > > > > > wrote:
>> > > > > > > > >
>> > > > > > > > > > looks like docker dns is not working that well and
>> > > registration
>> > > > > > > fails -
>> > > > > > > > > or
>> > > > > > > > > > the startup is not ordered properly but result lead to
>> the
>> > > > same.
>> > > > > > > Often
>> > > > > > > > > saw
>> > > > > > > > > > docker-compose having a small bash loop to wait for the
>> > > > host/port
>> > > > > > > being
>> > > > > > > > > > accessible. Maybe that's what you need (yes it is ugly)
>> > > > > > > > > >
>> > > > > > > > > >
>> > > > > > > > > > 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-06 0:13 GMT+02:00 Elder Moraes <
>> > > elder.moraes@gmail.com
>> > > > >:
>> > > > > > > > > >
>> > > > > > > > > > > I've got the log and put here:
>> > > > > > > > > > >
>> > > > > > > > > > > https://www.dropbox.com/s/yxt3
>> ym1ucv1hwb3/catalina.2017-
>> > > > > > > > 07-05.log?dl=0
>> > > > > > > > > > >
>> > > > > > > > > > >
>> > > > > > > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
>> > > > > > > > > > > Blog: http://eldermoraes.com
>> > > > > > > > > > >
>> > > > > > > > > > >
>> > > > > > > > > > >
>> > > > > > > > > > > 2017-07-05 18:56 GMT-03:00 Romain Manni-Bucau <
>> > > > > > > rmannibucau@gmail.com
>> > > > > > > > >:
>> > > > > > > > > > >
>> > > > > > > > > > > > interesting, would be great to have debug log of
>> that
>> > > > > > clustering
>> > > > > > > > part
>> > > > > > > > > > > > (something like org.apache.catalina.tribes.level =
>> > > FINE),
>> > > > > > think
>> > > > > > > > the
>> > > > > > > > > > > static
>> > > > > > > > > > > > members are actually excluded of the cluster
reading
>> > this
>> > > > > error
>> > > > > > > > > > > >
>> > > > > > > > > > > >
>> > > > > > > > > > > > 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 23:53 GMT+02:00 Elder Moraes <
>> > > > > > elder.moraes@gmail.com
>> > > > > > > >:
>> > > > > > > > > > > >
>> > > > > > > > > > > > > Hmm, why not the tcpfailuredetector as a root
(/>)
>> > > > instead
>> > > > > of
>> > > > > > > > > > wrapping
>> > > > > > > > > > > > the
>> > > > > > > > > > > > > static membership one?
>> > > > > > > > > > > > >
>> > > > > > > > > > > > > Done e got this error:
>> > > > > > > > > > > > >
>> > > > > > > > > > > > > 05-Jul-2017 21:51:32.845 WARNING
>> > > > > > > > > > > > > [GroupChannel-Heartbeat[Catalina-Channel]-1]
>> > > > > > > > > > > > > sun.reflect.NativeMethodAccessorImpl.invoke
>> Unable to
>> > > > > > perform
>> > > > > > > > > > > heartbeat
>> > > > > > > > > > > > on
>> > > > > > > > > > > > > the TcpFailureDetector.
>> > > > > > > > > > > > >  java.lang.ArrayIndexOutOfBoundsException: 0
>> > > > > > > > > > > > >     at
>> > > > > > > > > > > > > org.apache.catalina.tribes.membership.MemberImpl.
>> > > > > > > > > > > > > hashCode(MemberImpl.java:570)
>> > > > > > > > > > > > >     at java.util.HashMap.hash(HashMap.java:338)
>> > > > > > > > > > > > >     at
>> > java.util.HashMap.containsKey(HashMap.java:595)
>> > > > > > > > > > > > >     at
>> > > > > > > > > > > > > org.apache.catalina.tribes.group.interceptors.
>> > > > > > > > TcpFailureDetector.
>> > > > > > > > > > > > > performBasicCheck(TcpFailureDetector.java:258)
>> > > > > > > > > > > > >     at
>> > > > > > > > > > > > > org.apache.catalina.tribes.group.interceptors.
>> > > > > > > > TcpFailureDetector.
>> > > > > > > > > > > > > checkMembers(TcpFailureDetector.java:225)
>> > > > > > > > > > > > >     at
>> > > > > > > > > > > > > org.apache.catalina.tribes.group.interceptors.
>> > > > > > > > > > > > > TcpFailureDetector.heartbeat(
>> > > > TcpFailureDetector.java:218)
>> > > > > > > > > > > > >     at
>> > > > > > > > > > > > > org.apache.catalina.tribes.
>> > > group.ChannelInterceptorBase.
>> > > > > > > > heartbeat(
>> > > > > > > > > > > > > ChannelInterceptorBase.java:100)
>> > > > > > > > > > > > >     at
>> > > > > > > > > > > > > org.apache.catalina.tribes.
>> > > group.GroupChannel.heartbeat(
>> > > > > > > > > > > > > GroupChannel.java:161)
>> > > > > > > > > > > > >     at
>> > > > > > > > > > > > > org.apache.catalina.tribes.group.GroupChannel$
>> > > > > > > > HeartbeatThread.run(
>> > > > > > > > > > > > > GroupChannel.java:719)
>> > > > > > > > > > > > >
>> > > > > > > > > > > > >
>> > > > > > > > > > > > >
>> > > > > > > > > > > > > Twitter: @elderjava <
>> https://twitter.com/elderjava>
>> > > > > > > > > > > > > Blog: http://eldermoraes.com
>> > > > > > > > > > > > >
>> > > > > > > > > > > > >
>> > > > > > > > > > > > >
>> > > > > > > > > > > > > 2017-07-05 18:47 GMT-03:00 Romain Manni-Bucau <
>> > > > > > > > > rmannibucau@gmail.com
>> > > > > > > > > > >:
>> > > > > > > > > > > > >
>> > > > > > > > > > > > > > Hmm, why not the tcpfailuredetector as a root
>> (/>)
>> > > > > instead
>> > > > > > of
>> > > > > > > > > > > wrapping
>> > > > > > > > > > > > > the
>> > > > > > > > > > > > > > static membership one?
>> > > > > > > > > > > > > >
>> > > > > > > > > > > > > > Also did you manage to get debug log of tomcat
>> > > cluster?
>> > > > > it
>> > > > > > > > helps
>> > > > > > > > > a
>> > > > > > > > > > > lot
>> > > > > > > > > > > > in
>> > > > > > > > > > > > > > general
>> > > > > > > > > > > > > >
>> > > > > > > > > > > > > >
>> > > > > > > > > > > > > > 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/r
>> mannibucau>
>> > |
>> > > > > > JavaEE
>> > > > > > > > > > Factory
>> > > > > > > > > > > > > > <https://javaeefactory-rmannibucau.rhcloud.com>
>> > > > > > > > > > > > > >
>> > > > > > > > > > > > > > 2017-07-05 23:43 GMT+02:00 Elder Moraes <
>> > > > > > > > elder.moraes@gmail.com
>> > > > > > > > > >:
>> > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > Did it. No errors found.
>> > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > If you want to have a look at the server.xml.
>> > Also
>> > > > I've
>> > > > > > > > undone
>> > > > > > > > > > the
>> > > > > > > > > > > > > > changes
>> > > > > > > > > > > > > > > I've made before.
>> > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > https://www.dropbox.com/s/
>> > > > > p3iknyku2rb3f3w/server.xml?dl=
>> > > > > > 0
>> > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > Twitter: @elderjava <
>> > https://twitter.com/elderjava
>> > > >
>> > > > > > > > > > > > > > > Blog: http://eldermoraes.com
>> > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > 2017-07-05 17:08 GMT-03:00 Romain Manni-Bucau
>> <
>> > > > > > > > > > > rmannibucau@gmail.com
>> > > > > > > > > > > > >:
>> > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > Gmail formatting doesnt help much but think
>> it
>> > > can
>> > > > > miss
>> > > > > > > > some
>> > > > > > > > > > > > closing
>> > > > > > > > > > > > > > > tags.
>> > > > > > > > > > > > > > > > Autoformat it in an ide, it should show it.
>> > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > Le 5 juil. 2017 21:28, "Elder Moraes" <
>> > > > > > > > > elder.moraes@gmail.com>
>> > > > > > > > > > a
>> > > > > > > > > > > > > > écrit :
>> > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > Actually I can't... :-(
>> > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > But if you could point me where I should
>> > look,
>> > > > > maybe
>> > > > > > I
>> > > > > > > > can
>> > > > > > > > > > > figure
>> > > > > > > > > > > > > it
>> > > > > > > > > > > > > > > out.
>> > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > Is that code that I've sent here correct?
>> No
>> > > > issue?
>> > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > Did I put the StaticMembershipInterceptor
>> at
>> > > > right
>> > > > > > > place?
>> > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > Twitter: @elderjava <
>> > > > https://twitter.com/elderjava
>> > > > > >
>> > > > > > > > > > > > > > > > > Blog: http://eldermoraes.com
>> > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > 2017-07-05 16:21 GMT-03:00 Romain
>> > Manni-Bucau <
>> > > > > > > > > > > > > rmannibucau@gmail.com
>> > > > > > > > > > > > > > >:
>> > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > > Do you think you can do a setup without
>> > > docker?
>> > > > > > Would
>> > > > > > > > be
>> > > > > > > > > > > easier
>> > > > > > > > > > > > > to
>> > > > > > > > > > > > > > > > check
>> > > > > > > > > > > > > > > > > > but sounds like a config issue.
>> > > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > > Le 5 juil. 2017 21:18, "Elder Moraes" <
>> > > > > > > > > > > elder.moraes@gmail.com>
>> > > > > > > > > > > > a
>> > > > > > > > > > > > > > > > écrit :
>> > > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > > > If you are talking about removing the
>> > > > > > McastService,
>> > > > > > > > > I've
>> > > > > > > > > > > > > already
>> > > > > > > > > > > > > > > done
>> > > > > > > > > > > > > > > > > and
>> > > > > > > > > > > > > > > > > > > didn't work. The cluster still works
>> as a
>> > > > > dynamic
>> > > > > > > > one.
>> > > > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > > > Twitter: @elderjava <
>> > > > > > https://twitter.com/elderjava
>> > > > > > > >
>> > > > > > > > > > > > > > > > > > > Blog: http://eldermoraes.com
>> > > > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > > > 2017-07-05 16:08 GMT-03:00 Romain
>> > > > Manni-Bucau <
>> > > > > > > > > > > > > > > rmannibucau@gmail.com
>> > > > > > > > > > > > > > > > >:
>> > > > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > > > > 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.moraes@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 <
>> > > > > > > > > > > > > > > > rmannibucau@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.moraes@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://1
>> > > > > > > > > > > > > > > > > > > > 72.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
>> > > > > > > > > > > > > > > > > > > > > > notifyLifecycleListenerOnFailu
>> re:
>> > > > 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 <
>> > > > > > > > > > > > > > > > > > rmannibucau@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.moraes@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 <
>> > > > > > > > > > > > > > > > > > > > rmannibucau@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.moraes@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
>> > > > > > > > > > > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > >
>> > > > > > > > > > > > > >
>> > > > > > > > > > > > >
>> > > > > > > > > > > >
>> > > > > > > > > > >
>> > > > > > > > > >
>> > > > > > > > >
>> > > > > > > >
>> > > > > > >
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> --
>> Sent from my iPhone
>>
>
>

Re: Building a Static Discovery Cluster

Posted by Elder Moraes <el...@gmail.com>.
Hello David, Romain and others,

I've just figured it out! Now I have a real static cluster, with session
being shared between nodes and avoiding unexpected members to joining in.

There are 3 key points:

   1. channelStartOptions="3" (to avoid using multicast);
   2. Receiver and Member using the same port;
   3. Turn one of the members into a LocalMember (instead of Member). It
   will work as the Replication Listener and Receiver Server.

By doing this you'll be able to see, after all the nodes are up and
running, the Group Channel showing confirmation of each node added. And
once you try to add another with unexpected IP, it is solemnly ignored...
;-)

How can I turn it into some documentation for Tomee? I have all the
details...



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



2017-07-10 14:40 GMT-03:00 Elder Moraes <el...@gmail.com>:

> Hey David!
>
> I've sent to the Tomcat list, but still didn't get any reply.
>
> Anyway I'm still trying to figure it out by myself and will be a pleasure
> to contribute with some docs once I do it.
>
>
> Tks!
>
> Twitter: @elderjava <https://twitter.com/elderjava>
> Blog: http://eldermoraes.com
>
>
>
>
> 2017-07-09 2:50 GMT-03:00 David Blevins <da...@gmail.com>:
>
>>  Hi Elder! just checking to see if you got the help you were looking for.
>>
>>  When you get it figured out any new docs would be amazing.
>>
>> On Fri, Jul 7, 2017 at 9:57 AM Elder Moraes <el...@gmail.com>
>> wrote:
>>
>> > Ok, will try them.
>> >
>> > Thanks!
>> >
>> >
>> > Twitter: @elderjava <https://twitter.com/elderjava>
>> > Blog: http://eldermoraes.com
>> >
>> >
>> >
>> > 2017-07-06 18:02 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:
>> >
>> > > outch, no more, didnt resetup a cluster since 2 years. But if you
>> push a
>> > > tomee-maven-plugin sample it would be quick to help.
>> > >
>> > > Side note: Tomcat list can also be more relevant since they fully own
>> > that
>> > > part.
>> > >
>> > >
>> > > 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-06 22:52 GMT+02:00 Elder Moraes <el...@gmail.com>:
>> > >
>> > > > Do you have some working example? Don't need to be dockerized.
>> > > >
>> > > >
>> > > > Twitter: @elderjava <https://twitter.com/elderjava>
>> > > > Blog: http://eldermoraes.com
>> > > >
>> > > >
>> > > > 2017-07-06 17:05 GMT-03:00 Romain Manni-Bucau <
>> rmannibucau@gmail.com>:
>> > > >
>> > > > > yes should help, you can
>> > > > > check org.apache.catalina.tribes.mem
>> bership.McastServiceImpl#start,
>> > > > > org.apache.catalina.tribes.group.ChannelCoordinator#internalStart
>> > > > > and org.apache.catalina.tribes.group.ChannelCoordinator#sendMess
>> age
>> > to
>> > > > see
>> > > > > it in action. It basically disable multicast services (threads)
>> and
>> > > > switch
>> > > > > it to send messages
>> > > > >
>> > > > >
>> > > > > 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-06 20:53 GMT+02:00 Elder Moraes <el...@gmail.com>:
>> > > > >
>> > > > > > The new logs are here:
>> > > > > >
>> > > > > > https://www.dropbox.com/s/1bdz8vf9pw0h42v/catalina.2017-
>> > > 07-06.log?dl=0
>> > > > > >
>> > > > > > Yes, it shows everything! ;-)
>> > > > > >
>> > > > > > The last four lines shows the unexpected member being added to
>> the
>> > > > > cluster.
>> > > > > >
>> > > > > > Don't seems like is a Docker problem, as the new member is
>> allowed
>> > by
>> > > > the
>> > > > > > cluster.
>> > > > > >
>> > > > > > The multicast setup that I've mentioned before has nothing to
>> do?
>> > > > > >
>> > > > > >
>> > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
>> > > > > > Blog: http://eldermoraes.com
>> > > > > >
>> > > > > >
>> > > > > >
>> > > > > > 2017-07-06 15:42 GMT-03:00 Romain Manni-Bucau <
>> > rmannibucau@gmail.com
>> > > >:
>> > > > > >
>> > > > > > > What are the new logs? ;)
>> > > > > > >
>> > > > > > > Tomcat logs everything showing if connection works, if members
>> > are
>> > > > > > > accepted/connecting etc...
>> > > > > > >
>> > > > > > > From what i saw the docker setup is not matching the conf.
>> Maybe
>> > > > start
>> > > > > by
>> > > > > > > making it running without docker before dockerizing it.
>> > > > > > >
>> > > > > > > Side note: maybe you want local member in your cluster
>> (depends
>> > > your
>> > > > > goal
>> > > > > > > but was often done IIRC).
>> > > > > > >
>> > > > > > > Le 6 juil. 2017 19:50, "Elder Moraes" <el...@gmail.com>
>> a
>> > > > > écrit :
>> > > > > > >
>> > > > > > > > Thanks guys.
>> > > > > > > >
>> > > > > > > > I'm not using docker-compose.
>> > > > > > > >
>> > > > > > > > Actually I've just fixed that errors logged just by
>> creating a
>> > > > > > > > docker-network for the cluster and defining a static IP for
>> > each
>> > > > > > member.
>> > > > > > > So
>> > > > > > > > the cluster is working well at this point.
>> > > > > > > >
>> > > > > > > > But it is still working as a dynamic one. I've found
>> somewhere
>> > > > that I
>> > > > > > > > should use channelStartOptions="3" to disable multicast and
>> > avoid
>> > > > > > > > unexpected members. But once I do it, the session is not
>> shared
>> > > > thru
>> > > > > > the
>> > > > > > > > cluster anymore.
>> > > > > > > >
>> > > > > > > > Any thoughts?
>> > > > > > > >
>> > > > > > > >
>> > > > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
>> > > > > > > > Blog: http://eldermoraes.com
>> > > > > > > >
>> > > > > > > >
>> > > > > > > > 2017-07-06 10:03 GMT-03:00 Thiago Veronezi <
>> > thiago@veronezi.org
>> > > >:
>> > > > > > > >
>> > > > > > > > > If you are using docker-compose, check the depends_on
>> option.
>> > > It
>> > > > > will
>> > > > > > > > > guarantee you have your name available. It does not
>> guarantee
>> > > you
>> > > > > > have
>> > > > > > > > the
>> > > > > > > > > service fully up and running though. If you need that too,
>> > you
>> > > > will
>> > > > > > > need
>> > > > > > > > > the script to wait for the service behind that name to be
>> > > ready.
>> > > > > > > > >
>> > > > > > > > > []s,
>> > > > > > > > > Thiago.
>> > > > > > > > >
>> > > > > > > > >
>> > > > > > > > > On 5 Jul 2017 6:16 pm, "Romain Manni-Bucau" <
>> > > > rmannibucau@gmail.com
>> > > > > >
>> > > > > > > > wrote:
>> > > > > > > > >
>> > > > > > > > > > looks like docker dns is not working that well and
>> > > registration
>> > > > > > > fails -
>> > > > > > > > > or
>> > > > > > > > > > the startup is not ordered properly but result lead to
>> the
>> > > > same.
>> > > > > > > Often
>> > > > > > > > > saw
>> > > > > > > > > > docker-compose having a small bash loop to wait for the
>> > > > host/port
>> > > > > > > being
>> > > > > > > > > > accessible. Maybe that's what you need (yes it is ugly)
>> > > > > > > > > >
>> > > > > > > > > >
>> > > > > > > > > > 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-06 0:13 GMT+02:00 Elder Moraes <
>> > > elder.moraes@gmail.com
>> > > > >:
>> > > > > > > > > >
>> > > > > > > > > > > I've got the log and put here:
>> > > > > > > > > > >
>> > > > > > > > > > > https://www.dropbox.com/s/yxt3
>> ym1ucv1hwb3/catalina.2017-
>> > > > > > > > 07-05.log?dl=0
>> > > > > > > > > > >
>> > > > > > > > > > >
>> > > > > > > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
>> > > > > > > > > > > Blog: http://eldermoraes.com
>> > > > > > > > > > >
>> > > > > > > > > > >
>> > > > > > > > > > >
>> > > > > > > > > > > 2017-07-05 18:56 GMT-03:00 Romain Manni-Bucau <
>> > > > > > > rmannibucau@gmail.com
>> > > > > > > > >:
>> > > > > > > > > > >
>> > > > > > > > > > > > interesting, would be great to have debug log of
>> that
>> > > > > > clustering
>> > > > > > > > part
>> > > > > > > > > > > > (something like org.apache.catalina.tribes.level =
>> > > FINE),
>> > > > > > think
>> > > > > > > > the
>> > > > > > > > > > > static
>> > > > > > > > > > > > members are actually excluded of the cluster reading
>> > this
>> > > > > error
>> > > > > > > > > > > >
>> > > > > > > > > > > >
>> > > > > > > > > > > > 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 23:53 GMT+02:00 Elder Moraes <
>> > > > > > elder.moraes@gmail.com
>> > > > > > > >:
>> > > > > > > > > > > >
>> > > > > > > > > > > > > Hmm, why not the tcpfailuredetector as a root (/>)
>> > > > instead
>> > > > > of
>> > > > > > > > > > wrapping
>> > > > > > > > > > > > the
>> > > > > > > > > > > > > static membership one?
>> > > > > > > > > > > > >
>> > > > > > > > > > > > > Done e got this error:
>> > > > > > > > > > > > >
>> > > > > > > > > > > > > 05-Jul-2017 21:51:32.845 WARNING
>> > > > > > > > > > > > > [GroupChannel-Heartbeat[Catalina-Channel]-1]
>> > > > > > > > > > > > > sun.reflect.NativeMethodAccessorImpl.invoke
>> Unable to
>> > > > > > perform
>> > > > > > > > > > > heartbeat
>> > > > > > > > > > > > on
>> > > > > > > > > > > > > the TcpFailureDetector.
>> > > > > > > > > > > > >  java.lang.ArrayIndexOutOfBoundsException: 0
>> > > > > > > > > > > > >     at
>> > > > > > > > > > > > > org.apache.catalina.tribes.membership.MemberImpl.
>> > > > > > > > > > > > > hashCode(MemberImpl.java:570)
>> > > > > > > > > > > > >     at java.util.HashMap.hash(HashMap.java:338)
>> > > > > > > > > > > > >     at
>> > java.util.HashMap.containsKey(HashMap.java:595)
>> > > > > > > > > > > > >     at
>> > > > > > > > > > > > > org.apache.catalina.tribes.group.interceptors.
>> > > > > > > > TcpFailureDetector.
>> > > > > > > > > > > > > performBasicCheck(TcpFailureDetector.java:258)
>> > > > > > > > > > > > >     at
>> > > > > > > > > > > > > org.apache.catalina.tribes.group.interceptors.
>> > > > > > > > TcpFailureDetector.
>> > > > > > > > > > > > > checkMembers(TcpFailureDetector.java:225)
>> > > > > > > > > > > > >     at
>> > > > > > > > > > > > > org.apache.catalina.tribes.group.interceptors.
>> > > > > > > > > > > > > TcpFailureDetector.heartbeat(
>> > > > TcpFailureDetector.java:218)
>> > > > > > > > > > > > >     at
>> > > > > > > > > > > > > org.apache.catalina.tribes.
>> > > group.ChannelInterceptorBase.
>> > > > > > > > heartbeat(
>> > > > > > > > > > > > > ChannelInterceptorBase.java:100)
>> > > > > > > > > > > > >     at
>> > > > > > > > > > > > > org.apache.catalina.tribes.
>> > > group.GroupChannel.heartbeat(
>> > > > > > > > > > > > > GroupChannel.java:161)
>> > > > > > > > > > > > >     at
>> > > > > > > > > > > > > org.apache.catalina.tribes.group.GroupChannel$
>> > > > > > > > HeartbeatThread.run(
>> > > > > > > > > > > > > GroupChannel.java:719)
>> > > > > > > > > > > > >
>> > > > > > > > > > > > >
>> > > > > > > > > > > > >
>> > > > > > > > > > > > > Twitter: @elderjava <
>> https://twitter.com/elderjava>
>> > > > > > > > > > > > > Blog: http://eldermoraes.com
>> > > > > > > > > > > > >
>> > > > > > > > > > > > >
>> > > > > > > > > > > > >
>> > > > > > > > > > > > > 2017-07-05 18:47 GMT-03:00 Romain Manni-Bucau <
>> > > > > > > > > rmannibucau@gmail.com
>> > > > > > > > > > >:
>> > > > > > > > > > > > >
>> > > > > > > > > > > > > > Hmm, why not the tcpfailuredetector as a root
>> (/>)
>> > > > > instead
>> > > > > > of
>> > > > > > > > > > > wrapping
>> > > > > > > > > > > > > the
>> > > > > > > > > > > > > > static membership one?
>> > > > > > > > > > > > > >
>> > > > > > > > > > > > > > Also did you manage to get debug log of tomcat
>> > > cluster?
>> > > > > it
>> > > > > > > > helps
>> > > > > > > > > a
>> > > > > > > > > > > lot
>> > > > > > > > > > > > in
>> > > > > > > > > > > > > > general
>> > > > > > > > > > > > > >
>> > > > > > > > > > > > > >
>> > > > > > > > > > > > > > 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/r
>> mannibucau>
>> > |
>> > > > > > JavaEE
>> > > > > > > > > > Factory
>> > > > > > > > > > > > > > <https://javaeefactory-rmannibucau.rhcloud.com>
>> > > > > > > > > > > > > >
>> > > > > > > > > > > > > > 2017-07-05 23:43 GMT+02:00 Elder Moraes <
>> > > > > > > > elder.moraes@gmail.com
>> > > > > > > > > >:
>> > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > Did it. No errors found.
>> > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > If you want to have a look at the server.xml.
>> > Also
>> > > > I've
>> > > > > > > > undone
>> > > > > > > > > > the
>> > > > > > > > > > > > > > changes
>> > > > > > > > > > > > > > > I've made before.
>> > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > https://www.dropbox.com/s/
>> > > > > p3iknyku2rb3f3w/server.xml?dl=
>> > > > > > 0
>> > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > Twitter: @elderjava <
>> > https://twitter.com/elderjava
>> > > >
>> > > > > > > > > > > > > > > Blog: http://eldermoraes.com
>> > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > 2017-07-05 17:08 GMT-03:00 Romain Manni-Bucau
>> <
>> > > > > > > > > > > rmannibucau@gmail.com
>> > > > > > > > > > > > >:
>> > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > Gmail formatting doesnt help much but think
>> it
>> > > can
>> > > > > miss
>> > > > > > > > some
>> > > > > > > > > > > > closing
>> > > > > > > > > > > > > > > tags.
>> > > > > > > > > > > > > > > > Autoformat it in an ide, it should show it.
>> > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > Le 5 juil. 2017 21:28, "Elder Moraes" <
>> > > > > > > > > elder.moraes@gmail.com>
>> > > > > > > > > > a
>> > > > > > > > > > > > > > écrit :
>> > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > Actually I can't... :-(
>> > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > But if you could point me where I should
>> > look,
>> > > > > maybe
>> > > > > > I
>> > > > > > > > can
>> > > > > > > > > > > figure
>> > > > > > > > > > > > > it
>> > > > > > > > > > > > > > > out.
>> > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > Is that code that I've sent here correct?
>> No
>> > > > issue?
>> > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > Did I put the StaticMembershipInterceptor
>> at
>> > > > right
>> > > > > > > place?
>> > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > Twitter: @elderjava <
>> > > > https://twitter.com/elderjava
>> > > > > >
>> > > > > > > > > > > > > > > > > Blog: http://eldermoraes.com
>> > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > 2017-07-05 16:21 GMT-03:00 Romain
>> > Manni-Bucau <
>> > > > > > > > > > > > > rmannibucau@gmail.com
>> > > > > > > > > > > > > > >:
>> > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > > Do you think you can do a setup without
>> > > docker?
>> > > > > > Would
>> > > > > > > > be
>> > > > > > > > > > > easier
>> > > > > > > > > > > > > to
>> > > > > > > > > > > > > > > > check
>> > > > > > > > > > > > > > > > > > but sounds like a config issue.
>> > > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > > Le 5 juil. 2017 21:18, "Elder Moraes" <
>> > > > > > > > > > > elder.moraes@gmail.com>
>> > > > > > > > > > > > a
>> > > > > > > > > > > > > > > > écrit :
>> > > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > > > If you are talking about removing the
>> > > > > > McastService,
>> > > > > > > > > I've
>> > > > > > > > > > > > > already
>> > > > > > > > > > > > > > > done
>> > > > > > > > > > > > > > > > > and
>> > > > > > > > > > > > > > > > > > > didn't work. The cluster still works
>> as a
>> > > > > dynamic
>> > > > > > > > one.
>> > > > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > > > Twitter: @elderjava <
>> > > > > > https://twitter.com/elderjava
>> > > > > > > >
>> > > > > > > > > > > > > > > > > > > Blog: http://eldermoraes.com
>> > > > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > > > 2017-07-05 16:08 GMT-03:00 Romain
>> > > > Manni-Bucau <
>> > > > > > > > > > > > > > > rmannibucau@gmail.com
>> > > > > > > > > > > > > > > > >:
>> > > > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > > > > 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.moraes@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 <
>> > > > > > > > > > > > > > > > rmannibucau@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.moraes@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://1
>> > > > > > > > > > > > > > > > > > > > 72.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
>> > > > > > > > > > > > > > > > > > > > > > notifyLifecycleListenerOnFailu
>> re:
>> > > > 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 <
>> > > > > > > > > > > > > > > > > > rmannibucau@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.moraes@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 <
>> > > > > > > > > > > > > > > > > > > > rmannibucau@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.moraes@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
>> > > > > > > > > > > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > > >
>> > > > > > > > > > > > > > >
>> > > > > > > > > > > > > >
>> > > > > > > > > > > > >
>> > > > > > > > > > > >
>> > > > > > > > > > >
>> > > > > > > > > >
>> > > > > > > > >
>> > > > > > > >
>> > > > > > >
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> --
>> Sent from my iPhone
>>
>
>

Re: Building a Static Discovery Cluster

Posted by Elder Moraes <el...@gmail.com>.
Hey David!

I've sent to the Tomcat list, but still didn't get any reply.

Anyway I'm still trying to figure it out by myself and will be a pleasure
to contribute with some docs once I do it.


Tks!

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




2017-07-09 2:50 GMT-03:00 David Blevins <da...@gmail.com>:

>  Hi Elder! just checking to see if you got the help you were looking for.
>
>  When you get it figured out any new docs would be amazing.
>
> On Fri, Jul 7, 2017 at 9:57 AM Elder Moraes <el...@gmail.com>
> wrote:
>
> > Ok, will try them.
> >
> > Thanks!
> >
> >
> > Twitter: @elderjava <https://twitter.com/elderjava>
> > Blog: http://eldermoraes.com
> >
> >
> >
> > 2017-07-06 18:02 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:
> >
> > > outch, no more, didnt resetup a cluster since 2 years. But if you push
> a
> > > tomee-maven-plugin sample it would be quick to help.
> > >
> > > Side note: Tomcat list can also be more relevant since they fully own
> > that
> > > part.
> > >
> > >
> > > 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-06 22:52 GMT+02:00 Elder Moraes <el...@gmail.com>:
> > >
> > > > Do you have some working example? Don't need to be dockerized.
> > > >
> > > >
> > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > Blog: http://eldermoraes.com
> > > >
> > > >
> > > > 2017-07-06 17:05 GMT-03:00 Romain Manni-Bucau <rmannibucau@gmail.com
> >:
> > > >
> > > > > yes should help, you can
> > > > > check org.apache.catalina.tribes.membership.McastServiceImpl#
> start,
> > > > > org.apache.catalina.tribes.group.ChannelCoordinator#internalStart
> > > > > and org.apache.catalina.tribes.group.ChannelCoordinator#
> sendMessage
> > to
> > > > see
> > > > > it in action. It basically disable multicast services (threads) and
> > > > switch
> > > > > it to send messages
> > > > >
> > > > >
> > > > > 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-06 20:53 GMT+02:00 Elder Moraes <el...@gmail.com>:
> > > > >
> > > > > > The new logs are here:
> > > > > >
> > > > > > https://www.dropbox.com/s/1bdz8vf9pw0h42v/catalina.2017-
> > > 07-06.log?dl=0
> > > > > >
> > > > > > Yes, it shows everything! ;-)
> > > > > >
> > > > > > The last four lines shows the unexpected member being added to
> the
> > > > > cluster.
> > > > > >
> > > > > > Don't seems like is a Docker problem, as the new member is
> allowed
> > by
> > > > the
> > > > > > cluster.
> > > > > >
> > > > > > The multicast setup that I've mentioned before has nothing to do?
> > > > > >
> > > > > >
> > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > Blog: http://eldermoraes.com
> > > > > >
> > > > > >
> > > > > >
> > > > > > 2017-07-06 15:42 GMT-03:00 Romain Manni-Bucau <
> > rmannibucau@gmail.com
> > > >:
> > > > > >
> > > > > > > What are the new logs? ;)
> > > > > > >
> > > > > > > Tomcat logs everything showing if connection works, if members
> > are
> > > > > > > accepted/connecting etc...
> > > > > > >
> > > > > > > From what i saw the docker setup is not matching the conf.
> Maybe
> > > > start
> > > > > by
> > > > > > > making it running without docker before dockerizing it.
> > > > > > >
> > > > > > > Side note: maybe you want local member in your cluster (depends
> > > your
> > > > > goal
> > > > > > > but was often done IIRC).
> > > > > > >
> > > > > > > Le 6 juil. 2017 19:50, "Elder Moraes" <el...@gmail.com>
> a
> > > > > écrit :
> > > > > > >
> > > > > > > > Thanks guys.
> > > > > > > >
> > > > > > > > I'm not using docker-compose.
> > > > > > > >
> > > > > > > > Actually I've just fixed that errors logged just by creating
> a
> > > > > > > > docker-network for the cluster and defining a static IP for
> > each
> > > > > > member.
> > > > > > > So
> > > > > > > > the cluster is working well at this point.
> > > > > > > >
> > > > > > > > But it is still working as a dynamic one. I've found
> somewhere
> > > > that I
> > > > > > > > should use channelStartOptions="3" to disable multicast and
> > avoid
> > > > > > > > unexpected members. But once I do it, the session is not
> shared
> > > > thru
> > > > > > the
> > > > > > > > cluster anymore.
> > > > > > > >
> > > > > > > > Any thoughts?
> > > > > > > >
> > > > > > > >
> > > > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > > > Blog: http://eldermoraes.com
> > > > > > > >
> > > > > > > >
> > > > > > > > 2017-07-06 10:03 GMT-03:00 Thiago Veronezi <
> > thiago@veronezi.org
> > > >:
> > > > > > > >
> > > > > > > > > If you are using docker-compose, check the depends_on
> option.
> > > It
> > > > > will
> > > > > > > > > guarantee you have your name available. It does not
> guarantee
> > > you
> > > > > > have
> > > > > > > > the
> > > > > > > > > service fully up and running though. If you need that too,
> > you
> > > > will
> > > > > > > need
> > > > > > > > > the script to wait for the service behind that name to be
> > > ready.
> > > > > > > > >
> > > > > > > > > []s,
> > > > > > > > > Thiago.
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > On 5 Jul 2017 6:16 pm, "Romain Manni-Bucau" <
> > > > rmannibucau@gmail.com
> > > > > >
> > > > > > > > wrote:
> > > > > > > > >
> > > > > > > > > > looks like docker dns is not working that well and
> > > registration
> > > > > > > fails -
> > > > > > > > > or
> > > > > > > > > > the startup is not ordered properly but result lead to
> the
> > > > same.
> > > > > > > Often
> > > > > > > > > saw
> > > > > > > > > > docker-compose having a small bash loop to wait for the
> > > > host/port
> > > > > > > being
> > > > > > > > > > accessible. Maybe that's what you need (yes it is ugly)
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > 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-06 0:13 GMT+02:00 Elder Moraes <
> > > elder.moraes@gmail.com
> > > > >:
> > > > > > > > > >
> > > > > > > > > > > I've got the log and put here:
> > > > > > > > > > >
> > > > > > > > > > > https://www.dropbox.com/s/
> yxt3ym1ucv1hwb3/catalina.2017-
> > > > > > > > 07-05.log?dl=0
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > > > > > > Blog: http://eldermoraes.com
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > 2017-07-05 18:56 GMT-03:00 Romain Manni-Bucau <
> > > > > > > rmannibucau@gmail.com
> > > > > > > > >:
> > > > > > > > > > >
> > > > > > > > > > > > interesting, would be great to have debug log of that
> > > > > > clustering
> > > > > > > > part
> > > > > > > > > > > > (something like org.apache.catalina.tribes.level =
> > > FINE),
> > > > > > think
> > > > > > > > the
> > > > > > > > > > > static
> > > > > > > > > > > > members are actually excluded of the cluster reading
> > this
> > > > > error
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > 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 23:53 GMT+02:00 Elder Moraes <
> > > > > > elder.moraes@gmail.com
> > > > > > > >:
> > > > > > > > > > > >
> > > > > > > > > > > > > Hmm, why not the tcpfailuredetector as a root (/>)
> > > > instead
> > > > > of
> > > > > > > > > > wrapping
> > > > > > > > > > > > the
> > > > > > > > > > > > > static membership one?
> > > > > > > > > > > > >
> > > > > > > > > > > > > Done e got this error:
> > > > > > > > > > > > >
> > > > > > > > > > > > > 05-Jul-2017 21:51:32.845 WARNING
> > > > > > > > > > > > > [GroupChannel-Heartbeat[Catalina-Channel]-1]
> > > > > > > > > > > > > sun.reflect.NativeMethodAccessorImpl.invoke
> Unable to
> > > > > > perform
> > > > > > > > > > > heartbeat
> > > > > > > > > > > > on
> > > > > > > > > > > > > the TcpFailureDetector.
> > > > > > > > > > > > >  java.lang.ArrayIndexOutOfBoundsException: 0
> > > > > > > > > > > > >     at
> > > > > > > > > > > > > org.apache.catalina.tribes.membership.MemberImpl.
> > > > > > > > > > > > > hashCode(MemberImpl.java:570)
> > > > > > > > > > > > >     at java.util.HashMap.hash(HashMap.java:338)
> > > > > > > > > > > > >     at
> > java.util.HashMap.containsKey(HashMap.java:595)
> > > > > > > > > > > > >     at
> > > > > > > > > > > > > org.apache.catalina.tribes.group.interceptors.
> > > > > > > > TcpFailureDetector.
> > > > > > > > > > > > > performBasicCheck(TcpFailureDetector.java:258)
> > > > > > > > > > > > >     at
> > > > > > > > > > > > > org.apache.catalina.tribes.group.interceptors.
> > > > > > > > TcpFailureDetector.
> > > > > > > > > > > > > checkMembers(TcpFailureDetector.java:225)
> > > > > > > > > > > > >     at
> > > > > > > > > > > > > org.apache.catalina.tribes.group.interceptors.
> > > > > > > > > > > > > TcpFailureDetector.heartbeat(
> > > > TcpFailureDetector.java:218)
> > > > > > > > > > > > >     at
> > > > > > > > > > > > > org.apache.catalina.tribes.
> > > group.ChannelInterceptorBase.
> > > > > > > > heartbeat(
> > > > > > > > > > > > > ChannelInterceptorBase.java:100)
> > > > > > > > > > > > >     at
> > > > > > > > > > > > > org.apache.catalina.tribes.
> > > group.GroupChannel.heartbeat(
> > > > > > > > > > > > > GroupChannel.java:161)
> > > > > > > > > > > > >     at
> > > > > > > > > > > > > org.apache.catalina.tribes.group.GroupChannel$
> > > > > > > > HeartbeatThread.run(
> > > > > > > > > > > > > GroupChannel.java:719)
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > > Twitter: @elderjava <https://twitter.com/elderjava
> >
> > > > > > > > > > > > > Blog: http://eldermoraes.com
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > > 2017-07-05 18:47 GMT-03:00 Romain Manni-Bucau <
> > > > > > > > > rmannibucau@gmail.com
> > > > > > > > > > >:
> > > > > > > > > > > > >
> > > > > > > > > > > > > > Hmm, why not the tcpfailuredetector as a root
> (/>)
> > > > > instead
> > > > > > of
> > > > > > > > > > > wrapping
> > > > > > > > > > > > > the
> > > > > > > > > > > > > > static membership one?
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Also did you manage to get debug log of tomcat
> > > cluster?
> > > > > it
> > > > > > > > helps
> > > > > > > > > a
> > > > > > > > > > > lot
> > > > > > > > > > > > in
> > > > > > > > > > > > > > general
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > 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 23:43 GMT+02:00 Elder Moraes <
> > > > > > > > elder.moraes@gmail.com
> > > > > > > > > >:
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Did it. No errors found.
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > If you want to have a look at the server.xml.
> > Also
> > > > I've
> > > > > > > > undone
> > > > > > > > > > the
> > > > > > > > > > > > > > changes
> > > > > > > > > > > > > > > I've made before.
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > https://www.dropbox.com/s/
> > > > > p3iknyku2rb3f3w/server.xml?dl=
> > > > > > 0
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Twitter: @elderjava <
> > https://twitter.com/elderjava
> > > >
> > > > > > > > > > > > > > > Blog: http://eldermoraes.com
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > 2017-07-05 17:08 GMT-03:00 Romain Manni-Bucau <
> > > > > > > > > > > rmannibucau@gmail.com
> > > > > > > > > > > > >:
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > Gmail formatting doesnt help much but think
> it
> > > can
> > > > > miss
> > > > > > > > some
> > > > > > > > > > > > closing
> > > > > > > > > > > > > > > tags.
> > > > > > > > > > > > > > > > Autoformat it in an ide, it should show it.
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > Le 5 juil. 2017 21:28, "Elder Moraes" <
> > > > > > > > > elder.moraes@gmail.com>
> > > > > > > > > > a
> > > > > > > > > > > > > > écrit :
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > Actually I can't... :-(
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > But if you could point me where I should
> > look,
> > > > > maybe
> > > > > > I
> > > > > > > > can
> > > > > > > > > > > figure
> > > > > > > > > > > > > it
> > > > > > > > > > > > > > > out.
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > Is that code that I've sent here correct?
> No
> > > > issue?
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > Did I put the StaticMembershipInterceptor
> at
> > > > right
> > > > > > > place?
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > Twitter: @elderjava <
> > > > https://twitter.com/elderjava
> > > > > >
> > > > > > > > > > > > > > > > > Blog: http://eldermoraes.com
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > 2017-07-05 16:21 GMT-03:00 Romain
> > Manni-Bucau <
> > > > > > > > > > > > > rmannibucau@gmail.com
> > > > > > > > > > > > > > >:
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > Do you think you can do a setup without
> > > docker?
> > > > > > Would
> > > > > > > > be
> > > > > > > > > > > easier
> > > > > > > > > > > > > to
> > > > > > > > > > > > > > > > check
> > > > > > > > > > > > > > > > > > but sounds like a config issue.
> > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > Le 5 juil. 2017 21:18, "Elder Moraes" <
> > > > > > > > > > > elder.moraes@gmail.com>
> > > > > > > > > > > > a
> > > > > > > > > > > > > > > > écrit :
> > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > > If you are talking about removing the
> > > > > > McastService,
> > > > > > > > > I've
> > > > > > > > > > > > > already
> > > > > > > > > > > > > > > done
> > > > > > > > > > > > > > > > > and
> > > > > > > > > > > > > > > > > > > didn't work. The cluster still works
> as a
> > > > > dynamic
> > > > > > > > one.
> > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > > Twitter: @elderjava <
> > > > > > https://twitter.com/elderjava
> > > > > > > >
> > > > > > > > > > > > > > > > > > > Blog: http://eldermoraes.com
> > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > > 2017-07-05 16:08 GMT-03:00 Romain
> > > > Manni-Bucau <
> > > > > > > > > > > > > > > rmannibucau@gmail.com
> > > > > > > > > > > > > > > > >:
> > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > > > 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.moraes@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 <
> > > > > > > > > > > > > > > > rmannibucau@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.moraes@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://1
> > > > > > > > > > > > > > > > > > > > 72.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
> > > > > > > > > > > > > > > > > > > > > > notifyLifecycleListenerOnFailu
> re:
> > > > 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 <
> > > > > > > > > > > > > > > > > > rmannibucau@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.moraes@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 <
> > > > > > > > > > > > > > > > > > > > rmannibucau@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.moraes@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
> > > > > > > > > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> --
> Sent from my iPhone
>

Re: Building a Static Discovery Cluster

Posted by David Blevins <da...@gmail.com>.
 Hi Elder! just checking to see if you got the help you were looking for.

 When you get it figured out any new docs would be amazing.

On Fri, Jul 7, 2017 at 9:57 AM Elder Moraes <el...@gmail.com> wrote:

> Ok, will try them.
>
> Thanks!
>
>
> Twitter: @elderjava <https://twitter.com/elderjava>
> Blog: http://eldermoraes.com
>
>
>
> 2017-07-06 18:02 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:
>
> > outch, no more, didnt resetup a cluster since 2 years. But if you push a
> > tomee-maven-plugin sample it would be quick to help.
> >
> > Side note: Tomcat list can also be more relevant since they fully own
> that
> > part.
> >
> >
> > 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-06 22:52 GMT+02:00 Elder Moraes <el...@gmail.com>:
> >
> > > Do you have some working example? Don't need to be dockerized.
> > >
> > >
> > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > Blog: http://eldermoraes.com
> > >
> > >
> > > 2017-07-06 17:05 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:
> > >
> > > > yes should help, you can
> > > > check org.apache.catalina.tribes.membership.McastServiceImpl#start,
> > > > org.apache.catalina.tribes.group.ChannelCoordinator#internalStart
> > > > and org.apache.catalina.tribes.group.ChannelCoordinator#sendMessage
> to
> > > see
> > > > it in action. It basically disable multicast services (threads) and
> > > switch
> > > > it to send messages
> > > >
> > > >
> > > > 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-06 20:53 GMT+02:00 Elder Moraes <el...@gmail.com>:
> > > >
> > > > > The new logs are here:
> > > > >
> > > > > https://www.dropbox.com/s/1bdz8vf9pw0h42v/catalina.2017-
> > 07-06.log?dl=0
> > > > >
> > > > > Yes, it shows everything! ;-)
> > > > >
> > > > > The last four lines shows the unexpected member being added to the
> > > > cluster.
> > > > >
> > > > > Don't seems like is a Docker problem, as the new member is allowed
> by
> > > the
> > > > > cluster.
> > > > >
> > > > > The multicast setup that I've mentioned before has nothing to do?
> > > > >
> > > > >
> > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > Blog: http://eldermoraes.com
> > > > >
> > > > >
> > > > >
> > > > > 2017-07-06 15:42 GMT-03:00 Romain Manni-Bucau <
> rmannibucau@gmail.com
> > >:
> > > > >
> > > > > > What are the new logs? ;)
> > > > > >
> > > > > > Tomcat logs everything showing if connection works, if members
> are
> > > > > > accepted/connecting etc...
> > > > > >
> > > > > > From what i saw the docker setup is not matching the conf. Maybe
> > > start
> > > > by
> > > > > > making it running without docker before dockerizing it.
> > > > > >
> > > > > > Side note: maybe you want local member in your cluster (depends
> > your
> > > > goal
> > > > > > but was often done IIRC).
> > > > > >
> > > > > > Le 6 juil. 2017 19:50, "Elder Moraes" <el...@gmail.com> a
> > > > écrit :
> > > > > >
> > > > > > > Thanks guys.
> > > > > > >
> > > > > > > I'm not using docker-compose.
> > > > > > >
> > > > > > > Actually I've just fixed that errors logged just by creating a
> > > > > > > docker-network for the cluster and defining a static IP for
> each
> > > > > member.
> > > > > > So
> > > > > > > the cluster is working well at this point.
> > > > > > >
> > > > > > > But it is still working as a dynamic one. I've found somewhere
> > > that I
> > > > > > > should use channelStartOptions="3" to disable multicast and
> avoid
> > > > > > > unexpected members. But once I do it, the session is not shared
> > > thru
> > > > > the
> > > > > > > cluster anymore.
> > > > > > >
> > > > > > > Any thoughts?
> > > > > > >
> > > > > > >
> > > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > > Blog: http://eldermoraes.com
> > > > > > >
> > > > > > >
> > > > > > > 2017-07-06 10:03 GMT-03:00 Thiago Veronezi <
> thiago@veronezi.org
> > >:
> > > > > > >
> > > > > > > > If you are using docker-compose, check the depends_on option.
> > It
> > > > will
> > > > > > > > guarantee you have your name available. It does not guarantee
> > you
> > > > > have
> > > > > > > the
> > > > > > > > service fully up and running though. If you need that too,
> you
> > > will
> > > > > > need
> > > > > > > > the script to wait for the service behind that name to be
> > ready.
> > > > > > > >
> > > > > > > > []s,
> > > > > > > > Thiago.
> > > > > > > >
> > > > > > > >
> > > > > > > > On 5 Jul 2017 6:16 pm, "Romain Manni-Bucau" <
> > > rmannibucau@gmail.com
> > > > >
> > > > > > > wrote:
> > > > > > > >
> > > > > > > > > looks like docker dns is not working that well and
> > registration
> > > > > > fails -
> > > > > > > > or
> > > > > > > > > the startup is not ordered properly but result lead to the
> > > same.
> > > > > > Often
> > > > > > > > saw
> > > > > > > > > docker-compose having a small bash loop to wait for the
> > > host/port
> > > > > > being
> > > > > > > > > accessible. Maybe that's what you need (yes it is ugly)
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > 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-06 0:13 GMT+02:00 Elder Moraes <
> > elder.moraes@gmail.com
> > > >:
> > > > > > > > >
> > > > > > > > > > I've got the log and put here:
> > > > > > > > > >
> > > > > > > > > > https://www.dropbox.com/s/yxt3ym1ucv1hwb3/catalina.2017-
> > > > > > > 07-05.log?dl=0
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > > > > > Blog: http://eldermoraes.com
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > 2017-07-05 18:56 GMT-03:00 Romain Manni-Bucau <
> > > > > > rmannibucau@gmail.com
> > > > > > > >:
> > > > > > > > > >
> > > > > > > > > > > interesting, would be great to have debug log of that
> > > > > clustering
> > > > > > > part
> > > > > > > > > > > (something like org.apache.catalina.tribes.level =
> > FINE),
> > > > > think
> > > > > > > the
> > > > > > > > > > static
> > > > > > > > > > > members are actually excluded of the cluster reading
> this
> > > > error
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > 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 23:53 GMT+02:00 Elder Moraes <
> > > > > elder.moraes@gmail.com
> > > > > > >:
> > > > > > > > > > >
> > > > > > > > > > > > Hmm, why not the tcpfailuredetector as a root (/>)
> > > instead
> > > > of
> > > > > > > > > wrapping
> > > > > > > > > > > the
> > > > > > > > > > > > static membership one?
> > > > > > > > > > > >
> > > > > > > > > > > > Done e got this error:
> > > > > > > > > > > >
> > > > > > > > > > > > 05-Jul-2017 21:51:32.845 WARNING
> > > > > > > > > > > > [GroupChannel-Heartbeat[Catalina-Channel]-1]
> > > > > > > > > > > > sun.reflect.NativeMethodAccessorImpl.invoke Unable to
> > > > > perform
> > > > > > > > > > heartbeat
> > > > > > > > > > > on
> > > > > > > > > > > > the TcpFailureDetector.
> > > > > > > > > > > >  java.lang.ArrayIndexOutOfBoundsException: 0
> > > > > > > > > > > >     at
> > > > > > > > > > > > org.apache.catalina.tribes.membership.MemberImpl.
> > > > > > > > > > > > hashCode(MemberImpl.java:570)
> > > > > > > > > > > >     at java.util.HashMap.hash(HashMap.java:338)
> > > > > > > > > > > >     at
> java.util.HashMap.containsKey(HashMap.java:595)
> > > > > > > > > > > >     at
> > > > > > > > > > > > org.apache.catalina.tribes.group.interceptors.
> > > > > > > TcpFailureDetector.
> > > > > > > > > > > > performBasicCheck(TcpFailureDetector.java:258)
> > > > > > > > > > > >     at
> > > > > > > > > > > > org.apache.catalina.tribes.group.interceptors.
> > > > > > > TcpFailureDetector.
> > > > > > > > > > > > checkMembers(TcpFailureDetector.java:225)
> > > > > > > > > > > >     at
> > > > > > > > > > > > org.apache.catalina.tribes.group.interceptors.
> > > > > > > > > > > > TcpFailureDetector.heartbeat(
> > > TcpFailureDetector.java:218)
> > > > > > > > > > > >     at
> > > > > > > > > > > > org.apache.catalina.tribes.
> > group.ChannelInterceptorBase.
> > > > > > > heartbeat(
> > > > > > > > > > > > ChannelInterceptorBase.java:100)
> > > > > > > > > > > >     at
> > > > > > > > > > > > org.apache.catalina.tribes.
> > group.GroupChannel.heartbeat(
> > > > > > > > > > > > GroupChannel.java:161)
> > > > > > > > > > > >     at
> > > > > > > > > > > > org.apache.catalina.tribes.group.GroupChannel$
> > > > > > > HeartbeatThread.run(
> > > > > > > > > > > > GroupChannel.java:719)
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > > > > > > > Blog: http://eldermoraes.com
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > 2017-07-05 18:47 GMT-03:00 Romain Manni-Bucau <
> > > > > > > > rmannibucau@gmail.com
> > > > > > > > > >:
> > > > > > > > > > > >
> > > > > > > > > > > > > Hmm, why not the tcpfailuredetector as a root (/>)
> > > > instead
> > > > > of
> > > > > > > > > > wrapping
> > > > > > > > > > > > the
> > > > > > > > > > > > > static membership one?
> > > > > > > > > > > > >
> > > > > > > > > > > > > Also did you manage to get debug log of tomcat
> > cluster?
> > > > it
> > > > > > > helps
> > > > > > > > a
> > > > > > > > > > lot
> > > > > > > > > > > in
> > > > > > > > > > > > > general
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > > 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 23:43 GMT+02:00 Elder Moraes <
> > > > > > > elder.moraes@gmail.com
> > > > > > > > >:
> > > > > > > > > > > > >
> > > > > > > > > > > > > > Did it. No errors found.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > If you want to have a look at the server.xml.
> Also
> > > I've
> > > > > > > undone
> > > > > > > > > the
> > > > > > > > > > > > > changes
> > > > > > > > > > > > > > I've made before.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > https://www.dropbox.com/s/
> > > > p3iknyku2rb3f3w/server.xml?dl=
> > > > > 0
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Twitter: @elderjava <
> https://twitter.com/elderjava
> > >
> > > > > > > > > > > > > > Blog: http://eldermoraes.com
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > 2017-07-05 17:08 GMT-03:00 Romain Manni-Bucau <
> > > > > > > > > > rmannibucau@gmail.com
> > > > > > > > > > > >:
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Gmail formatting doesnt help much but think it
> > can
> > > > miss
> > > > > > > some
> > > > > > > > > > > closing
> > > > > > > > > > > > > > tags.
> > > > > > > > > > > > > > > Autoformat it in an ide, it should show it.
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Le 5 juil. 2017 21:28, "Elder Moraes" <
> > > > > > > > elder.moraes@gmail.com>
> > > > > > > > > a
> > > > > > > > > > > > > écrit :
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > Actually I can't... :-(
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > But if you could point me where I should
> look,
> > > > maybe
> > > > > I
> > > > > > > can
> > > > > > > > > > figure
> > > > > > > > > > > > it
> > > > > > > > > > > > > > out.
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > Is that code that I've sent here correct? No
> > > issue?
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > Did I put the StaticMembershipInterceptor at
> > > right
> > > > > > place?
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > Twitter: @elderjava <
> > > https://twitter.com/elderjava
> > > > >
> > > > > > > > > > > > > > > > Blog: http://eldermoraes.com
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > 2017-07-05 16:21 GMT-03:00 Romain
> Manni-Bucau <
> > > > > > > > > > > > rmannibucau@gmail.com
> > > > > > > > > > > > > >:
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > Do you think you can do a setup without
> > docker?
> > > > > Would
> > > > > > > be
> > > > > > > > > > easier
> > > > > > > > > > > > to
> > > > > > > > > > > > > > > check
> > > > > > > > > > > > > > > > > but sounds like a config issue.
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > Le 5 juil. 2017 21:18, "Elder Moraes" <
> > > > > > > > > > elder.moraes@gmail.com>
> > > > > > > > > > > a
> > > > > > > > > > > > > > > écrit :
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > If you are talking about removing the
> > > > > McastService,
> > > > > > > > I've
> > > > > > > > > > > > already
> > > > > > > > > > > > > > done
> > > > > > > > > > > > > > > > and
> > > > > > > > > > > > > > > > > > didn't work. The cluster still works as a
> > > > dynamic
> > > > > > > one.
> > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > Twitter: @elderjava <
> > > > > https://twitter.com/elderjava
> > > > > > >
> > > > > > > > > > > > > > > > > > Blog: http://eldermoraes.com
> > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > 2017-07-05 16:08 GMT-03:00 Romain
> > > Manni-Bucau <
> > > > > > > > > > > > > > rmannibucau@gmail.com
> > > > > > > > > > > > > > > >:
> > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > > 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.moraes@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 <
> > > > > > > > > > > > > > > rmannibucau@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.moraes@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://1
> > > > > > > > > > > > > > > > > > > 72.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 <
> > > > > > > > > > > > > > > > > rmannibucau@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.moraes@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 <
> > > > > > > > > > > > > > > > > > > rmannibucau@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.moraes@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
> > > > > > > > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
-- 
Sent from my iPhone

Re: Building a Static Discovery Cluster

Posted by Elder Moraes <el...@gmail.com>.
Ok, will try them.

Thanks!


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



2017-07-06 18:02 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:

> outch, no more, didnt resetup a cluster since 2 years. But if you push a
> tomee-maven-plugin sample it would be quick to help.
>
> Side note: Tomcat list can also be more relevant since they fully own that
> part.
>
>
> 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-06 22:52 GMT+02:00 Elder Moraes <el...@gmail.com>:
>
> > Do you have some working example? Don't need to be dockerized.
> >
> >
> > Twitter: @elderjava <https://twitter.com/elderjava>
> > Blog: http://eldermoraes.com
> >
> >
> > 2017-07-06 17:05 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:
> >
> > > yes should help, you can
> > > check org.apache.catalina.tribes.membership.McastServiceImpl#start,
> > > org.apache.catalina.tribes.group.ChannelCoordinator#internalStart
> > > and org.apache.catalina.tribes.group.ChannelCoordinator#sendMessage to
> > see
> > > it in action. It basically disable multicast services (threads) and
> > switch
> > > it to send messages
> > >
> > >
> > > 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-06 20:53 GMT+02:00 Elder Moraes <el...@gmail.com>:
> > >
> > > > The new logs are here:
> > > >
> > > > https://www.dropbox.com/s/1bdz8vf9pw0h42v/catalina.2017-
> 07-06.log?dl=0
> > > >
> > > > Yes, it shows everything! ;-)
> > > >
> > > > The last four lines shows the unexpected member being added to the
> > > cluster.
> > > >
> > > > Don't seems like is a Docker problem, as the new member is allowed by
> > the
> > > > cluster.
> > > >
> > > > The multicast setup that I've mentioned before has nothing to do?
> > > >
> > > >
> > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > Blog: http://eldermoraes.com
> > > >
> > > >
> > > >
> > > > 2017-07-06 15:42 GMT-03:00 Romain Manni-Bucau <rmannibucau@gmail.com
> >:
> > > >
> > > > > What are the new logs? ;)
> > > > >
> > > > > Tomcat logs everything showing if connection works, if members are
> > > > > accepted/connecting etc...
> > > > >
> > > > > From what i saw the docker setup is not matching the conf. Maybe
> > start
> > > by
> > > > > making it running without docker before dockerizing it.
> > > > >
> > > > > Side note: maybe you want local member in your cluster (depends
> your
> > > goal
> > > > > but was often done IIRC).
> > > > >
> > > > > Le 6 juil. 2017 19:50, "Elder Moraes" <el...@gmail.com> a
> > > écrit :
> > > > >
> > > > > > Thanks guys.
> > > > > >
> > > > > > I'm not using docker-compose.
> > > > > >
> > > > > > Actually I've just fixed that errors logged just by creating a
> > > > > > docker-network for the cluster and defining a static IP for each
> > > > member.
> > > > > So
> > > > > > the cluster is working well at this point.
> > > > > >
> > > > > > But it is still working as a dynamic one. I've found somewhere
> > that I
> > > > > > should use channelStartOptions="3" to disable multicast and avoid
> > > > > > unexpected members. But once I do it, the session is not shared
> > thru
> > > > the
> > > > > > cluster anymore.
> > > > > >
> > > > > > Any thoughts?
> > > > > >
> > > > > >
> > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > Blog: http://eldermoraes.com
> > > > > >
> > > > > >
> > > > > > 2017-07-06 10:03 GMT-03:00 Thiago Veronezi <thiago@veronezi.org
> >:
> > > > > >
> > > > > > > If you are using docker-compose, check the depends_on option.
> It
> > > will
> > > > > > > guarantee you have your name available. It does not guarantee
> you
> > > > have
> > > > > > the
> > > > > > > service fully up and running though. If you need that too, you
> > will
> > > > > need
> > > > > > > the script to wait for the service behind that name to be
> ready.
> > > > > > >
> > > > > > > []s,
> > > > > > > Thiago.
> > > > > > >
> > > > > > >
> > > > > > > On 5 Jul 2017 6:16 pm, "Romain Manni-Bucau" <
> > rmannibucau@gmail.com
> > > >
> > > > > > wrote:
> > > > > > >
> > > > > > > > looks like docker dns is not working that well and
> registration
> > > > > fails -
> > > > > > > or
> > > > > > > > the startup is not ordered properly but result lead to the
> > same.
> > > > > Often
> > > > > > > saw
> > > > > > > > docker-compose having a small bash loop to wait for the
> > host/port
> > > > > being
> > > > > > > > accessible. Maybe that's what you need (yes it is ugly)
> > > > > > > >
> > > > > > > >
> > > > > > > > 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-06 0:13 GMT+02:00 Elder Moraes <
> elder.moraes@gmail.com
> > >:
> > > > > > > >
> > > > > > > > > I've got the log and put here:
> > > > > > > > >
> > > > > > > > > https://www.dropbox.com/s/yxt3ym1ucv1hwb3/catalina.2017-
> > > > > > 07-05.log?dl=0
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > > > > Blog: http://eldermoraes.com
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > 2017-07-05 18:56 GMT-03:00 Romain Manni-Bucau <
> > > > > rmannibucau@gmail.com
> > > > > > >:
> > > > > > > > >
> > > > > > > > > > interesting, would be great to have debug log of that
> > > > clustering
> > > > > > part
> > > > > > > > > > (something like org.apache.catalina.tribes.level =
> FINE),
> > > > think
> > > > > > the
> > > > > > > > > static
> > > > > > > > > > members are actually excluded of the cluster reading this
> > > error
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > 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 23:53 GMT+02:00 Elder Moraes <
> > > > elder.moraes@gmail.com
> > > > > >:
> > > > > > > > > >
> > > > > > > > > > > Hmm, why not the tcpfailuredetector as a root (/>)
> > instead
> > > of
> > > > > > > > wrapping
> > > > > > > > > > the
> > > > > > > > > > > static membership one?
> > > > > > > > > > >
> > > > > > > > > > > Done e got this error:
> > > > > > > > > > >
> > > > > > > > > > > 05-Jul-2017 21:51:32.845 WARNING
> > > > > > > > > > > [GroupChannel-Heartbeat[Catalina-Channel]-1]
> > > > > > > > > > > sun.reflect.NativeMethodAccessorImpl.invoke Unable to
> > > > perform
> > > > > > > > > heartbeat
> > > > > > > > > > on
> > > > > > > > > > > the TcpFailureDetector.
> > > > > > > > > > >  java.lang.ArrayIndexOutOfBoundsException: 0
> > > > > > > > > > >     at
> > > > > > > > > > > org.apache.catalina.tribes.membership.MemberImpl.
> > > > > > > > > > > hashCode(MemberImpl.java:570)
> > > > > > > > > > >     at java.util.HashMap.hash(HashMap.java:338)
> > > > > > > > > > >     at java.util.HashMap.containsKey(HashMap.java:595)
> > > > > > > > > > >     at
> > > > > > > > > > > org.apache.catalina.tribes.group.interceptors.
> > > > > > TcpFailureDetector.
> > > > > > > > > > > performBasicCheck(TcpFailureDetector.java:258)
> > > > > > > > > > >     at
> > > > > > > > > > > org.apache.catalina.tribes.group.interceptors.
> > > > > > TcpFailureDetector.
> > > > > > > > > > > checkMembers(TcpFailureDetector.java:225)
> > > > > > > > > > >     at
> > > > > > > > > > > org.apache.catalina.tribes.group.interceptors.
> > > > > > > > > > > TcpFailureDetector.heartbeat(
> > TcpFailureDetector.java:218)
> > > > > > > > > > >     at
> > > > > > > > > > > org.apache.catalina.tribes.
> group.ChannelInterceptorBase.
> > > > > > heartbeat(
> > > > > > > > > > > ChannelInterceptorBase.java:100)
> > > > > > > > > > >     at
> > > > > > > > > > > org.apache.catalina.tribes.
> group.GroupChannel.heartbeat(
> > > > > > > > > > > GroupChannel.java:161)
> > > > > > > > > > >     at
> > > > > > > > > > > org.apache.catalina.tribes.group.GroupChannel$
> > > > > > HeartbeatThread.run(
> > > > > > > > > > > GroupChannel.java:719)
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > > > > > > Blog: http://eldermoraes.com
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > 2017-07-05 18:47 GMT-03:00 Romain Manni-Bucau <
> > > > > > > rmannibucau@gmail.com
> > > > > > > > >:
> > > > > > > > > > >
> > > > > > > > > > > > Hmm, why not the tcpfailuredetector as a root (/>)
> > > instead
> > > > of
> > > > > > > > > wrapping
> > > > > > > > > > > the
> > > > > > > > > > > > static membership one?
> > > > > > > > > > > >
> > > > > > > > > > > > Also did you manage to get debug log of tomcat
> cluster?
> > > it
> > > > > > helps
> > > > > > > a
> > > > > > > > > lot
> > > > > > > > > > in
> > > > > > > > > > > > general
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > 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 23:43 GMT+02:00 Elder Moraes <
> > > > > > elder.moraes@gmail.com
> > > > > > > >:
> > > > > > > > > > > >
> > > > > > > > > > > > > Did it. No errors found.
> > > > > > > > > > > > >
> > > > > > > > > > > > > If you want to have a look at the server.xml. Also
> > I've
> > > > > > undone
> > > > > > > > the
> > > > > > > > > > > > changes
> > > > > > > > > > > > > I've made before.
> > > > > > > > > > > > >
> > > > > > > > > > > > > https://www.dropbox.com/s/
> > > p3iknyku2rb3f3w/server.xml?dl=
> > > > 0
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > > Twitter: @elderjava <https://twitter.com/elderjava
> >
> > > > > > > > > > > > > Blog: http://eldermoraes.com
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > > 2017-07-05 17:08 GMT-03:00 Romain Manni-Bucau <
> > > > > > > > > rmannibucau@gmail.com
> > > > > > > > > > >:
> > > > > > > > > > > > >
> > > > > > > > > > > > > > Gmail formatting doesnt help much but think it
> can
> > > miss
> > > > > > some
> > > > > > > > > > closing
> > > > > > > > > > > > > tags.
> > > > > > > > > > > > > > Autoformat it in an ide, it should show it.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Le 5 juil. 2017 21:28, "Elder Moraes" <
> > > > > > > elder.moraes@gmail.com>
> > > > > > > > a
> > > > > > > > > > > > écrit :
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Actually I can't... :-(
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > But if you could point me where I should look,
> > > maybe
> > > > I
> > > > > > can
> > > > > > > > > figure
> > > > > > > > > > > it
> > > > > > > > > > > > > out.
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Is that code that I've sent here correct? No
> > issue?
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Did I put the StaticMembershipInterceptor at
> > right
> > > > > place?
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Twitter: @elderjava <
> > https://twitter.com/elderjava
> > > >
> > > > > > > > > > > > > > > Blog: http://eldermoraes.com
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > 2017-07-05 16:21 GMT-03:00 Romain Manni-Bucau <
> > > > > > > > > > > rmannibucau@gmail.com
> > > > > > > > > > > > >:
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > Do you think you can do a setup without
> docker?
> > > > Would
> > > > > > be
> > > > > > > > > easier
> > > > > > > > > > > to
> > > > > > > > > > > > > > check
> > > > > > > > > > > > > > > > but sounds like a config issue.
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > Le 5 juil. 2017 21:18, "Elder Moraes" <
> > > > > > > > > elder.moraes@gmail.com>
> > > > > > > > > > a
> > > > > > > > > > > > > > écrit :
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > If you are talking about removing the
> > > > McastService,
> > > > > > > I've
> > > > > > > > > > > already
> > > > > > > > > > > > > done
> > > > > > > > > > > > > > > and
> > > > > > > > > > > > > > > > > didn't work. The cluster still works as a
> > > dynamic
> > > > > > one.
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > Twitter: @elderjava <
> > > > https://twitter.com/elderjava
> > > > > >
> > > > > > > > > > > > > > > > > Blog: http://eldermoraes.com
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > 2017-07-05 16:08 GMT-03:00 Romain
> > Manni-Bucau <
> > > > > > > > > > > > > rmannibucau@gmail.com
> > > > > > > > > > > > > > >:
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > 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.moraes@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 <
> > > > > > > > > > > > > > rmannibucau@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.moraes@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://1
> > > > > > > > > > > > > > > > > > 72.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 <
> > > > > > > > > > > > > > > > rmannibucau@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.moraes@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 <
> > > > > > > > > > > > > > > > > > rmannibucau@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.moraes@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
> > > > > > > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: Building a Static Discovery Cluster

Posted by Romain Manni-Bucau <rm...@gmail.com>.
outch, no more, didnt resetup a cluster since 2 years. But if you push a
tomee-maven-plugin sample it would be quick to help.

Side note: Tomcat list can also be more relevant since they fully own that
part.


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-06 22:52 GMT+02:00 Elder Moraes <el...@gmail.com>:

> Do you have some working example? Don't need to be dockerized.
>
>
> Twitter: @elderjava <https://twitter.com/elderjava>
> Blog: http://eldermoraes.com
>
>
> 2017-07-06 17:05 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:
>
> > yes should help, you can
> > check org.apache.catalina.tribes.membership.McastServiceImpl#start,
> > org.apache.catalina.tribes.group.ChannelCoordinator#internalStart
> > and org.apache.catalina.tribes.group.ChannelCoordinator#sendMessage to
> see
> > it in action. It basically disable multicast services (threads) and
> switch
> > it to send messages
> >
> >
> > 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-06 20:53 GMT+02:00 Elder Moraes <el...@gmail.com>:
> >
> > > The new logs are here:
> > >
> > > https://www.dropbox.com/s/1bdz8vf9pw0h42v/catalina.2017-07-06.log?dl=0
> > >
> > > Yes, it shows everything! ;-)
> > >
> > > The last four lines shows the unexpected member being added to the
> > cluster.
> > >
> > > Don't seems like is a Docker problem, as the new member is allowed by
> the
> > > cluster.
> > >
> > > The multicast setup that I've mentioned before has nothing to do?
> > >
> > >
> > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > Blog: http://eldermoraes.com
> > >
> > >
> > >
> > > 2017-07-06 15:42 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:
> > >
> > > > What are the new logs? ;)
> > > >
> > > > Tomcat logs everything showing if connection works, if members are
> > > > accepted/connecting etc...
> > > >
> > > > From what i saw the docker setup is not matching the conf. Maybe
> start
> > by
> > > > making it running without docker before dockerizing it.
> > > >
> > > > Side note: maybe you want local member in your cluster (depends your
> > goal
> > > > but was often done IIRC).
> > > >
> > > > Le 6 juil. 2017 19:50, "Elder Moraes" <el...@gmail.com> a
> > écrit :
> > > >
> > > > > Thanks guys.
> > > > >
> > > > > I'm not using docker-compose.
> > > > >
> > > > > Actually I've just fixed that errors logged just by creating a
> > > > > docker-network for the cluster and defining a static IP for each
> > > member.
> > > > So
> > > > > the cluster is working well at this point.
> > > > >
> > > > > But it is still working as a dynamic one. I've found somewhere
> that I
> > > > > should use channelStartOptions="3" to disable multicast and avoid
> > > > > unexpected members. But once I do it, the session is not shared
> thru
> > > the
> > > > > cluster anymore.
> > > > >
> > > > > Any thoughts?
> > > > >
> > > > >
> > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > Blog: http://eldermoraes.com
> > > > >
> > > > >
> > > > > 2017-07-06 10:03 GMT-03:00 Thiago Veronezi <th...@veronezi.org>:
> > > > >
> > > > > > If you are using docker-compose, check the depends_on option. It
> > will
> > > > > > guarantee you have your name available. It does not guarantee you
> > > have
> > > > > the
> > > > > > service fully up and running though. If you need that too, you
> will
> > > > need
> > > > > > the script to wait for the service behind that name to be ready.
> > > > > >
> > > > > > []s,
> > > > > > Thiago.
> > > > > >
> > > > > >
> > > > > > On 5 Jul 2017 6:16 pm, "Romain Manni-Bucau" <
> rmannibucau@gmail.com
> > >
> > > > > wrote:
> > > > > >
> > > > > > > looks like docker dns is not working that well and registration
> > > > fails -
> > > > > > or
> > > > > > > the startup is not ordered properly but result lead to the
> same.
> > > > Often
> > > > > > saw
> > > > > > > docker-compose having a small bash loop to wait for the
> host/port
> > > > being
> > > > > > > accessible. Maybe that's what you need (yes it is ugly)
> > > > > > >
> > > > > > >
> > > > > > > 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-06 0:13 GMT+02:00 Elder Moraes <elder.moraes@gmail.com
> >:
> > > > > > >
> > > > > > > > I've got the log and put here:
> > > > > > > >
> > > > > > > > https://www.dropbox.com/s/yxt3ym1ucv1hwb3/catalina.2017-
> > > > > 07-05.log?dl=0
> > > > > > > >
> > > > > > > >
> > > > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > > > Blog: http://eldermoraes.com
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > 2017-07-05 18:56 GMT-03:00 Romain Manni-Bucau <
> > > > rmannibucau@gmail.com
> > > > > >:
> > > > > > > >
> > > > > > > > > interesting, would be great to have debug log of that
> > > clustering
> > > > > part
> > > > > > > > > (something like org.apache.catalina.tribes.level = FINE),
> > > think
> > > > > the
> > > > > > > > static
> > > > > > > > > members are actually excluded of the cluster reading this
> > error
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > 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 23:53 GMT+02:00 Elder Moraes <
> > > elder.moraes@gmail.com
> > > > >:
> > > > > > > > >
> > > > > > > > > > Hmm, why not the tcpfailuredetector as a root (/>)
> instead
> > of
> > > > > > > wrapping
> > > > > > > > > the
> > > > > > > > > > static membership one?
> > > > > > > > > >
> > > > > > > > > > Done e got this error:
> > > > > > > > > >
> > > > > > > > > > 05-Jul-2017 21:51:32.845 WARNING
> > > > > > > > > > [GroupChannel-Heartbeat[Catalina-Channel]-1]
> > > > > > > > > > sun.reflect.NativeMethodAccessorImpl.invoke Unable to
> > > perform
> > > > > > > > heartbeat
> > > > > > > > > on
> > > > > > > > > > the TcpFailureDetector.
> > > > > > > > > >  java.lang.ArrayIndexOutOfBoundsException: 0
> > > > > > > > > >     at
> > > > > > > > > > org.apache.catalina.tribes.membership.MemberImpl.
> > > > > > > > > > hashCode(MemberImpl.java:570)
> > > > > > > > > >     at java.util.HashMap.hash(HashMap.java:338)
> > > > > > > > > >     at java.util.HashMap.containsKey(HashMap.java:595)
> > > > > > > > > >     at
> > > > > > > > > > org.apache.catalina.tribes.group.interceptors.
> > > > > TcpFailureDetector.
> > > > > > > > > > performBasicCheck(TcpFailureDetector.java:258)
> > > > > > > > > >     at
> > > > > > > > > > org.apache.catalina.tribes.group.interceptors.
> > > > > TcpFailureDetector.
> > > > > > > > > > checkMembers(TcpFailureDetector.java:225)
> > > > > > > > > >     at
> > > > > > > > > > org.apache.catalina.tribes.group.interceptors.
> > > > > > > > > > TcpFailureDetector.heartbeat(
> TcpFailureDetector.java:218)
> > > > > > > > > >     at
> > > > > > > > > > org.apache.catalina.tribes.group.ChannelInterceptorBase.
> > > > > heartbeat(
> > > > > > > > > > ChannelInterceptorBase.java:100)
> > > > > > > > > >     at
> > > > > > > > > > org.apache.catalina.tribes.group.GroupChannel.heartbeat(
> > > > > > > > > > GroupChannel.java:161)
> > > > > > > > > >     at
> > > > > > > > > > org.apache.catalina.tribes.group.GroupChannel$
> > > > > HeartbeatThread.run(
> > > > > > > > > > GroupChannel.java:719)
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > > > > > Blog: http://eldermoraes.com
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > 2017-07-05 18:47 GMT-03:00 Romain Manni-Bucau <
> > > > > > rmannibucau@gmail.com
> > > > > > > >:
> > > > > > > > > >
> > > > > > > > > > > Hmm, why not the tcpfailuredetector as a root (/>)
> > instead
> > > of
> > > > > > > > wrapping
> > > > > > > > > > the
> > > > > > > > > > > static membership one?
> > > > > > > > > > >
> > > > > > > > > > > Also did you manage to get debug log of tomcat cluster?
> > it
> > > > > helps
> > > > > > a
> > > > > > > > lot
> > > > > > > > > in
> > > > > > > > > > > general
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > 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 23:43 GMT+02:00 Elder Moraes <
> > > > > elder.moraes@gmail.com
> > > > > > >:
> > > > > > > > > > >
> > > > > > > > > > > > Did it. No errors found.
> > > > > > > > > > > >
> > > > > > > > > > > > If you want to have a look at the server.xml. Also
> I've
> > > > > undone
> > > > > > > the
> > > > > > > > > > > changes
> > > > > > > > > > > > I've made before.
> > > > > > > > > > > >
> > > > > > > > > > > > https://www.dropbox.com/s/
> > p3iknyku2rb3f3w/server.xml?dl=
> > > 0
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > > > > > > > Blog: http://eldermoraes.com
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > 2017-07-05 17:08 GMT-03:00 Romain Manni-Bucau <
> > > > > > > > rmannibucau@gmail.com
> > > > > > > > > >:
> > > > > > > > > > > >
> > > > > > > > > > > > > Gmail formatting doesnt help much but think it can
> > miss
> > > > > some
> > > > > > > > > closing
> > > > > > > > > > > > tags.
> > > > > > > > > > > > > Autoformat it in an ide, it should show it.
> > > > > > > > > > > > >
> > > > > > > > > > > > > Le 5 juil. 2017 21:28, "Elder Moraes" <
> > > > > > elder.moraes@gmail.com>
> > > > > > > a
> > > > > > > > > > > écrit :
> > > > > > > > > > > > >
> > > > > > > > > > > > > > Actually I can't... :-(
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > But if you could point me where I should look,
> > maybe
> > > I
> > > > > can
> > > > > > > > figure
> > > > > > > > > > it
> > > > > > > > > > > > out.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Is that code that I've sent here correct? No
> issue?
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Did I put the StaticMembershipInterceptor at
> right
> > > > place?
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Twitter: @elderjava <
> https://twitter.com/elderjava
> > >
> > > > > > > > > > > > > > Blog: http://eldermoraes.com
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > 2017-07-05 16:21 GMT-03:00 Romain Manni-Bucau <
> > > > > > > > > > rmannibucau@gmail.com
> > > > > > > > > > > >:
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Do you think you can do a setup without docker?
> > > Would
> > > > > be
> > > > > > > > easier
> > > > > > > > > > to
> > > > > > > > > > > > > check
> > > > > > > > > > > > > > > but sounds like a config issue.
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Le 5 juil. 2017 21:18, "Elder Moraes" <
> > > > > > > > elder.moraes@gmail.com>
> > > > > > > > > a
> > > > > > > > > > > > > écrit :
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > If you are talking about removing the
> > > McastService,
> > > > > > I've
> > > > > > > > > > already
> > > > > > > > > > > > done
> > > > > > > > > > > > > > and
> > > > > > > > > > > > > > > > didn't work. The cluster still works as a
> > dynamic
> > > > > one.
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > Twitter: @elderjava <
> > > https://twitter.com/elderjava
> > > > >
> > > > > > > > > > > > > > > > Blog: http://eldermoraes.com
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > 2017-07-05 16:08 GMT-03:00 Romain
> Manni-Bucau <
> > > > > > > > > > > > rmannibucau@gmail.com
> > > > > > > > > > > > > >:
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > 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.moraes@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 <
> > > > > > > > > > > > > rmannibucau@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.moraes@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://1
> > > > > > > > > > > > > > > > > 72.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 <
> > > > > > > > > > > > > > > rmannibucau@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.moraes@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 <
> > > > > > > > > > > > > > > > > rmannibucau@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.moraes@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
> > > > > > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: Building a Static Discovery Cluster

Posted by Elder Moraes <el...@gmail.com>.
Do you have some working example? Don't need to be dockerized.


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


2017-07-06 17:05 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:

> yes should help, you can
> check org.apache.catalina.tribes.membership.McastServiceImpl#start,
> org.apache.catalina.tribes.group.ChannelCoordinator#internalStart
> and org.apache.catalina.tribes.group.ChannelCoordinator#sendMessage to see
> it in action. It basically disable multicast services (threads) and switch
> it to send messages
>
>
> 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-06 20:53 GMT+02:00 Elder Moraes <el...@gmail.com>:
>
> > The new logs are here:
> >
> > https://www.dropbox.com/s/1bdz8vf9pw0h42v/catalina.2017-07-06.log?dl=0
> >
> > Yes, it shows everything! ;-)
> >
> > The last four lines shows the unexpected member being added to the
> cluster.
> >
> > Don't seems like is a Docker problem, as the new member is allowed by the
> > cluster.
> >
> > The multicast setup that I've mentioned before has nothing to do?
> >
> >
> > Twitter: @elderjava <https://twitter.com/elderjava>
> > Blog: http://eldermoraes.com
> >
> >
> >
> > 2017-07-06 15:42 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:
> >
> > > What are the new logs? ;)
> > >
> > > Tomcat logs everything showing if connection works, if members are
> > > accepted/connecting etc...
> > >
> > > From what i saw the docker setup is not matching the conf. Maybe start
> by
> > > making it running without docker before dockerizing it.
> > >
> > > Side note: maybe you want local member in your cluster (depends your
> goal
> > > but was often done IIRC).
> > >
> > > Le 6 juil. 2017 19:50, "Elder Moraes" <el...@gmail.com> a
> écrit :
> > >
> > > > Thanks guys.
> > > >
> > > > I'm not using docker-compose.
> > > >
> > > > Actually I've just fixed that errors logged just by creating a
> > > > docker-network for the cluster and defining a static IP for each
> > member.
> > > So
> > > > the cluster is working well at this point.
> > > >
> > > > But it is still working as a dynamic one. I've found somewhere that I
> > > > should use channelStartOptions="3" to disable multicast and avoid
> > > > unexpected members. But once I do it, the session is not shared thru
> > the
> > > > cluster anymore.
> > > >
> > > > Any thoughts?
> > > >
> > > >
> > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > Blog: http://eldermoraes.com
> > > >
> > > >
> > > > 2017-07-06 10:03 GMT-03:00 Thiago Veronezi <th...@veronezi.org>:
> > > >
> > > > > If you are using docker-compose, check the depends_on option. It
> will
> > > > > guarantee you have your name available. It does not guarantee you
> > have
> > > > the
> > > > > service fully up and running though. If you need that too, you will
> > > need
> > > > > the script to wait for the service behind that name to be ready.
> > > > >
> > > > > []s,
> > > > > Thiago.
> > > > >
> > > > >
> > > > > On 5 Jul 2017 6:16 pm, "Romain Manni-Bucau" <rmannibucau@gmail.com
> >
> > > > wrote:
> > > > >
> > > > > > looks like docker dns is not working that well and registration
> > > fails -
> > > > > or
> > > > > > the startup is not ordered properly but result lead to the same.
> > > Often
> > > > > saw
> > > > > > docker-compose having a small bash loop to wait for the host/port
> > > being
> > > > > > accessible. Maybe that's what you need (yes it is ugly)
> > > > > >
> > > > > >
> > > > > > 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-06 0:13 GMT+02:00 Elder Moraes <el...@gmail.com>:
> > > > > >
> > > > > > > I've got the log and put here:
> > > > > > >
> > > > > > > https://www.dropbox.com/s/yxt3ym1ucv1hwb3/catalina.2017-
> > > > 07-05.log?dl=0
> > > > > > >
> > > > > > >
> > > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > > Blog: http://eldermoraes.com
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > 2017-07-05 18:56 GMT-03:00 Romain Manni-Bucau <
> > > rmannibucau@gmail.com
> > > > >:
> > > > > > >
> > > > > > > > interesting, would be great to have debug log of that
> > clustering
> > > > part
> > > > > > > > (something like org.apache.catalina.tribes.level = FINE),
> > think
> > > > the
> > > > > > > static
> > > > > > > > members are actually excluded of the cluster reading this
> error
> > > > > > > >
> > > > > > > >
> > > > > > > > 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 23:53 GMT+02:00 Elder Moraes <
> > elder.moraes@gmail.com
> > > >:
> > > > > > > >
> > > > > > > > > Hmm, why not the tcpfailuredetector as a root (/>) instead
> of
> > > > > > wrapping
> > > > > > > > the
> > > > > > > > > static membership one?
> > > > > > > > >
> > > > > > > > > Done e got this error:
> > > > > > > > >
> > > > > > > > > 05-Jul-2017 21:51:32.845 WARNING
> > > > > > > > > [GroupChannel-Heartbeat[Catalina-Channel]-1]
> > > > > > > > > sun.reflect.NativeMethodAccessorImpl.invoke Unable to
> > perform
> > > > > > > heartbeat
> > > > > > > > on
> > > > > > > > > the TcpFailureDetector.
> > > > > > > > >  java.lang.ArrayIndexOutOfBoundsException: 0
> > > > > > > > >     at
> > > > > > > > > org.apache.catalina.tribes.membership.MemberImpl.
> > > > > > > > > hashCode(MemberImpl.java:570)
> > > > > > > > >     at java.util.HashMap.hash(HashMap.java:338)
> > > > > > > > >     at java.util.HashMap.containsKey(HashMap.java:595)
> > > > > > > > >     at
> > > > > > > > > org.apache.catalina.tribes.group.interceptors.
> > > > TcpFailureDetector.
> > > > > > > > > performBasicCheck(TcpFailureDetector.java:258)
> > > > > > > > >     at
> > > > > > > > > org.apache.catalina.tribes.group.interceptors.
> > > > TcpFailureDetector.
> > > > > > > > > checkMembers(TcpFailureDetector.java:225)
> > > > > > > > >     at
> > > > > > > > > org.apache.catalina.tribes.group.interceptors.
> > > > > > > > > TcpFailureDetector.heartbeat(TcpFailureDetector.java:218)
> > > > > > > > >     at
> > > > > > > > > org.apache.catalina.tribes.group.ChannelInterceptorBase.
> > > > heartbeat(
> > > > > > > > > ChannelInterceptorBase.java:100)
> > > > > > > > >     at
> > > > > > > > > org.apache.catalina.tribes.group.GroupChannel.heartbeat(
> > > > > > > > > GroupChannel.java:161)
> > > > > > > > >     at
> > > > > > > > > org.apache.catalina.tribes.group.GroupChannel$
> > > > HeartbeatThread.run(
> > > > > > > > > GroupChannel.java:719)
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > > > > Blog: http://eldermoraes.com
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > 2017-07-05 18:47 GMT-03:00 Romain Manni-Bucau <
> > > > > rmannibucau@gmail.com
> > > > > > >:
> > > > > > > > >
> > > > > > > > > > Hmm, why not the tcpfailuredetector as a root (/>)
> instead
> > of
> > > > > > > wrapping
> > > > > > > > > the
> > > > > > > > > > static membership one?
> > > > > > > > > >
> > > > > > > > > > Also did you manage to get debug log of tomcat cluster?
> it
> > > > helps
> > > > > a
> > > > > > > lot
> > > > > > > > in
> > > > > > > > > > general
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > 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 23:43 GMT+02:00 Elder Moraes <
> > > > elder.moraes@gmail.com
> > > > > >:
> > > > > > > > > >
> > > > > > > > > > > Did it. No errors found.
> > > > > > > > > > >
> > > > > > > > > > > If you want to have a look at the server.xml. Also I've
> > > > undone
> > > > > > the
> > > > > > > > > > changes
> > > > > > > > > > > I've made before.
> > > > > > > > > > >
> > > > > > > > > > > https://www.dropbox.com/s/
> p3iknyku2rb3f3w/server.xml?dl=
> > 0
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > > > > > > Blog: http://eldermoraes.com
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > 2017-07-05 17:08 GMT-03:00 Romain Manni-Bucau <
> > > > > > > rmannibucau@gmail.com
> > > > > > > > >:
> > > > > > > > > > >
> > > > > > > > > > > > Gmail formatting doesnt help much but think it can
> miss
> > > > some
> > > > > > > > closing
> > > > > > > > > > > tags.
> > > > > > > > > > > > Autoformat it in an ide, it should show it.
> > > > > > > > > > > >
> > > > > > > > > > > > Le 5 juil. 2017 21:28, "Elder Moraes" <
> > > > > elder.moraes@gmail.com>
> > > > > > a
> > > > > > > > > > écrit :
> > > > > > > > > > > >
> > > > > > > > > > > > > Actually I can't... :-(
> > > > > > > > > > > > >
> > > > > > > > > > > > > But if you could point me where I should look,
> maybe
> > I
> > > > can
> > > > > > > figure
> > > > > > > > > it
> > > > > > > > > > > out.
> > > > > > > > > > > > >
> > > > > > > > > > > > > Is that code that I've sent here correct? No issue?
> > > > > > > > > > > > >
> > > > > > > > > > > > > Did I put the StaticMembershipInterceptor at right
> > > place?
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > > Twitter: @elderjava <https://twitter.com/elderjava
> >
> > > > > > > > > > > > > Blog: http://eldermoraes.com
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > > 2017-07-05 16:21 GMT-03:00 Romain Manni-Bucau <
> > > > > > > > > rmannibucau@gmail.com
> > > > > > > > > > >:
> > > > > > > > > > > > >
> > > > > > > > > > > > > > Do you think you can do a setup without docker?
> > Would
> > > > be
> > > > > > > easier
> > > > > > > > > to
> > > > > > > > > > > > check
> > > > > > > > > > > > > > but sounds like a config issue.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Le 5 juil. 2017 21:18, "Elder Moraes" <
> > > > > > > elder.moraes@gmail.com>
> > > > > > > > a
> > > > > > > > > > > > écrit :
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > > If you are talking about removing the
> > McastService,
> > > > > I've
> > > > > > > > > already
> > > > > > > > > > > done
> > > > > > > > > > > > > and
> > > > > > > > > > > > > > > didn't work. The cluster still works as a
> dynamic
> > > > one.
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Twitter: @elderjava <
> > https://twitter.com/elderjava
> > > >
> > > > > > > > > > > > > > > Blog: http://eldermoraes.com
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > 2017-07-05 16:08 GMT-03:00 Romain Manni-Bucau <
> > > > > > > > > > > rmannibucau@gmail.com
> > > > > > > > > > > > >:
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > 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.moraes@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 <
> > > > > > > > > > > > rmannibucau@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.moraes@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://1
> > > > > > > > > > > > > > > > 72.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 <
> > > > > > > > > > > > > > rmannibucau@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.moraes@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 <
> > > > > > > > > > > > > > > > rmannibucau@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.moraes@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
> > > > > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: Building a Static Discovery Cluster

Posted by Romain Manni-Bucau <rm...@gmail.com>.
yes should help, you can
check org.apache.catalina.tribes.membership.McastServiceImpl#start,
org.apache.catalina.tribes.group.ChannelCoordinator#internalStart
and org.apache.catalina.tribes.group.ChannelCoordinator#sendMessage to see
it in action. It basically disable multicast services (threads) and switch
it to send messages


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-06 20:53 GMT+02:00 Elder Moraes <el...@gmail.com>:

> The new logs are here:
>
> https://www.dropbox.com/s/1bdz8vf9pw0h42v/catalina.2017-07-06.log?dl=0
>
> Yes, it shows everything! ;-)
>
> The last four lines shows the unexpected member being added to the cluster.
>
> Don't seems like is a Docker problem, as the new member is allowed by the
> cluster.
>
> The multicast setup that I've mentioned before has nothing to do?
>
>
> Twitter: @elderjava <https://twitter.com/elderjava>
> Blog: http://eldermoraes.com
>
>
>
> 2017-07-06 15:42 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:
>
> > What are the new logs? ;)
> >
> > Tomcat logs everything showing if connection works, if members are
> > accepted/connecting etc...
> >
> > From what i saw the docker setup is not matching the conf. Maybe start by
> > making it running without docker before dockerizing it.
> >
> > Side note: maybe you want local member in your cluster (depends your goal
> > but was often done IIRC).
> >
> > Le 6 juil. 2017 19:50, "Elder Moraes" <el...@gmail.com> a écrit :
> >
> > > Thanks guys.
> > >
> > > I'm not using docker-compose.
> > >
> > > Actually I've just fixed that errors logged just by creating a
> > > docker-network for the cluster and defining a static IP for each
> member.
> > So
> > > the cluster is working well at this point.
> > >
> > > But it is still working as a dynamic one. I've found somewhere that I
> > > should use channelStartOptions="3" to disable multicast and avoid
> > > unexpected members. But once I do it, the session is not shared thru
> the
> > > cluster anymore.
> > >
> > > Any thoughts?
> > >
> > >
> > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > Blog: http://eldermoraes.com
> > >
> > >
> > > 2017-07-06 10:03 GMT-03:00 Thiago Veronezi <th...@veronezi.org>:
> > >
> > > > If you are using docker-compose, check the depends_on option. It will
> > > > guarantee you have your name available. It does not guarantee you
> have
> > > the
> > > > service fully up and running though. If you need that too, you will
> > need
> > > > the script to wait for the service behind that name to be ready.
> > > >
> > > > []s,
> > > > Thiago.
> > > >
> > > >
> > > > On 5 Jul 2017 6:16 pm, "Romain Manni-Bucau" <rm...@gmail.com>
> > > wrote:
> > > >
> > > > > looks like docker dns is not working that well and registration
> > fails -
> > > > or
> > > > > the startup is not ordered properly but result lead to the same.
> > Often
> > > > saw
> > > > > docker-compose having a small bash loop to wait for the host/port
> > being
> > > > > accessible. Maybe that's what you need (yes it is ugly)
> > > > >
> > > > >
> > > > > 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-06 0:13 GMT+02:00 Elder Moraes <el...@gmail.com>:
> > > > >
> > > > > > I've got the log and put here:
> > > > > >
> > > > > > https://www.dropbox.com/s/yxt3ym1ucv1hwb3/catalina.2017-
> > > 07-05.log?dl=0
> > > > > >
> > > > > >
> > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > Blog: http://eldermoraes.com
> > > > > >
> > > > > >
> > > > > >
> > > > > > 2017-07-05 18:56 GMT-03:00 Romain Manni-Bucau <
> > rmannibucau@gmail.com
> > > >:
> > > > > >
> > > > > > > interesting, would be great to have debug log of that
> clustering
> > > part
> > > > > > > (something like org.apache.catalina.tribes.level = FINE),
> think
> > > the
> > > > > > static
> > > > > > > members are actually excluded of the cluster reading this error
> > > > > > >
> > > > > > >
> > > > > > > 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 23:53 GMT+02:00 Elder Moraes <
> elder.moraes@gmail.com
> > >:
> > > > > > >
> > > > > > > > Hmm, why not the tcpfailuredetector as a root (/>) instead of
> > > > > wrapping
> > > > > > > the
> > > > > > > > static membership one?
> > > > > > > >
> > > > > > > > Done e got this error:
> > > > > > > >
> > > > > > > > 05-Jul-2017 21:51:32.845 WARNING
> > > > > > > > [GroupChannel-Heartbeat[Catalina-Channel]-1]
> > > > > > > > sun.reflect.NativeMethodAccessorImpl.invoke Unable to
> perform
> > > > > > heartbeat
> > > > > > > on
> > > > > > > > the TcpFailureDetector.
> > > > > > > >  java.lang.ArrayIndexOutOfBoundsException: 0
> > > > > > > >     at
> > > > > > > > org.apache.catalina.tribes.membership.MemberImpl.
> > > > > > > > hashCode(MemberImpl.java:570)
> > > > > > > >     at java.util.HashMap.hash(HashMap.java:338)
> > > > > > > >     at java.util.HashMap.containsKey(HashMap.java:595)
> > > > > > > >     at
> > > > > > > > org.apache.catalina.tribes.group.interceptors.
> > > TcpFailureDetector.
> > > > > > > > performBasicCheck(TcpFailureDetector.java:258)
> > > > > > > >     at
> > > > > > > > org.apache.catalina.tribes.group.interceptors.
> > > TcpFailureDetector.
> > > > > > > > checkMembers(TcpFailureDetector.java:225)
> > > > > > > >     at
> > > > > > > > org.apache.catalina.tribes.group.interceptors.
> > > > > > > > TcpFailureDetector.heartbeat(TcpFailureDetector.java:218)
> > > > > > > >     at
> > > > > > > > org.apache.catalina.tribes.group.ChannelInterceptorBase.
> > > heartbeat(
> > > > > > > > ChannelInterceptorBase.java:100)
> > > > > > > >     at
> > > > > > > > org.apache.catalina.tribes.group.GroupChannel.heartbeat(
> > > > > > > > GroupChannel.java:161)
> > > > > > > >     at
> > > > > > > > org.apache.catalina.tribes.group.GroupChannel$
> > > HeartbeatThread.run(
> > > > > > > > GroupChannel.java:719)
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > > > Blog: http://eldermoraes.com
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > 2017-07-05 18:47 GMT-03:00 Romain Manni-Bucau <
> > > > rmannibucau@gmail.com
> > > > > >:
> > > > > > > >
> > > > > > > > > Hmm, why not the tcpfailuredetector as a root (/>) instead
> of
> > > > > > wrapping
> > > > > > > > the
> > > > > > > > > static membership one?
> > > > > > > > >
> > > > > > > > > Also did you manage to get debug log of tomcat cluster? it
> > > helps
> > > > a
> > > > > > lot
> > > > > > > in
> > > > > > > > > general
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > 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 23:43 GMT+02:00 Elder Moraes <
> > > elder.moraes@gmail.com
> > > > >:
> > > > > > > > >
> > > > > > > > > > Did it. No errors found.
> > > > > > > > > >
> > > > > > > > > > If you want to have a look at the server.xml. Also I've
> > > undone
> > > > > the
> > > > > > > > > changes
> > > > > > > > > > I've made before.
> > > > > > > > > >
> > > > > > > > > > https://www.dropbox.com/s/p3iknyku2rb3f3w/server.xml?dl=
> 0
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > > > > > Blog: http://eldermoraes.com
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > 2017-07-05 17:08 GMT-03:00 Romain Manni-Bucau <
> > > > > > rmannibucau@gmail.com
> > > > > > > >:
> > > > > > > > > >
> > > > > > > > > > > Gmail formatting doesnt help much but think it can miss
> > > some
> > > > > > > closing
> > > > > > > > > > tags.
> > > > > > > > > > > Autoformat it in an ide, it should show it.
> > > > > > > > > > >
> > > > > > > > > > > Le 5 juil. 2017 21:28, "Elder Moraes" <
> > > > elder.moraes@gmail.com>
> > > > > a
> > > > > > > > > écrit :
> > > > > > > > > > >
> > > > > > > > > > > > Actually I can't... :-(
> > > > > > > > > > > >
> > > > > > > > > > > > But if you could point me where I should look, maybe
> I
> > > can
> > > > > > figure
> > > > > > > > it
> > > > > > > > > > out.
> > > > > > > > > > > >
> > > > > > > > > > > > Is that code that I've sent here correct? No issue?
> > > > > > > > > > > >
> > > > > > > > > > > > Did I put the StaticMembershipInterceptor at right
> > place?
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > > > > > > > Blog: http://eldermoraes.com
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > 2017-07-05 16:21 GMT-03:00 Romain Manni-Bucau <
> > > > > > > > rmannibucau@gmail.com
> > > > > > > > > >:
> > > > > > > > > > > >
> > > > > > > > > > > > > Do you think you can do a setup without docker?
> Would
> > > be
> > > > > > easier
> > > > > > > > to
> > > > > > > > > > > check
> > > > > > > > > > > > > but sounds like a config issue.
> > > > > > > > > > > > >
> > > > > > > > > > > > > Le 5 juil. 2017 21:18, "Elder Moraes" <
> > > > > > elder.moraes@gmail.com>
> > > > > > > a
> > > > > > > > > > > écrit :
> > > > > > > > > > > > >
> > > > > > > > > > > > > > If you are talking about removing the
> McastService,
> > > > I've
> > > > > > > > already
> > > > > > > > > > done
> > > > > > > > > > > > and
> > > > > > > > > > > > > > didn't work. The cluster still works as a dynamic
> > > one.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Twitter: @elderjava <
> https://twitter.com/elderjava
> > >
> > > > > > > > > > > > > > Blog: http://eldermoraes.com
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > 2017-07-05 16:08 GMT-03:00 Romain Manni-Bucau <
> > > > > > > > > > rmannibucau@gmail.com
> > > > > > > > > > > >:
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > > 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.moraes@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 <
> > > > > > > > > > > rmannibucau@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.moraes@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://1
> > > > > > > > > > > > > > > 72.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 <
> > > > > > > > > > > > > rmannibucau@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.moraes@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 <
> > > > > > > > > > > > > > > rmannibucau@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.moraes@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
> > > > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: Building a Static Discovery Cluster

Posted by Elder Moraes <el...@gmail.com>.
The new logs are here:

https://www.dropbox.com/s/1bdz8vf9pw0h42v/catalina.2017-07-06.log?dl=0

Yes, it shows everything! ;-)

The last four lines shows the unexpected member being added to the cluster.

Don't seems like is a Docker problem, as the new member is allowed by the
cluster.

The multicast setup that I've mentioned before has nothing to do?


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



2017-07-06 15:42 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:

> What are the new logs? ;)
>
> Tomcat logs everything showing if connection works, if members are
> accepted/connecting etc...
>
> From what i saw the docker setup is not matching the conf. Maybe start by
> making it running without docker before dockerizing it.
>
> Side note: maybe you want local member in your cluster (depends your goal
> but was often done IIRC).
>
> Le 6 juil. 2017 19:50, "Elder Moraes" <el...@gmail.com> a écrit :
>
> > Thanks guys.
> >
> > I'm not using docker-compose.
> >
> > Actually I've just fixed that errors logged just by creating a
> > docker-network for the cluster and defining a static IP for each member.
> So
> > the cluster is working well at this point.
> >
> > But it is still working as a dynamic one. I've found somewhere that I
> > should use channelStartOptions="3" to disable multicast and avoid
> > unexpected members. But once I do it, the session is not shared thru the
> > cluster anymore.
> >
> > Any thoughts?
> >
> >
> > Twitter: @elderjava <https://twitter.com/elderjava>
> > Blog: http://eldermoraes.com
> >
> >
> > 2017-07-06 10:03 GMT-03:00 Thiago Veronezi <th...@veronezi.org>:
> >
> > > If you are using docker-compose, check the depends_on option. It will
> > > guarantee you have your name available. It does not guarantee you have
> > the
> > > service fully up and running though. If you need that too, you will
> need
> > > the script to wait for the service behind that name to be ready.
> > >
> > > []s,
> > > Thiago.
> > >
> > >
> > > On 5 Jul 2017 6:16 pm, "Romain Manni-Bucau" <rm...@gmail.com>
> > wrote:
> > >
> > > > looks like docker dns is not working that well and registration
> fails -
> > > or
> > > > the startup is not ordered properly but result lead to the same.
> Often
> > > saw
> > > > docker-compose having a small bash loop to wait for the host/port
> being
> > > > accessible. Maybe that's what you need (yes it is ugly)
> > > >
> > > >
> > > > 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-06 0:13 GMT+02:00 Elder Moraes <el...@gmail.com>:
> > > >
> > > > > I've got the log and put here:
> > > > >
> > > > > https://www.dropbox.com/s/yxt3ym1ucv1hwb3/catalina.2017-
> > 07-05.log?dl=0
> > > > >
> > > > >
> > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > Blog: http://eldermoraes.com
> > > > >
> > > > >
> > > > >
> > > > > 2017-07-05 18:56 GMT-03:00 Romain Manni-Bucau <
> rmannibucau@gmail.com
> > >:
> > > > >
> > > > > > interesting, would be great to have debug log of that clustering
> > part
> > > > > > (something like org.apache.catalina.tribes.level = FINE), think
> > the
> > > > > static
> > > > > > members are actually excluded of the cluster reading this error
> > > > > >
> > > > > >
> > > > > > 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 23:53 GMT+02:00 Elder Moraes <elder.moraes@gmail.com
> >:
> > > > > >
> > > > > > > Hmm, why not the tcpfailuredetector as a root (/>) instead of
> > > > wrapping
> > > > > > the
> > > > > > > static membership one?
> > > > > > >
> > > > > > > Done e got this error:
> > > > > > >
> > > > > > > 05-Jul-2017 21:51:32.845 WARNING
> > > > > > > [GroupChannel-Heartbeat[Catalina-Channel]-1]
> > > > > > > sun.reflect.NativeMethodAccessorImpl.invoke Unable to perform
> > > > > heartbeat
> > > > > > on
> > > > > > > the TcpFailureDetector.
> > > > > > >  java.lang.ArrayIndexOutOfBoundsException: 0
> > > > > > >     at
> > > > > > > org.apache.catalina.tribes.membership.MemberImpl.
> > > > > > > hashCode(MemberImpl.java:570)
> > > > > > >     at java.util.HashMap.hash(HashMap.java:338)
> > > > > > >     at java.util.HashMap.containsKey(HashMap.java:595)
> > > > > > >     at
> > > > > > > org.apache.catalina.tribes.group.interceptors.
> > TcpFailureDetector.
> > > > > > > performBasicCheck(TcpFailureDetector.java:258)
> > > > > > >     at
> > > > > > > org.apache.catalina.tribes.group.interceptors.
> > TcpFailureDetector.
> > > > > > > checkMembers(TcpFailureDetector.java:225)
> > > > > > >     at
> > > > > > > org.apache.catalina.tribes.group.interceptors.
> > > > > > > TcpFailureDetector.heartbeat(TcpFailureDetector.java:218)
> > > > > > >     at
> > > > > > > org.apache.catalina.tribes.group.ChannelInterceptorBase.
> > heartbeat(
> > > > > > > ChannelInterceptorBase.java:100)
> > > > > > >     at
> > > > > > > org.apache.catalina.tribes.group.GroupChannel.heartbeat(
> > > > > > > GroupChannel.java:161)
> > > > > > >     at
> > > > > > > org.apache.catalina.tribes.group.GroupChannel$
> > HeartbeatThread.run(
> > > > > > > GroupChannel.java:719)
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > > Blog: http://eldermoraes.com
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > 2017-07-05 18:47 GMT-03:00 Romain Manni-Bucau <
> > > rmannibucau@gmail.com
> > > > >:
> > > > > > >
> > > > > > > > Hmm, why not the tcpfailuredetector as a root (/>) instead of
> > > > > wrapping
> > > > > > > the
> > > > > > > > static membership one?
> > > > > > > >
> > > > > > > > Also did you manage to get debug log of tomcat cluster? it
> > helps
> > > a
> > > > > lot
> > > > > > in
> > > > > > > > general
> > > > > > > >
> > > > > > > >
> > > > > > > > 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 23:43 GMT+02:00 Elder Moraes <
> > elder.moraes@gmail.com
> > > >:
> > > > > > > >
> > > > > > > > > Did it. No errors found.
> > > > > > > > >
> > > > > > > > > If you want to have a look at the server.xml. Also I've
> > undone
> > > > the
> > > > > > > > changes
> > > > > > > > > I've made before.
> > > > > > > > >
> > > > > > > > > https://www.dropbox.com/s/p3iknyku2rb3f3w/server.xml?dl=0
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > > > > Blog: http://eldermoraes.com
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > 2017-07-05 17:08 GMT-03:00 Romain Manni-Bucau <
> > > > > rmannibucau@gmail.com
> > > > > > >:
> > > > > > > > >
> > > > > > > > > > Gmail formatting doesnt help much but think it can miss
> > some
> > > > > > closing
> > > > > > > > > tags.
> > > > > > > > > > Autoformat it in an ide, it should show it.
> > > > > > > > > >
> > > > > > > > > > Le 5 juil. 2017 21:28, "Elder Moraes" <
> > > elder.moraes@gmail.com>
> > > > a
> > > > > > > > écrit :
> > > > > > > > > >
> > > > > > > > > > > Actually I can't... :-(
> > > > > > > > > > >
> > > > > > > > > > > But if you could point me where I should look, maybe I
> > can
> > > > > figure
> > > > > > > it
> > > > > > > > > out.
> > > > > > > > > > >
> > > > > > > > > > > Is that code that I've sent here correct? No issue?
> > > > > > > > > > >
> > > > > > > > > > > Did I put the StaticMembershipInterceptor at right
> place?
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > > > > > > Blog: http://eldermoraes.com
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > 2017-07-05 16:21 GMT-03:00 Romain Manni-Bucau <
> > > > > > > rmannibucau@gmail.com
> > > > > > > > >:
> > > > > > > > > > >
> > > > > > > > > > > > Do you think you can do a setup without docker? Would
> > be
> > > > > easier
> > > > > > > to
> > > > > > > > > > check
> > > > > > > > > > > > but sounds like a config issue.
> > > > > > > > > > > >
> > > > > > > > > > > > Le 5 juil. 2017 21:18, "Elder Moraes" <
> > > > > elder.moraes@gmail.com>
> > > > > > a
> > > > > > > > > > écrit :
> > > > > > > > > > > >
> > > > > > > > > > > > > If you are talking about removing the McastService,
> > > I've
> > > > > > > already
> > > > > > > > > done
> > > > > > > > > > > and
> > > > > > > > > > > > > didn't work. The cluster still works as a dynamic
> > one.
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > > Twitter: @elderjava <https://twitter.com/elderjava
> >
> > > > > > > > > > > > > Blog: http://eldermoraes.com
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > > 2017-07-05 16:08 GMT-03:00 Romain Manni-Bucau <
> > > > > > > > > rmannibucau@gmail.com
> > > > > > > > > > >:
> > > > > > > > > > > > >
> > > > > > > > > > > > > > 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.moraes@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 <
> > > > > > > > > > rmannibucau@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.moraes@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://1
> > > > > > > > > > > > > > 72.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 <
> > > > > > > > > > > > rmannibucau@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.moraes@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 <
> > > > > > > > > > > > > > rmannibucau@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.moraes@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
> > > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: Building a Static Discovery Cluster

Posted by Romain Manni-Bucau <rm...@gmail.com>.
What are the new logs? ;)

Tomcat logs everything showing if connection works, if members are
accepted/connecting etc...

From what i saw the docker setup is not matching the conf. Maybe start by
making it running without docker before dockerizing it.

Side note: maybe you want local member in your cluster (depends your goal
but was often done IIRC).

Le 6 juil. 2017 19:50, "Elder Moraes" <el...@gmail.com> a écrit :

> Thanks guys.
>
> I'm not using docker-compose.
>
> Actually I've just fixed that errors logged just by creating a
> docker-network for the cluster and defining a static IP for each member. So
> the cluster is working well at this point.
>
> But it is still working as a dynamic one. I've found somewhere that I
> should use channelStartOptions="3" to disable multicast and avoid
> unexpected members. But once I do it, the session is not shared thru the
> cluster anymore.
>
> Any thoughts?
>
>
> Twitter: @elderjava <https://twitter.com/elderjava>
> Blog: http://eldermoraes.com
>
>
> 2017-07-06 10:03 GMT-03:00 Thiago Veronezi <th...@veronezi.org>:
>
> > If you are using docker-compose, check the depends_on option. It will
> > guarantee you have your name available. It does not guarantee you have
> the
> > service fully up and running though. If you need that too, you will need
> > the script to wait for the service behind that name to be ready.
> >
> > []s,
> > Thiago.
> >
> >
> > On 5 Jul 2017 6:16 pm, "Romain Manni-Bucau" <rm...@gmail.com>
> wrote:
> >
> > > looks like docker dns is not working that well and registration fails -
> > or
> > > the startup is not ordered properly but result lead to the same. Often
> > saw
> > > docker-compose having a small bash loop to wait for the host/port being
> > > accessible. Maybe that's what you need (yes it is ugly)
> > >
> > >
> > > 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-06 0:13 GMT+02:00 Elder Moraes <el...@gmail.com>:
> > >
> > > > I've got the log and put here:
> > > >
> > > > https://www.dropbox.com/s/yxt3ym1ucv1hwb3/catalina.2017-
> 07-05.log?dl=0
> > > >
> > > >
> > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > Blog: http://eldermoraes.com
> > > >
> > > >
> > > >
> > > > 2017-07-05 18:56 GMT-03:00 Romain Manni-Bucau <rmannibucau@gmail.com
> >:
> > > >
> > > > > interesting, would be great to have debug log of that clustering
> part
> > > > > (something like org.apache.catalina.tribes.level = FINE), think
> the
> > > > static
> > > > > members are actually excluded of the cluster reading this error
> > > > >
> > > > >
> > > > > 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 23:53 GMT+02:00 Elder Moraes <el...@gmail.com>:
> > > > >
> > > > > > Hmm, why not the tcpfailuredetector as a root (/>) instead of
> > > wrapping
> > > > > the
> > > > > > static membership one?
> > > > > >
> > > > > > Done e got this error:
> > > > > >
> > > > > > 05-Jul-2017 21:51:32.845 WARNING
> > > > > > [GroupChannel-Heartbeat[Catalina-Channel]-1]
> > > > > > sun.reflect.NativeMethodAccessorImpl.invoke Unable to perform
> > > > heartbeat
> > > > > on
> > > > > > the TcpFailureDetector.
> > > > > >  java.lang.ArrayIndexOutOfBoundsException: 0
> > > > > >     at
> > > > > > org.apache.catalina.tribes.membership.MemberImpl.
> > > > > > hashCode(MemberImpl.java:570)
> > > > > >     at java.util.HashMap.hash(HashMap.java:338)
> > > > > >     at java.util.HashMap.containsKey(HashMap.java:595)
> > > > > >     at
> > > > > > org.apache.catalina.tribes.group.interceptors.
> TcpFailureDetector.
> > > > > > performBasicCheck(TcpFailureDetector.java:258)
> > > > > >     at
> > > > > > org.apache.catalina.tribes.group.interceptors.
> TcpFailureDetector.
> > > > > > checkMembers(TcpFailureDetector.java:225)
> > > > > >     at
> > > > > > org.apache.catalina.tribes.group.interceptors.
> > > > > > TcpFailureDetector.heartbeat(TcpFailureDetector.java:218)
> > > > > >     at
> > > > > > org.apache.catalina.tribes.group.ChannelInterceptorBase.
> heartbeat(
> > > > > > ChannelInterceptorBase.java:100)
> > > > > >     at
> > > > > > org.apache.catalina.tribes.group.GroupChannel.heartbeat(
> > > > > > GroupChannel.java:161)
> > > > > >     at
> > > > > > org.apache.catalina.tribes.group.GroupChannel$
> HeartbeatThread.run(
> > > > > > GroupChannel.java:719)
> > > > > >
> > > > > >
> > > > > >
> > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > Blog: http://eldermoraes.com
> > > > > >
> > > > > >
> > > > > >
> > > > > > 2017-07-05 18:47 GMT-03:00 Romain Manni-Bucau <
> > rmannibucau@gmail.com
> > > >:
> > > > > >
> > > > > > > Hmm, why not the tcpfailuredetector as a root (/>) instead of
> > > > wrapping
> > > > > > the
> > > > > > > static membership one?
> > > > > > >
> > > > > > > Also did you manage to get debug log of tomcat cluster? it
> helps
> > a
> > > > lot
> > > > > in
> > > > > > > general
> > > > > > >
> > > > > > >
> > > > > > > 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 23:43 GMT+02:00 Elder Moraes <
> elder.moraes@gmail.com
> > >:
> > > > > > >
> > > > > > > > Did it. No errors found.
> > > > > > > >
> > > > > > > > If you want to have a look at the server.xml. Also I've
> undone
> > > the
> > > > > > > changes
> > > > > > > > I've made before.
> > > > > > > >
> > > > > > > > https://www.dropbox.com/s/p3iknyku2rb3f3w/server.xml?dl=0
> > > > > > > >
> > > > > > > >
> > > > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > > > Blog: http://eldermoraes.com
> > > > > > > >
> > > > > > > >
> > > > > > > > 2017-07-05 17:08 GMT-03:00 Romain Manni-Bucau <
> > > > rmannibucau@gmail.com
> > > > > >:
> > > > > > > >
> > > > > > > > > Gmail formatting doesnt help much but think it can miss
> some
> > > > > closing
> > > > > > > > tags.
> > > > > > > > > Autoformat it in an ide, it should show it.
> > > > > > > > >
> > > > > > > > > Le 5 juil. 2017 21:28, "Elder Moraes" <
> > elder.moraes@gmail.com>
> > > a
> > > > > > > écrit :
> > > > > > > > >
> > > > > > > > > > Actually I can't... :-(
> > > > > > > > > >
> > > > > > > > > > But if you could point me where I should look, maybe I
> can
> > > > figure
> > > > > > it
> > > > > > > > out.
> > > > > > > > > >
> > > > > > > > > > Is that code that I've sent here correct? No issue?
> > > > > > > > > >
> > > > > > > > > > Did I put the StaticMembershipInterceptor at right place?
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > > > > > Blog: http://eldermoraes.com
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > 2017-07-05 16:21 GMT-03:00 Romain Manni-Bucau <
> > > > > > rmannibucau@gmail.com
> > > > > > > >:
> > > > > > > > > >
> > > > > > > > > > > Do you think you can do a setup without docker? Would
> be
> > > > easier
> > > > > > to
> > > > > > > > > check
> > > > > > > > > > > but sounds like a config issue.
> > > > > > > > > > >
> > > > > > > > > > > Le 5 juil. 2017 21:18, "Elder Moraes" <
> > > > elder.moraes@gmail.com>
> > > > > a
> > > > > > > > > écrit :
> > > > > > > > > > >
> > > > > > > > > > > > If you are talking about removing the McastService,
> > I've
> > > > > > already
> > > > > > > > done
> > > > > > > > > > and
> > > > > > > > > > > > didn't work. The cluster still works as a dynamic
> one.
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > > > > > > > Blog: http://eldermoraes.com
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > 2017-07-05 16:08 GMT-03:00 Romain Manni-Bucau <
> > > > > > > > rmannibucau@gmail.com
> > > > > > > > > >:
> > > > > > > > > > > >
> > > > > > > > > > > > > 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.moraes@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 <
> > > > > > > > > rmannibucau@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.moraes@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://1
> > > > > > > > > > > > > 72.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 <
> > > > > > > > > > > rmannibucau@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.moraes@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 <
> > > > > > > > > > > > > rmannibucau@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.moraes@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
> > > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: Building a Static Discovery Cluster

Posted by Elder Moraes <el...@gmail.com>.
Thanks guys.

I'm not using docker-compose.

Actually I've just fixed that errors logged just by creating a
docker-network for the cluster and defining a static IP for each member. So
the cluster is working well at this point.

But it is still working as a dynamic one. I've found somewhere that I
should use channelStartOptions="3" to disable multicast and avoid
unexpected members. But once I do it, the session is not shared thru the
cluster anymore.

Any thoughts?


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


2017-07-06 10:03 GMT-03:00 Thiago Veronezi <th...@veronezi.org>:

> If you are using docker-compose, check the depends_on option. It will
> guarantee you have your name available. It does not guarantee you have the
> service fully up and running though. If you need that too, you will need
> the script to wait for the service behind that name to be ready.
>
> []s,
> Thiago.
>
>
> On 5 Jul 2017 6:16 pm, "Romain Manni-Bucau" <rm...@gmail.com> wrote:
>
> > looks like docker dns is not working that well and registration fails -
> or
> > the startup is not ordered properly but result lead to the same. Often
> saw
> > docker-compose having a small bash loop to wait for the host/port being
> > accessible. Maybe that's what you need (yes it is ugly)
> >
> >
> > 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-06 0:13 GMT+02:00 Elder Moraes <el...@gmail.com>:
> >
> > > I've got the log and put here:
> > >
> > > https://www.dropbox.com/s/yxt3ym1ucv1hwb3/catalina.2017-07-05.log?dl=0
> > >
> > >
> > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > Blog: http://eldermoraes.com
> > >
> > >
> > >
> > > 2017-07-05 18:56 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:
> > >
> > > > interesting, would be great to have debug log of that clustering part
> > > > (something like org.apache.catalina.tribes.level = FINE), think the
> > > static
> > > > members are actually excluded of the cluster reading this error
> > > >
> > > >
> > > > 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 23:53 GMT+02:00 Elder Moraes <el...@gmail.com>:
> > > >
> > > > > Hmm, why not the tcpfailuredetector as a root (/>) instead of
> > wrapping
> > > > the
> > > > > static membership one?
> > > > >
> > > > > Done e got this error:
> > > > >
> > > > > 05-Jul-2017 21:51:32.845 WARNING
> > > > > [GroupChannel-Heartbeat[Catalina-Channel]-1]
> > > > > sun.reflect.NativeMethodAccessorImpl.invoke Unable to perform
> > > heartbeat
> > > > on
> > > > > the TcpFailureDetector.
> > > > >  java.lang.ArrayIndexOutOfBoundsException: 0
> > > > >     at
> > > > > org.apache.catalina.tribes.membership.MemberImpl.
> > > > > hashCode(MemberImpl.java:570)
> > > > >     at java.util.HashMap.hash(HashMap.java:338)
> > > > >     at java.util.HashMap.containsKey(HashMap.java:595)
> > > > >     at
> > > > > org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.
> > > > > performBasicCheck(TcpFailureDetector.java:258)
> > > > >     at
> > > > > org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.
> > > > > checkMembers(TcpFailureDetector.java:225)
> > > > >     at
> > > > > org.apache.catalina.tribes.group.interceptors.
> > > > > TcpFailureDetector.heartbeat(TcpFailureDetector.java:218)
> > > > >     at
> > > > > org.apache.catalina.tribes.group.ChannelInterceptorBase.heartbeat(
> > > > > ChannelInterceptorBase.java:100)
> > > > >     at
> > > > > org.apache.catalina.tribes.group.GroupChannel.heartbeat(
> > > > > GroupChannel.java:161)
> > > > >     at
> > > > > org.apache.catalina.tribes.group.GroupChannel$HeartbeatThread.run(
> > > > > GroupChannel.java:719)
> > > > >
> > > > >
> > > > >
> > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > Blog: http://eldermoraes.com
> > > > >
> > > > >
> > > > >
> > > > > 2017-07-05 18:47 GMT-03:00 Romain Manni-Bucau <
> rmannibucau@gmail.com
> > >:
> > > > >
> > > > > > Hmm, why not the tcpfailuredetector as a root (/>) instead of
> > > wrapping
> > > > > the
> > > > > > static membership one?
> > > > > >
> > > > > > Also did you manage to get debug log of tomcat cluster? it helps
> a
> > > lot
> > > > in
> > > > > > general
> > > > > >
> > > > > >
> > > > > > 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 23:43 GMT+02:00 Elder Moraes <elder.moraes@gmail.com
> >:
> > > > > >
> > > > > > > Did it. No errors found.
> > > > > > >
> > > > > > > If you want to have a look at the server.xml. Also I've undone
> > the
> > > > > > changes
> > > > > > > I've made before.
> > > > > > >
> > > > > > > https://www.dropbox.com/s/p3iknyku2rb3f3w/server.xml?dl=0
> > > > > > >
> > > > > > >
> > > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > > Blog: http://eldermoraes.com
> > > > > > >
> > > > > > >
> > > > > > > 2017-07-05 17:08 GMT-03:00 Romain Manni-Bucau <
> > > rmannibucau@gmail.com
> > > > >:
> > > > > > >
> > > > > > > > Gmail formatting doesnt help much but think it can miss some
> > > > closing
> > > > > > > tags.
> > > > > > > > Autoformat it in an ide, it should show it.
> > > > > > > >
> > > > > > > > Le 5 juil. 2017 21:28, "Elder Moraes" <
> elder.moraes@gmail.com>
> > a
> > > > > > écrit :
> > > > > > > >
> > > > > > > > > Actually I can't... :-(
> > > > > > > > >
> > > > > > > > > But if you could point me where I should look, maybe I can
> > > figure
> > > > > it
> > > > > > > out.
> > > > > > > > >
> > > > > > > > > Is that code that I've sent here correct? No issue?
> > > > > > > > >
> > > > > > > > > Did I put the StaticMembershipInterceptor at right place?
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > > > > Blog: http://eldermoraes.com
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > 2017-07-05 16:21 GMT-03:00 Romain Manni-Bucau <
> > > > > rmannibucau@gmail.com
> > > > > > >:
> > > > > > > > >
> > > > > > > > > > Do you think you can do a setup without docker? Would be
> > > easier
> > > > > to
> > > > > > > > check
> > > > > > > > > > but sounds like a config issue.
> > > > > > > > > >
> > > > > > > > > > Le 5 juil. 2017 21:18, "Elder Moraes" <
> > > elder.moraes@gmail.com>
> > > > a
> > > > > > > > écrit :
> > > > > > > > > >
> > > > > > > > > > > If you are talking about removing the McastService,
> I've
> > > > > already
> > > > > > > done
> > > > > > > > > and
> > > > > > > > > > > didn't work. The cluster still works as a dynamic one.
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > > > > > > Blog: http://eldermoraes.com
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > 2017-07-05 16:08 GMT-03:00 Romain Manni-Bucau <
> > > > > > > rmannibucau@gmail.com
> > > > > > > > >:
> > > > > > > > > > >
> > > > > > > > > > > > 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.moraes@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 <
> > > > > > > > rmannibucau@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.moraes@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://1
> > > > > > > > > > > > 72.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 <
> > > > > > > > > > rmannibucau@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.moraes@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 <
> > > > > > > > > > > > rmannibucau@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.moraes@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
> > > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: Building a Static Discovery Cluster

Posted by Thiago Veronezi <th...@veronezi.org>.
If you are using docker-compose, check the depends_on option. It will
guarantee you have your name available. It does not guarantee you have the
service fully up and running though. If you need that too, you will need
the script to wait for the service behind that name to be ready.

[]s,
Thiago.


On 5 Jul 2017 6:16 pm, "Romain Manni-Bucau" <rm...@gmail.com> wrote:

> looks like docker dns is not working that well and registration fails - or
> the startup is not ordered properly but result lead to the same. Often saw
> docker-compose having a small bash loop to wait for the host/port being
> accessible. Maybe that's what you need (yes it is ugly)
>
>
> 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-06 0:13 GMT+02:00 Elder Moraes <el...@gmail.com>:
>
> > I've got the log and put here:
> >
> > https://www.dropbox.com/s/yxt3ym1ucv1hwb3/catalina.2017-07-05.log?dl=0
> >
> >
> > Twitter: @elderjava <https://twitter.com/elderjava>
> > Blog: http://eldermoraes.com
> >
> >
> >
> > 2017-07-05 18:56 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:
> >
> > > interesting, would be great to have debug log of that clustering part
> > > (something like org.apache.catalina.tribes.level = FINE), think the
> > static
> > > members are actually excluded of the cluster reading this error
> > >
> > >
> > > 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 23:53 GMT+02:00 Elder Moraes <el...@gmail.com>:
> > >
> > > > Hmm, why not the tcpfailuredetector as a root (/>) instead of
> wrapping
> > > the
> > > > static membership one?
> > > >
> > > > Done e got this error:
> > > >
> > > > 05-Jul-2017 21:51:32.845 WARNING
> > > > [GroupChannel-Heartbeat[Catalina-Channel]-1]
> > > > sun.reflect.NativeMethodAccessorImpl.invoke Unable to perform
> > heartbeat
> > > on
> > > > the TcpFailureDetector.
> > > >  java.lang.ArrayIndexOutOfBoundsException: 0
> > > >     at
> > > > org.apache.catalina.tribes.membership.MemberImpl.
> > > > hashCode(MemberImpl.java:570)
> > > >     at java.util.HashMap.hash(HashMap.java:338)
> > > >     at java.util.HashMap.containsKey(HashMap.java:595)
> > > >     at
> > > > org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.
> > > > performBasicCheck(TcpFailureDetector.java:258)
> > > >     at
> > > > org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.
> > > > checkMembers(TcpFailureDetector.java:225)
> > > >     at
> > > > org.apache.catalina.tribes.group.interceptors.
> > > > TcpFailureDetector.heartbeat(TcpFailureDetector.java:218)
> > > >     at
> > > > org.apache.catalina.tribes.group.ChannelInterceptorBase.heartbeat(
> > > > ChannelInterceptorBase.java:100)
> > > >     at
> > > > org.apache.catalina.tribes.group.GroupChannel.heartbeat(
> > > > GroupChannel.java:161)
> > > >     at
> > > > org.apache.catalina.tribes.group.GroupChannel$HeartbeatThread.run(
> > > > GroupChannel.java:719)
> > > >
> > > >
> > > >
> > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > Blog: http://eldermoraes.com
> > > >
> > > >
> > > >
> > > > 2017-07-05 18:47 GMT-03:00 Romain Manni-Bucau <rmannibucau@gmail.com
> >:
> > > >
> > > > > Hmm, why not the tcpfailuredetector as a root (/>) instead of
> > wrapping
> > > > the
> > > > > static membership one?
> > > > >
> > > > > Also did you manage to get debug log of tomcat cluster? it helps a
> > lot
> > > in
> > > > > general
> > > > >
> > > > >
> > > > > 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 23:43 GMT+02:00 Elder Moraes <el...@gmail.com>:
> > > > >
> > > > > > Did it. No errors found.
> > > > > >
> > > > > > If you want to have a look at the server.xml. Also I've undone
> the
> > > > > changes
> > > > > > I've made before.
> > > > > >
> > > > > > https://www.dropbox.com/s/p3iknyku2rb3f3w/server.xml?dl=0
> > > > > >
> > > > > >
> > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > Blog: http://eldermoraes.com
> > > > > >
> > > > > >
> > > > > > 2017-07-05 17:08 GMT-03:00 Romain Manni-Bucau <
> > rmannibucau@gmail.com
> > > >:
> > > > > >
> > > > > > > Gmail formatting doesnt help much but think it can miss some
> > > closing
> > > > > > tags.
> > > > > > > Autoformat it in an ide, it should show it.
> > > > > > >
> > > > > > > Le 5 juil. 2017 21:28, "Elder Moraes" <el...@gmail.com>
> a
> > > > > écrit :
> > > > > > >
> > > > > > > > Actually I can't... :-(
> > > > > > > >
> > > > > > > > But if you could point me where I should look, maybe I can
> > figure
> > > > it
> > > > > > out.
> > > > > > > >
> > > > > > > > Is that code that I've sent here correct? No issue?
> > > > > > > >
> > > > > > > > Did I put the StaticMembershipInterceptor at right place?
> > > > > > > >
> > > > > > > >
> > > > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > > > Blog: http://eldermoraes.com
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > 2017-07-05 16:21 GMT-03:00 Romain Manni-Bucau <
> > > > rmannibucau@gmail.com
> > > > > >:
> > > > > > > >
> > > > > > > > > Do you think you can do a setup without docker? Would be
> > easier
> > > > to
> > > > > > > check
> > > > > > > > > but sounds like a config issue.
> > > > > > > > >
> > > > > > > > > Le 5 juil. 2017 21:18, "Elder Moraes" <
> > elder.moraes@gmail.com>
> > > a
> > > > > > > écrit :
> > > > > > > > >
> > > > > > > > > > If you are talking about removing the McastService, I've
> > > > already
> > > > > > done
> > > > > > > > and
> > > > > > > > > > didn't work. The cluster still works as a dynamic one.
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > > > > > Blog: http://eldermoraes.com
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > 2017-07-05 16:08 GMT-03:00 Romain Manni-Bucau <
> > > > > > rmannibucau@gmail.com
> > > > > > > >:
> > > > > > > > > >
> > > > > > > > > > > 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.moraes@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 <
> > > > > > > rmannibucau@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.moraes@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://1
> > > > > > > > > > > 72.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 <
> > > > > > > > > rmannibucau@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.moraes@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 <
> > > > > > > > > > > rmannibucau@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.moraes@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
> > > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: Building a Static Discovery Cluster

Posted by Romain Manni-Bucau <rm...@gmail.com>.
looks like docker dns is not working that well and registration fails - or
the startup is not ordered properly but result lead to the same. Often saw
docker-compose having a small bash loop to wait for the host/port being
accessible. Maybe that's what you need (yes it is ugly)


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-06 0:13 GMT+02:00 Elder Moraes <el...@gmail.com>:

> I've got the log and put here:
>
> https://www.dropbox.com/s/yxt3ym1ucv1hwb3/catalina.2017-07-05.log?dl=0
>
>
> Twitter: @elderjava <https://twitter.com/elderjava>
> Blog: http://eldermoraes.com
>
>
>
> 2017-07-05 18:56 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:
>
> > interesting, would be great to have debug log of that clustering part
> > (something like org.apache.catalina.tribes.level = FINE), think the
> static
> > members are actually excluded of the cluster reading this error
> >
> >
> > 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 23:53 GMT+02:00 Elder Moraes <el...@gmail.com>:
> >
> > > Hmm, why not the tcpfailuredetector as a root (/>) instead of wrapping
> > the
> > > static membership one?
> > >
> > > Done e got this error:
> > >
> > > 05-Jul-2017 21:51:32.845 WARNING
> > > [GroupChannel-Heartbeat[Catalina-Channel]-1]
> > > sun.reflect.NativeMethodAccessorImpl.invoke Unable to perform
> heartbeat
> > on
> > > the TcpFailureDetector.
> > >  java.lang.ArrayIndexOutOfBoundsException: 0
> > >     at
> > > org.apache.catalina.tribes.membership.MemberImpl.
> > > hashCode(MemberImpl.java:570)
> > >     at java.util.HashMap.hash(HashMap.java:338)
> > >     at java.util.HashMap.containsKey(HashMap.java:595)
> > >     at
> > > org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.
> > > performBasicCheck(TcpFailureDetector.java:258)
> > >     at
> > > org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.
> > > checkMembers(TcpFailureDetector.java:225)
> > >     at
> > > org.apache.catalina.tribes.group.interceptors.
> > > TcpFailureDetector.heartbeat(TcpFailureDetector.java:218)
> > >     at
> > > org.apache.catalina.tribes.group.ChannelInterceptorBase.heartbeat(
> > > ChannelInterceptorBase.java:100)
> > >     at
> > > org.apache.catalina.tribes.group.GroupChannel.heartbeat(
> > > GroupChannel.java:161)
> > >     at
> > > org.apache.catalina.tribes.group.GroupChannel$HeartbeatThread.run(
> > > GroupChannel.java:719)
> > >
> > >
> > >
> > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > Blog: http://eldermoraes.com
> > >
> > >
> > >
> > > 2017-07-05 18:47 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:
> > >
> > > > Hmm, why not the tcpfailuredetector as a root (/>) instead of
> wrapping
> > > the
> > > > static membership one?
> > > >
> > > > Also did you manage to get debug log of tomcat cluster? it helps a
> lot
> > in
> > > > general
> > > >
> > > >
> > > > 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 23:43 GMT+02:00 Elder Moraes <el...@gmail.com>:
> > > >
> > > > > Did it. No errors found.
> > > > >
> > > > > If you want to have a look at the server.xml. Also I've undone the
> > > > changes
> > > > > I've made before.
> > > > >
> > > > > https://www.dropbox.com/s/p3iknyku2rb3f3w/server.xml?dl=0
> > > > >
> > > > >
> > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > Blog: http://eldermoraes.com
> > > > >
> > > > >
> > > > > 2017-07-05 17:08 GMT-03:00 Romain Manni-Bucau <
> rmannibucau@gmail.com
> > >:
> > > > >
> > > > > > Gmail formatting doesnt help much but think it can miss some
> > closing
> > > > > tags.
> > > > > > Autoformat it in an ide, it should show it.
> > > > > >
> > > > > > Le 5 juil. 2017 21:28, "Elder Moraes" <el...@gmail.com> a
> > > > écrit :
> > > > > >
> > > > > > > Actually I can't... :-(
> > > > > > >
> > > > > > > But if you could point me where I should look, maybe I can
> figure
> > > it
> > > > > out.
> > > > > > >
> > > > > > > Is that code that I've sent here correct? No issue?
> > > > > > >
> > > > > > > Did I put the StaticMembershipInterceptor at right place?
> > > > > > >
> > > > > > >
> > > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > > Blog: http://eldermoraes.com
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > 2017-07-05 16:21 GMT-03:00 Romain Manni-Bucau <
> > > rmannibucau@gmail.com
> > > > >:
> > > > > > >
> > > > > > > > Do you think you can do a setup without docker? Would be
> easier
> > > to
> > > > > > check
> > > > > > > > but sounds like a config issue.
> > > > > > > >
> > > > > > > > Le 5 juil. 2017 21:18, "Elder Moraes" <
> elder.moraes@gmail.com>
> > a
> > > > > > écrit :
> > > > > > > >
> > > > > > > > > If you are talking about removing the McastService, I've
> > > already
> > > > > done
> > > > > > > and
> > > > > > > > > didn't work. The cluster still works as a dynamic one.
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > > > > Blog: http://eldermoraes.com
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > 2017-07-05 16:08 GMT-03:00 Romain Manni-Bucau <
> > > > > rmannibucau@gmail.com
> > > > > > >:
> > > > > > > > >
> > > > > > > > > > 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.moraes@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 <
> > > > > > rmannibucau@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.moraes@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://1
> > > > > > > > > > 72.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 <
> > > > > > > > rmannibucau@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.moraes@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 <
> > > > > > > > > > rmannibucau@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.moraes@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
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: Building a Static Discovery Cluster

Posted by Elder Moraes <el...@gmail.com>.
I've got the log and put here:

https://www.dropbox.com/s/yxt3ym1ucv1hwb3/catalina.2017-07-05.log?dl=0


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



2017-07-05 18:56 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:

> interesting, would be great to have debug log of that clustering part
> (something like org.apache.catalina.tribes.level = FINE), think the static
> members are actually excluded of the cluster reading this error
>
>
> 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 23:53 GMT+02:00 Elder Moraes <el...@gmail.com>:
>
> > Hmm, why not the tcpfailuredetector as a root (/>) instead of wrapping
> the
> > static membership one?
> >
> > Done e got this error:
> >
> > 05-Jul-2017 21:51:32.845 WARNING
> > [GroupChannel-Heartbeat[Catalina-Channel]-1]
> > sun.reflect.NativeMethodAccessorImpl.invoke Unable to perform heartbeat
> on
> > the TcpFailureDetector.
> >  java.lang.ArrayIndexOutOfBoundsException: 0
> >     at
> > org.apache.catalina.tribes.membership.MemberImpl.
> > hashCode(MemberImpl.java:570)
> >     at java.util.HashMap.hash(HashMap.java:338)
> >     at java.util.HashMap.containsKey(HashMap.java:595)
> >     at
> > org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.
> > performBasicCheck(TcpFailureDetector.java:258)
> >     at
> > org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.
> > checkMembers(TcpFailureDetector.java:225)
> >     at
> > org.apache.catalina.tribes.group.interceptors.
> > TcpFailureDetector.heartbeat(TcpFailureDetector.java:218)
> >     at
> > org.apache.catalina.tribes.group.ChannelInterceptorBase.heartbeat(
> > ChannelInterceptorBase.java:100)
> >     at
> > org.apache.catalina.tribes.group.GroupChannel.heartbeat(
> > GroupChannel.java:161)
> >     at
> > org.apache.catalina.tribes.group.GroupChannel$HeartbeatThread.run(
> > GroupChannel.java:719)
> >
> >
> >
> > Twitter: @elderjava <https://twitter.com/elderjava>
> > Blog: http://eldermoraes.com
> >
> >
> >
> > 2017-07-05 18:47 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:
> >
> > > Hmm, why not the tcpfailuredetector as a root (/>) instead of wrapping
> > the
> > > static membership one?
> > >
> > > Also did you manage to get debug log of tomcat cluster? it helps a lot
> in
> > > general
> > >
> > >
> > > 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 23:43 GMT+02:00 Elder Moraes <el...@gmail.com>:
> > >
> > > > Did it. No errors found.
> > > >
> > > > If you want to have a look at the server.xml. Also I've undone the
> > > changes
> > > > I've made before.
> > > >
> > > > https://www.dropbox.com/s/p3iknyku2rb3f3w/server.xml?dl=0
> > > >
> > > >
> > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > Blog: http://eldermoraes.com
> > > >
> > > >
> > > > 2017-07-05 17:08 GMT-03:00 Romain Manni-Bucau <rmannibucau@gmail.com
> >:
> > > >
> > > > > Gmail formatting doesnt help much but think it can miss some
> closing
> > > > tags.
> > > > > Autoformat it in an ide, it should show it.
> > > > >
> > > > > Le 5 juil. 2017 21:28, "Elder Moraes" <el...@gmail.com> a
> > > écrit :
> > > > >
> > > > > > Actually I can't... :-(
> > > > > >
> > > > > > But if you could point me where I should look, maybe I can figure
> > it
> > > > out.
> > > > > >
> > > > > > Is that code that I've sent here correct? No issue?
> > > > > >
> > > > > > Did I put the StaticMembershipInterceptor at right place?
> > > > > >
> > > > > >
> > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > Blog: http://eldermoraes.com
> > > > > >
> > > > > >
> > > > > >
> > > > > > 2017-07-05 16:21 GMT-03:00 Romain Manni-Bucau <
> > rmannibucau@gmail.com
> > > >:
> > > > > >
> > > > > > > Do you think you can do a setup without docker? Would be easier
> > to
> > > > > check
> > > > > > > but sounds like a config issue.
> > > > > > >
> > > > > > > Le 5 juil. 2017 21:18, "Elder Moraes" <el...@gmail.com>
> a
> > > > > écrit :
> > > > > > >
> > > > > > > > If you are talking about removing the McastService, I've
> > already
> > > > done
> > > > > > and
> > > > > > > > didn't work. The cluster still works as a dynamic one.
> > > > > > > >
> > > > > > > >
> > > > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > > > Blog: http://eldermoraes.com
> > > > > > > >
> > > > > > > >
> > > > > > > > 2017-07-05 16:08 GMT-03:00 Romain Manni-Bucau <
> > > > rmannibucau@gmail.com
> > > > > >:
> > > > > > > >
> > > > > > > > > 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.moraes@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 <
> > > > > rmannibucau@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.moraes@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://1
> > > > > > > > > 72.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 <
> > > > > > > rmannibucau@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.moraes@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 <
> > > > > > > > > rmannibucau@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.moraes@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
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: Building a Static Discovery Cluster

Posted by Romain Manni-Bucau <rm...@gmail.com>.
interesting, would be great to have debug log of that clustering part
(something like org.apache.catalina.tribes.level = FINE), think the static
members are actually excluded of the cluster reading this error


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 23:53 GMT+02:00 Elder Moraes <el...@gmail.com>:

> Hmm, why not the tcpfailuredetector as a root (/>) instead of wrapping the
> static membership one?
>
> Done e got this error:
>
> 05-Jul-2017 21:51:32.845 WARNING
> [GroupChannel-Heartbeat[Catalina-Channel]-1]
> sun.reflect.NativeMethodAccessorImpl.invoke Unable to perform heartbeat on
> the TcpFailureDetector.
>  java.lang.ArrayIndexOutOfBoundsException: 0
>     at
> org.apache.catalina.tribes.membership.MemberImpl.
> hashCode(MemberImpl.java:570)
>     at java.util.HashMap.hash(HashMap.java:338)
>     at java.util.HashMap.containsKey(HashMap.java:595)
>     at
> org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.
> performBasicCheck(TcpFailureDetector.java:258)
>     at
> org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.
> checkMembers(TcpFailureDetector.java:225)
>     at
> org.apache.catalina.tribes.group.interceptors.
> TcpFailureDetector.heartbeat(TcpFailureDetector.java:218)
>     at
> org.apache.catalina.tribes.group.ChannelInterceptorBase.heartbeat(
> ChannelInterceptorBase.java:100)
>     at
> org.apache.catalina.tribes.group.GroupChannel.heartbeat(
> GroupChannel.java:161)
>     at
> org.apache.catalina.tribes.group.GroupChannel$HeartbeatThread.run(
> GroupChannel.java:719)
>
>
>
> Twitter: @elderjava <https://twitter.com/elderjava>
> Blog: http://eldermoraes.com
>
>
>
> 2017-07-05 18:47 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:
>
> > Hmm, why not the tcpfailuredetector as a root (/>) instead of wrapping
> the
> > static membership one?
> >
> > Also did you manage to get debug log of tomcat cluster? it helps a lot in
> > general
> >
> >
> > 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 23:43 GMT+02:00 Elder Moraes <el...@gmail.com>:
> >
> > > Did it. No errors found.
> > >
> > > If you want to have a look at the server.xml. Also I've undone the
> > changes
> > > I've made before.
> > >
> > > https://www.dropbox.com/s/p3iknyku2rb3f3w/server.xml?dl=0
> > >
> > >
> > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > Blog: http://eldermoraes.com
> > >
> > >
> > > 2017-07-05 17:08 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:
> > >
> > > > Gmail formatting doesnt help much but think it can miss some closing
> > > tags.
> > > > Autoformat it in an ide, it should show it.
> > > >
> > > > Le 5 juil. 2017 21:28, "Elder Moraes" <el...@gmail.com> a
> > écrit :
> > > >
> > > > > Actually I can't... :-(
> > > > >
> > > > > But if you could point me where I should look, maybe I can figure
> it
> > > out.
> > > > >
> > > > > Is that code that I've sent here correct? No issue?
> > > > >
> > > > > Did I put the StaticMembershipInterceptor at right place?
> > > > >
> > > > >
> > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > Blog: http://eldermoraes.com
> > > > >
> > > > >
> > > > >
> > > > > 2017-07-05 16:21 GMT-03:00 Romain Manni-Bucau <
> rmannibucau@gmail.com
> > >:
> > > > >
> > > > > > Do you think you can do a setup without docker? Would be easier
> to
> > > > check
> > > > > > but sounds like a config issue.
> > > > > >
> > > > > > Le 5 juil. 2017 21:18, "Elder Moraes" <el...@gmail.com> a
> > > > écrit :
> > > > > >
> > > > > > > If you are talking about removing the McastService, I've
> already
> > > done
> > > > > and
> > > > > > > didn't work. The cluster still works as a dynamic one.
> > > > > > >
> > > > > > >
> > > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > > Blog: http://eldermoraes.com
> > > > > > >
> > > > > > >
> > > > > > > 2017-07-05 16:08 GMT-03:00 Romain Manni-Bucau <
> > > rmannibucau@gmail.com
> > > > >:
> > > > > > >
> > > > > > > > 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.moraes@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 <
> > > > rmannibucau@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.moraes@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://1
> > > > > > > > 72.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 <
> > > > > > rmannibucau@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.moraes@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 <
> > > > > > > > rmannibucau@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.moraes@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
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: Building a Static Discovery Cluster

Posted by Elder Moraes <el...@gmail.com>.
Hmm, why not the tcpfailuredetector as a root (/>) instead of wrapping the
static membership one?

Done e got this error:

05-Jul-2017 21:51:32.845 WARNING
[GroupChannel-Heartbeat[Catalina-Channel]-1]
sun.reflect.NativeMethodAccessorImpl.invoke Unable to perform heartbeat on
the TcpFailureDetector.
 java.lang.ArrayIndexOutOfBoundsException: 0
    at
org.apache.catalina.tribes.membership.MemberImpl.hashCode(MemberImpl.java:570)
    at java.util.HashMap.hash(HashMap.java:338)
    at java.util.HashMap.containsKey(HashMap.java:595)
    at
org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.performBasicCheck(TcpFailureDetector.java:258)
    at
org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.checkMembers(TcpFailureDetector.java:225)
    at
org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.heartbeat(TcpFailureDetector.java:218)
    at
org.apache.catalina.tribes.group.ChannelInterceptorBase.heartbeat(ChannelInterceptorBase.java:100)
    at
org.apache.catalina.tribes.group.GroupChannel.heartbeat(GroupChannel.java:161)
    at
org.apache.catalina.tribes.group.GroupChannel$HeartbeatThread.run(GroupChannel.java:719)



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



2017-07-05 18:47 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:

> Hmm, why not the tcpfailuredetector as a root (/>) instead of wrapping the
> static membership one?
>
> Also did you manage to get debug log of tomcat cluster? it helps a lot in
> general
>
>
> 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 23:43 GMT+02:00 Elder Moraes <el...@gmail.com>:
>
> > Did it. No errors found.
> >
> > If you want to have a look at the server.xml. Also I've undone the
> changes
> > I've made before.
> >
> > https://www.dropbox.com/s/p3iknyku2rb3f3w/server.xml?dl=0
> >
> >
> > Twitter: @elderjava <https://twitter.com/elderjava>
> > Blog: http://eldermoraes.com
> >
> >
> > 2017-07-05 17:08 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:
> >
> > > Gmail formatting doesnt help much but think it can miss some closing
> > tags.
> > > Autoformat it in an ide, it should show it.
> > >
> > > Le 5 juil. 2017 21:28, "Elder Moraes" <el...@gmail.com> a
> écrit :
> > >
> > > > Actually I can't... :-(
> > > >
> > > > But if you could point me where I should look, maybe I can figure it
> > out.
> > > >
> > > > Is that code that I've sent here correct? No issue?
> > > >
> > > > Did I put the StaticMembershipInterceptor at right place?
> > > >
> > > >
> > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > Blog: http://eldermoraes.com
> > > >
> > > >
> > > >
> > > > 2017-07-05 16:21 GMT-03:00 Romain Manni-Bucau <rmannibucau@gmail.com
> >:
> > > >
> > > > > Do you think you can do a setup without docker? Would be easier to
> > > check
> > > > > but sounds like a config issue.
> > > > >
> > > > > Le 5 juil. 2017 21:18, "Elder Moraes" <el...@gmail.com> a
> > > écrit :
> > > > >
> > > > > > If you are talking about removing the McastService, I've already
> > done
> > > > and
> > > > > > didn't work. The cluster still works as a dynamic one.
> > > > > >
> > > > > >
> > > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > > Blog: http://eldermoraes.com
> > > > > >
> > > > > >
> > > > > > 2017-07-05 16:08 GMT-03:00 Romain Manni-Bucau <
> > rmannibucau@gmail.com
> > > >:
> > > > > >
> > > > > > > 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" <el...@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 <
> > > rmannibucau@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.moraes@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://1
> > > > > > > 72.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 <
> > > > > rmannibucau@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.moraes@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 <
> > > > > > > rmannibucau@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.moraes@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
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: Building a Static Discovery Cluster

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hmm, why not the tcpfailuredetector as a root (/>) instead of wrapping the
static membership one?

Also did you manage to get debug log of tomcat cluster? it helps a lot in
general


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 23:43 GMT+02:00 Elder Moraes <el...@gmail.com>:

> Did it. No errors found.
>
> If you want to have a look at the server.xml. Also I've undone the changes
> I've made before.
>
> https://www.dropbox.com/s/p3iknyku2rb3f3w/server.xml?dl=0
>
>
> Twitter: @elderjava <https://twitter.com/elderjava>
> Blog: http://eldermoraes.com
>
>
> 2017-07-05 17:08 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:
>
> > Gmail formatting doesnt help much but think it can miss some closing
> tags.
> > Autoformat it in an ide, it should show it.
> >
> > Le 5 juil. 2017 21:28, "Elder Moraes" <el...@gmail.com> a écrit :
> >
> > > Actually I can't... :-(
> > >
> > > But if you could point me where I should look, maybe I can figure it
> out.
> > >
> > > Is that code that I've sent here correct? No issue?
> > >
> > > Did I put the StaticMembershipInterceptor at right place?
> > >
> > >
> > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > Blog: http://eldermoraes.com
> > >
> > >
> > >
> > > 2017-07-05 16:21 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:
> > >
> > > > Do you think you can do a setup without docker? Would be easier to
> > check
> > > > but sounds like a config issue.
> > > >
> > > > Le 5 juil. 2017 21:18, "Elder Moraes" <el...@gmail.com> a
> > écrit :
> > > >
> > > > > If you are talking about removing the McastService, I've already
> done
> > > and
> > > > > didn't work. The cluster still works as a dynamic one.
> > > > >
> > > > >
> > > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > > Blog: http://eldermoraes.com
> > > > >
> > > > >
> > > > > 2017-07-05 16:08 GMT-03:00 Romain Manni-Bucau <
> rmannibucau@gmail.com
> > >:
> > > > >
> > > > > > 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" <el...@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 <
> > rmannibucau@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.moraes@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://1
> > > > > > 72.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 <
> > > > rmannibucau@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.moraes@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 <
> > > > > > rmannibucau@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.moraes@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
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: Building a Static Discovery Cluster

Posted by Elder Moraes <el...@gmail.com>.
Did it. No errors found.

If you want to have a look at the server.xml. Also I've undone the changes
I've made before.

https://www.dropbox.com/s/p3iknyku2rb3f3w/server.xml?dl=0


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


2017-07-05 17:08 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:

> Gmail formatting doesnt help much but think it can miss some closing tags.
> Autoformat it in an ide, it should show it.
>
> Le 5 juil. 2017 21:28, "Elder Moraes" <el...@gmail.com> a écrit :
>
> > Actually I can't... :-(
> >
> > But if you could point me where I should look, maybe I can figure it out.
> >
> > Is that code that I've sent here correct? No issue?
> >
> > Did I put the StaticMembershipInterceptor at right place?
> >
> >
> > Twitter: @elderjava <https://twitter.com/elderjava>
> > Blog: http://eldermoraes.com
> >
> >
> >
> > 2017-07-05 16:21 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:
> >
> > > Do you think you can do a setup without docker? Would be easier to
> check
> > > but sounds like a config issue.
> > >
> > > Le 5 juil. 2017 21:18, "Elder Moraes" <el...@gmail.com> a
> écrit :
> > >
> > > > If you are talking about removing the McastService, I've already done
> > and
> > > > didn't work. The cluster still works as a dynamic one.
> > > >
> > > >
> > > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > > Blog: http://eldermoraes.com
> > > >
> > > >
> > > > 2017-07-05 16:08 GMT-03:00 Romain Manni-Bucau <rmannibucau@gmail.com
> >:
> > > >
> > > > > 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" <el...@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 <
> rmannibucau@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.moraes@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://1
> > > > > 72.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 <
> > > rmannibucau@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.moraes@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 <
> > > > > rmannibucau@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.moraes@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
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: Building a Static Discovery Cluster

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Gmail formatting doesnt help much but think it can miss some closing tags.
Autoformat it in an ide, it should show it.

Le 5 juil. 2017 21:28, "Elder Moraes" <el...@gmail.com> a écrit :

> Actually I can't... :-(
>
> But if you could point me where I should look, maybe I can figure it out.
>
> Is that code that I've sent here correct? No issue?
>
> Did I put the StaticMembershipInterceptor at right place?
>
>
> Twitter: @elderjava <https://twitter.com/elderjava>
> Blog: http://eldermoraes.com
>
>
>
> 2017-07-05 16:21 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:
>
> > Do you think you can do a setup without docker? Would be easier to check
> > but sounds like a config issue.
> >
> > Le 5 juil. 2017 21:18, "Elder Moraes" <el...@gmail.com> a écrit :
> >
> > > If you are talking about removing the McastService, I've already done
> and
> > > didn't work. The cluster still works as a dynamic one.
> > >
> > >
> > > Twitter: @elderjava <https://twitter.com/elderjava>
> > > Blog: http://eldermoraes.com
> > >
> > >
> > > 2017-07-05 16:08 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:
> > >
> > > > 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" <el...@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 <rmannibucau@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 <el...@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://1
> > > > 72.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 <
> > rmannibucau@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.moraes@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 <
> > > > rmannibucau@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.moraes@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
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: Building a Static Discovery Cluster

Posted by Elder Moraes <el...@gmail.com>.
Actually I can't... :-(

But if you could point me where I should look, maybe I can figure it out.

Is that code that I've sent here correct? No issue?

Did I put the StaticMembershipInterceptor at right place?


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



2017-07-05 16:21 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:

> Do you think you can do a setup without docker? Would be easier to check
> but sounds like a config issue.
>
> Le 5 juil. 2017 21:18, "Elder Moraes" <el...@gmail.com> a écrit :
>
> > If you are talking about removing the McastService, I've already done and
> > didn't work. The cluster still works as a dynamic one.
> >
> >
> > Twitter: @elderjava <https://twitter.com/elderjava>
> > Blog: http://eldermoraes.com
> >
> >
> > 2017-07-05 16:08 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:
> >
> > > 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" <el...@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 <rm...@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 <el...@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://1
> > > 72.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 <
> rmannibucau@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.moraes@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 <
> > > rmannibucau@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.moraes@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
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: Building a Static Discovery Cluster

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Do you think you can do a setup without docker? Would be easier to check
but sounds like a config issue.

Le 5 juil. 2017 21:18, "Elder Moraes" <el...@gmail.com> a écrit :

> If you are talking about removing the McastService, I've already done and
> didn't work. The cluster still works as a dynamic one.
>
>
> Twitter: @elderjava <https://twitter.com/elderjava>
> Blog: http://eldermoraes.com
>
>
> 2017-07-05 16:08 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:
>
> > 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" <el...@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 <rm...@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 <el...@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://1
> > 72.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 <rmannibucau@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 <el...@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 <
> > rmannibucau@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.moraes@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
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: Building a Static Discovery Cluster

Posted by Elder Moraes <el...@gmail.com>.
If you are talking about removing the McastService, I've already done and
didn't work. The cluster still works as a dynamic one.


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


2017-07-05 16:08 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:

> 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" <el...@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 <rm...@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 <el...@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://1
> 72.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 <rm...@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 <el...@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 <
> rmannibucau@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.moraes@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
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: Building a Static Discovery Cluster

Posted by Romain Manni-Bucau <rm...@gmail.com>.
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" <el...@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 <rm...@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 <el...@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 <rm...@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 <el...@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 <rmannibucau@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 <el...@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
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: Building a Static Discovery Cluster

Posted by Elder Moraes <el...@gmail.com>.
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 <rm...@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 <el...@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 <rm...@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 <el...@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 <rmannibucau@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 <el...@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
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: Building a Static Discovery Cluster

Posted by Romain Manni-Bucau <rm...@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 <el...@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 <rm...@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 <el...@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 <rm...@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 <el...@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
> > > > >
> > > >
> > >
> >
>

Re: Building a Static Discovery Cluster

Posted by Elder Moraes <el...@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 <rm...@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 <el...@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 <rm...@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 <el...@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
> > > >
> > >
> >
>

Re: Building a Static Discovery Cluster

Posted by Romain Manni-Bucau <rm...@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 <el...@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 <rm...@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 <el...@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
> > >
> >
>

Re: Building a Static Discovery Cluster

Posted by Elder Moraes <el...@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 <rm...@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 <el...@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
> >
>

Re: Building a Static Discovery Cluster

Posted by Romain Manni-Bucau <rm...@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 <el...@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
>