Hi,

I am trying to load balance between 2 Tomcat servers. But I cannot get
"session
affinity" to work. The first time I get a page from the browser, I would
receive a 
page from one server. Then when I refresh (reload from browser) the page, I
would
get a page from the other tomcat server. I have checked the session id's
from the
2 pages and they are different. If I understand correctly, with session
affinity, when
I reload a page shouldn't I get the page from the same server with the same
session?

My configuration is Solaris 2.9, Apache 2.0.47, Tomcat 4.1.27 and JK2 2.0.2.
For each tomcat instance, I have modified server.xml to have an unique
jvmRoute;
"tn1" for one server and "tn2" for the other. These match the tomcatId in
the
workers2.properties file.

The workers2.properties is

# only at beginnin. In production uncomment it out
[logger]
level=DEBUG

[config:]
file=${serverRoot}/workers2.properties
debug=0
debugEnv=0

[shm:]
file=${serverRoot}/logs/shm.file
size=1048576
debug=0
disabled=0

[lb:lb]
info=Default load balancer.
debug=0

# Example socket channel, override port and host.
[channel.socket:neptune:8009]
info=Ajp13 forwarding over socket
tomcatId=tn1
lb_factor=1
debug=0

[channel.socket:neptune:8109]
info=Ajp13 forwarding over socket
tomcatId=tn2
lb_factor=1
debug=0

[status:]
info=Status worker, display runtime informations

# Uri mapping
[uri:/*]
debug=0

[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:


Is there something that I have missed or misunderstood? Any help would be
appreciated.

Regards,
Ray



IMPORTANT NOTICE:  The information in this email (and any attachments
hereto) is confidential and may be protected by legal privileges and work
product immunities. If you are not the intended recipient, you must not use
or disseminate the information. Receipt by anyone other than the intended
recipient is not a waiver of any attorney-client or work product privilege.
If you have received this email in error, please immediately notify me by
"Reply" command and permanently delete the original and any copies or
printouts thereof. Although this email and any attachments are believed to
be free of any virus or other defect that might affect any computer system
into which it is received and opened, it is the responsibility of the
recipient to ensure that it is virus free and no responsibility is accepted
by Transatlantic Reinsurance Company or its subsidiaries or affiliates
either jointly or severally, for any loss or damage arising in any way from
its use. 

Reply via email to