IDependOn-Set: 1
IDependOn-Set: 2
IDependOn-Set: 30
IDependOn-Set: 33
IDependOn-Set: 34
IDependOn-Set: 7
LastModifiedSecs: 922991709
Parent: 34
SequenceNumber: 4
Title: How do I use the load balancing features of Apache JServ 1.0b3 and higher?
Part: 0
Author-Set: jon@working-dogs.com
LastModifiedSecs: 920573820
Type: monospaced
Lines: 64
----------
From: Jean-Luc Rochat <Jean-Luc.Rochat@alcatel.fr>
To: Java Apache Users <java-apache-users@list.working-dogs.com>
Subject: [repost] Load-balancing params setting
Date: Thu, Mar 4, 1999, 1:56 AM

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
EndPart: 0
Part: 1
Author-Set: anonymous
HideAttributions: 1
LastModifiedSecs: 922991700
Type: 
Lines: 4
Subcategories:


Answers in this category:
EndPart: 1
