You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Randy Paries <rt...@gmail.com> on 2008/02/05 18:36:46 UTC

Clustering problem with one box out of three

Hello,
I have posted this problem before , but have made some headway but i
am still having problems.
I will try to describe this a briefly as possible but give enough info
needed to help

Some basic info:
3 Linux boxes
Tomcat 5.5.15
jdk1.5.0_11

Box1 and Box2 are one public Class C
Box3 is on a seperate Class C

all three are on the same lan. Each have two nic cards. All three are
connected via a GB network with 192.168.0.x ips

It seems that only the boxes that are on the same class C can see each
other.  Before last night Box2 and Box3 were on the same C class and
Box1 would get the message

INFO: Manager []: skipping state transfer. No members active in cluster group.

So last night i had to move Box2 to the same Class C as Box1 , so now
Box1 and Box2 are seeing each other and now Box3 is getting the
message

INFO: Manager []: skipping state transfer. No members active in cluster group.

All three Boxes have the following in the server.xml

            <Membership
                className="org.apache.catalina.cluster.mcast.McastService"
                mcastAddr="228.0.0.9"
                mcastPort="45564"
                mcastFrequency="500"
                mcastDropTime="3000"/>

            <Receiver
                className="org.apache.catalina.cluster.tcp.ReplicationListener"
                tcpListenAddress="192.168.0.159"
                tcpListenPort="4001"
                tcpSelectorTimeout="100"
                tcpThreadCount="35"/>


So this is why i am confused. Does this not make the server broadcast
and listen on the 198???

what is more confusing is in the log files of one of the working boxes i see
INFO: Send stats from [192.168.0.159:4,001], Nr of bytes
sent=45,888,271 over 36,700 = 1,250 bytes/request, processing time 0
msec, avg processing time 0 msec

So i assume it is broadcasting on the 192.168 network.

Also just for fun, i installed a UDP-ping and made sure i could
udp-ping everybody

So i am at a complete loss.

Any ideas?

Sorry for such a long post

Randy

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Clustering problem with one box out of three

Posted by Randy Paries <rt...@gmail.com>.
Filip

thanks for the help. I am not familiar with how to run route. (sorry
just a small business admin hack)

could you please suggest the command

thanks
Randy

On Feb 5, 2008 2:16 PM, Filip Hanik - Dev Lists <de...@hanik.com> wrote:
> the broadcast happens on the 228.0.0.9 address. however, if you're boxes
> have multiple nics, the system will pick one to send out the info.
> you should be able to add an entry to your routing table to force it to
> send the 228.0.0.9 broadcasts over the nic you designate.
>
> Filip
>
>
> Randy Paries wrote:
> > Hello,
> > I have posted this problem before , but have made some headway but i
> > am still having problems.
> > I will try to describe this a briefly as possible but give enough info
> > needed to help
> >
> > Some basic info:
> > 3 Linux boxes
> > Tomcat 5.5.15
> > jdk1.5.0_11
> >
> > Box1 and Box2 are one public Class C
> > Box3 is on a seperate Class C
> >
> > all three are on the same lan. Each have two nic cards. All three are
> > connected via a GB network with 192.168.0.x ips
> >
> > It seems that only the boxes that are on the same class C can see each
> > other.  Before last night Box2 and Box3 were on the same C class and
> > Box1 would get the message
> >
> > INFO: Manager []: skipping state transfer. No members active in cluster group.
> >
> > So last night i had to move Box2 to the same Class C as Box1 , so now
> > Box1 and Box2 are seeing each other and now Box3 is getting the
> > message
> >
> > INFO: Manager []: skipping state transfer. No members active in cluster group.
> >
> > All three Boxes have the following in the server.xml
> >
> >             <Membership
> >                 className="org.apache.catalina.cluster.mcast.McastService"
> >                 mcastAddr="228.0.0.9"
> >                 mcastPort="45564"
> >                 mcastFrequency="500"
> >                 mcastDropTime="3000"/>
> >
> >             <Receiver
> >                 className="org.apache.catalina.cluster.tcp.ReplicationListener"
> >                 tcpListenAddress="192.168.0.159"
> >                 tcpListenPort="4001"
> >                 tcpSelectorTimeout="100"
> >                 tcpThreadCount="35"/>
> >
> >
> > So this is why i am confused. Does this not make the server broadcast
> > and listen on the 198???
> >
> > what is more confusing is in the log files of one of the working boxes i see
> > INFO: Send stats from [192.168.0.159:4,001], Nr of bytes
> > sent=45,888,271 over 36,700 = 1,250 bytes/request, processing time 0
> > msec, avg processing time 0 msec
> >
> > So i assume it is broadcasting on the 192.168 network.
> >
> > Also just for fun, i installed a UDP-ping and made sure i could
> > udp-ping everybody
> >
> > So i am at a complete loss.
> >
> > Any ideas?
> >
> > Sorry for such a long post
> >
> > Randy
> >
> > ---------------------------------------------------------------------
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Clustering problem with one box out of three

Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
the broadcast happens on the 228.0.0.9 address. however, if you're boxes 
have multiple nics, the system will pick one to send out the info.
you should be able to add an entry to your routing table to force it to 
send the 228.0.0.9 broadcasts over the nic you designate.

Filip

Randy Paries wrote:
> Hello,
> I have posted this problem before , but have made some headway but i
> am still having problems.
> I will try to describe this a briefly as possible but give enough info
> needed to help
>
> Some basic info:
> 3 Linux boxes
> Tomcat 5.5.15
> jdk1.5.0_11
>
> Box1 and Box2 are one public Class C
> Box3 is on a seperate Class C
>
> all three are on the same lan. Each have two nic cards. All three are
> connected via a GB network with 192.168.0.x ips
>
> It seems that only the boxes that are on the same class C can see each
> other.  Before last night Box2 and Box3 were on the same C class and
> Box1 would get the message
>
> INFO: Manager []: skipping state transfer. No members active in cluster group.
>
> So last night i had to move Box2 to the same Class C as Box1 , so now
> Box1 and Box2 are seeing each other and now Box3 is getting the
> message
>
> INFO: Manager []: skipping state transfer. No members active in cluster group.
>
> All three Boxes have the following in the server.xml
>
>             <Membership
>                 className="org.apache.catalina.cluster.mcast.McastService"
>                 mcastAddr="228.0.0.9"
>                 mcastPort="45564"
>                 mcastFrequency="500"
>                 mcastDropTime="3000"/>
>
>             <Receiver
>                 className="org.apache.catalina.cluster.tcp.ReplicationListener"
>                 tcpListenAddress="192.168.0.159"
>                 tcpListenPort="4001"
>                 tcpSelectorTimeout="100"
>                 tcpThreadCount="35"/>
>
>
> So this is why i am confused. Does this not make the server broadcast
> and listen on the 198???
>
> what is more confusing is in the log files of one of the working boxes i see
> INFO: Send stats from [192.168.0.159:4,001], Nr of bytes
> sent=45,888,271 over 36,700 = 1,250 bytes/request, processing time 0
> msec, avg processing time 0 msec
>
> So i assume it is broadcasting on the 192.168 network.
>
> Also just for fun, i installed a UDP-ping and made sure i could
> udp-ping everybody
>
> So i am at a complete loss.
>
> Any ideas?
>
> Sorry for such a long post
>
> Randy
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
>   


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org