Please browse the categories below to previous answers to questions like yours. If you do not find the answer for your particular situation, ask for help on the appropriate mailing list.
(Answer) (Category) Java Apache Project : (Category) Apache JServ 1.0 : (Category) Configuration : (Category) Load Balancing :
How do I use the load balancing features of Apache JServ 1.0b3 and higher?
----------
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
SMILEYidiot/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
jonATworking-dogsDOTcom
Subcategories:

Answers in this category:

[Append to This Answer]
Next: (Answer) More information on load balancing with Apache JServ 1.0b3 and higher
This document is: http://java.apache.org/faq/?file=30
[Search] [Appearance] [Show Expert Edit Commands]
This is a Faq-O-Matic 2.709.
Please browse the categories below to previous answers to questions like yours. If you do not find the answer for your particular situation, ask for help on the appropriate mailing list.