Basically you can connect one apache to several tomcats today.

I have a configuration with two Apache's connected to 4 Tomcats:

Load-balancing switch points the user either to Machine A or B (Assuming
both up and running).
Machine A:
1. Apache + mod_jk
2. Tomcat A_1
3. Tomcat A_2
Machine b:
1. Apache + mod_jk
2. Tomcat B_1
3. Tomcat B_2

Mod_jk on each machine forward requests based on sessionID to the right
tomcat (this is my patch to 3.2b7).
New sessions being created on local machine only (using lbfactor).

The problem I want to solve with session replicator is the ability to let
the system continue working after Tomcat A_1 got down.
Basically I'm working on patch lets tomcat a_1 replicates its sessions to
tomcat a_2 (or any other), while letting mod_jk to aware of that. Whenever
request with sessionID points to tomcat a_1 arrives to mod_jk he forward it
to (A_1's buddy) a_2 if (the master) a_1 in unavailable.

THE NEW IDEA is, assuming all of what I have stated above is working. We can
take apache out of the picture.
HOW COME? I can point the load-balancing switch to the tomcat themselves.
Each tomcat will forward requests based on sessionID (we will need to move
mod_jk client side to into tomcat. Dan, would you like to take that?) is the
exist to the right tomcat (if there's no sessionID - will create one
locally). If Tomcat can't connect to master, it will forward the request to
the buddy.

Basically, I'm working on the replication protocol. I can make it
stand-alone or put it into mod_jk (server side). If someone willing to write
mod_jk client side into http connector, it will allow getting apache out of
the picture.

M I RIGHT?

Community - Share your mind !!

________________________
Shai Fultheim
Chief Technology Officer
BRM Seed
 
E-Mail: [EMAIL PROTECTED]
Mobile: 972-53-866-459
Office: 972-2-5891-459

-----Original Message-----
From: GOMEZ Henri [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 22, 2000 14:39
To: [EMAIL PROTECTED]
Subject: RE: Tomcat session replicator

Interesting subject, a farm of Apache behind a larger farm of Tomcats ?

Let me develop :

Could we have say a farm of X Apache connected to a farm of Y Tomcat where
Y = 2 * X or Y = 3 * X ?

Also could the session replicator be compatible with eventuals ACL/Crypto
in mod_jk/ajp protocols ?


"Pour la plupart des hommes, se corriger consiste à changer de défauts."
-- Voltaire

Reply via email to