tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sriram Narayanan" <sriram...@gmail.com>
Subject Re: [OT] A Howto for Tomcat 6.0.9, mod_jk, apache 2.2 load balancing + session replication
Date Fri, 16 Feb 2007 10:17:54 GMT
On 2/16/07, Babu Satasiya <babulalsatasiya@gmail.com> wrote:
>
> Hi,
>
> Thanks,
>
> Do you think application needs to take care of new session replication or
> not, if not then try cart in example and you will find error message, You
> need to do some serialization of objects unless its not possible.
>

Even if you didn't want clustering support, all objects that are added
into the session _have_ to be Serializable. This is a requirement.

What is the error that you get when you try the cart example ?

> Regarding multicast address setup on that cluster option, do we need to
> setup that on all the cluter tomcat system, otherwise how it will work?
>

There is a default multicast address and port. When you enable the
SimpleTCP option, that default value is used.

If you read the document at
http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html, scroll
down to the section called "Simple Cluster Configuration". That has a
server.xml which contains the tag "<Cluster
className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"/>".

By, default, this tag is commented out. We need to uncomment it.

In that same document, beneath the sample server.xml, you'll find text
on the default multicast address (228.0.0.4) and the multicast udp
port (8012). So, all Tomcats that use this default configuration will
also become part of the same cluster.

If you want multiple Tomcat instances to be part of various clusters
selectively, you'll have to specify different groups of  multicast
addresses. So, TomcatA and TomcatB would have one multicast address
and port, while TomcatC and TomcatD would have some other multicast
address and port.

This too is documented at that same section.


> Please update on all the steps which you might have done not documented to
> how to which will help others to get going with session replication. If it
> is possible you can add your server.xml of both tomcat.
>
> With regards,
>
> Babulal Satasiya
> Cisco System Inc.
>
>
> Sriram Narayanan wrote:
> >
> > On 2/14/07, Babu Satasiya <babulalsatasiya@gmail.com> wrote:
> >>
> >> Hi,
> >>
> >> Please update about cluster option in server.xml, without that how does
> >> it
> >> work. If you can post all the steps will help others, otherwise it may
> >> even
> >> confuse to others.
> >>
> >
> > I just looked over my previous post, and I see the following statement:
> >
> > 2. In server.xml, uncomment the tag for clustering
> >
> > That's all that I needed to do for enabling clustering on Tomcat.
> >
> >
> >> Thanks for posting on session replication, please let me know if we
> >> anyone
> >> have live application and if they go for session replication which you
> >> explain is method using session in memory. Will they need to do anything
> >> in
> >> application or not?
> >>
> > http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html That link
> > describes clustering better than I would.
> >
> > -- Sriram
> >
> > ---------------------------------------------------------------------
> > 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
> >
> >
> >
>
> --
> View this message in context: http://www.nabble.com/A-Howto-for-Tomcat-6.0.9%2C-mod_jk%2C-apache-2.2-load-balancing-%2B-session-replication-tf3221269.html#a8998726
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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


Mime
View raw message