FYI, I'm writing a load-balancing mini-HowTo. still to be finished ....

But I repost here load-balancing params description.

How it works :
A NEW request is a request wich is not in a HTTP session (no session cookie)
balance in the protocol URL means that NEW requests will be dispatched between
a set of JServ instances.
A JServ instance is one JServ URL : identified by protocol://host:port

A set contains 0 .. n JServ instances
a JServ instance can belong to 0 .. n sets

A cookie-trailer is a String appended to the end of the session cookie.
Routing parameters associate one cookie trailer to one JServ. (cookies are set
by JServ but chosen/used by mod_jserv)
One JServ can use 0..n cookie-trailers.

Configuration example :

# /try1 and /try2 are servlet mount points that point to the same zone zone1
# this apache will balance new requests to set1, which is a set of JServ
ionstances
ApJServMount /try1 balance://set1/zone1
ApJServMount /try2 balance://set1/zone1

# /test is a servlet mount point that points to set1 in another zone
ApJServMount /test  balance://set1/zone2

# /servlet is a servlet mount point that points to set2
ApJServMount /servlet  balance://set2/zone1

#set 1 description
ApJServBalance set1 PII450-1
ApJServBalance set1 PII450-2
#set 2 description (host firstE450 has a weight = 4, Sparc5 = 1 just an
exemple)
ApJServBalance set2 Sparc5 1
ApJServBalance set2 firstE450 4

#JServ instances description
ApJHost PII450-1 ajpv11://192.168.0.5:18500
ApJHost PII450-2 ajpv11://192.168.0.5:18501    // (same PC, 2 JServs)
ApJHost Sparc5 ajpv11://192.168.0.6:18500
ApJHost firstE450 ajpv11://192.168.0.7:8560

#session routing params
ApJRoute 567jkg PII450-1
ApJRoute yup33 PII450-2
ApJRoute sun1 Sparc5
ApJRoute 9985gg55 firstE450

This is still experimental. Working perfectly on some sites, but not totally
<SMILEY>idiot</SMILEY> proof. : you have to check  carefully your
configuration. Once your configuration is OK, it should do the job. As usual,
use it at your own risks.

Jean-Luc Rochat



----------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://www.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to