-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Karthik,

You've got your ports all fouled up. See below.

karthikn wrote:

| TOMCAT1 >> .server.xml is as follows
[snip]
|     <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
[snip]
| TOMCAT2 >> .server.xml is as follows
[snip]
|     <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />

You can't have both Tomcats listening on port 8009. Choose another port
for one of these connectors. There is no way that both of your Tomcats
are running at the same time if they have to connect to the same port.
Check your logs again: one of your Tomcats is not running.

| ##################### Load Balance #####################
| worker.balancer.type=lb
| worker.balancer.method=B
| worker.balancer.sticky_session=TRUE
| worker.balancer.balanced_workers=node01, node02
|
| worker.node01.type=ajp13
| worker.node01.host=localhost
| worker.node01.port=8009
| worker.node01.lbfactor=1
|
| worker.node02.type=ajp13
| worker.node02.host=localhost
| worker.node02.port=8009
| worker.node02.lbfactor=1

lb config mostly looks good, except that you have the same port number
for both nodes. That cannot possibly work for the reason mentioned
above. After you change your Tomcat configurations, please adjust the lb
config accordingly.

| TEST CASE for LB
|
| |TomcatA| starts up
| |TomcatB| starts up (Wait that TomcatA start is complete)

I'm sure there's a failure at this point.

| |TomcatA| receives a request, a session |S1| is created.
| |TomcatA| crashes
| |TomcatB| not able to process the a request for session |||S1
| |||||

mod_jk is configured to talk to two different workers both pointing to
the same Tomcat instance. When you take down TomcatA (TOMCAT1?), TomcatB
is not only not running, but node02 points to TomcatA so there is no
possibility for communication.

Given your configuration, you are getting expected behavior.

No offense, but are you sure you are the right person on your team to be
configuring connectors, clustering, and load balancing?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkg9Zn4ACgkQ9CaO5/Lv0PDAEgCgtwJZWxtkuMm72dwJ9oGo4Trl
Mi0AoJNPPIM+hQIuZPvAYiDuHVRqJSc4
=Lrv8
-----END PGP SIGNATURE-----

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

Reply via email to