----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
I've been attempting to try load balancing on our development servers so
that we can eventually use it for our live site. I've been running into a
problem however, than I can't seem to figure out! This is our ultimate
plan:
[ One machine running Apache Web Server and one Jserv. ]
[ Another machine running a second JServ. ]
With load balancing, I hope to distribute the load hitting the first machine
to both machines through the two JServ instances.
I created this scenario on our development servers with no success in
loading any servlets. I fooled around with several similar scenarios to try
to figure out what was going wrong. I think this most recent attempt will
be the most descriptive of the problem:
I have one machine running Apache web server and two JServs (out of one
ApacheJServ install) and a second machine running two JServs (from one
install on that machine). My thought here was to try setting up more JServ
instances and load balance them to see if adding them would clue me in on
anything. Here are the configurations:
***** Machine called "Dev" *****
This machine runs Apache/1.3.9 and two JServ instances (out of the same
ApacheJServ/1.1 installation). I know 1.3.9 is getting quite old now, but
it was already installed reliably and I didn't think that this would affect
JServ's load balancing. Sun's JDK 1.2.2 and JSDK 2.0 running on Solaris 5.7
on both machines.
** jserv.conf configuration snippet:
ApJServManual on
ApJServMount /servlets balance://set1/root
ApJServMount /servlet balance://set1/root
ApJServBalance set1 Dev1
ApJServBalance set1 Dev2
ApJServBalance set1 Edgar1
ApJServBalance set1 Edgar2
ApJServHost Dev1 ajpv12://localhost:8023
ApJServHost Dev2 ajpv12://localhost:8024
ApJServHost Edgar1 ajpv12://192.168.1.239:8008
ApJServHost Edgar2 ajpv12://192.168.1.239:8009
7ApJServRoute JS1 Dev1
ApJServRoute JS2 Dev2
ApJServRoute JS3 Edgar1
ApJServRoute JS4 Edgar2
ApJServShmFile logs/jserv_shm
** JServ instance called "Dev1", properties file snippet:
bindaddress=localhost
port=8023
** JServ instance called "Dev2":
bindaddress=localhost
port=8024
***** Machine called "Edgar" *****
This machine just runs two JServ instances (out of the same ApacheJServ/1.1
install). (Apache/1.3.9 was used to make the builds here but is never
started up.)
** JServ instance called "Edgar1":
bindaddress=192.168.1.239
port=8008
** JServ instance called "Edgar2":
bindaddress=192.168.1.239
port=8009
I start Apache and load up each JServ. The problem is that when I try
loading a servlet, the first JServ instance on each machine NEVER works. I
always get the following error with it in mod_jserv.log:
[19/04/2000 11:25:11:079] (ERROR) balance: virtual host not found or not
running
[19/04/2000 11:25:11:079] (ERROR) an error returned handling request via
protocol "balance"
However, the second JServ's on each machine do work, but only one of them
works at a time. So I have tried various things to narrow this down. If I
leave the Dev1 jserv up and the rest down, it gives that error. If I put
Dev1 jserv and Edgar1 jserv up, same thing. But if I put Dev1 jserv, Dev2
jserv, and Edgar1 jserv up, it works by going to Dev2 jserv (the other two
never work). And if I put Dev1 jserv, Edgar1 jserv, and Edgar2 jserv up, it
goes to Edgar2 jserv correctly (the others down). When I put all four up,
it always goes to Dev2 jserv and never visits Edgar2 no matter how many
times I hit it and create new sessions.
I can't figure out what's causing this behavior because as far as I can
tell, I've followed the load balancing how-to and the FAQs correctly. I
hope someone can shed some light on this problem -- if you need more info on
my configuration let me know. We are handling 1,000 to 1,500 users per day
with the non-load balanced site and we expect that to increase by the
thousands based on our growing customer base. We're doing everything we can
to improve performance.
Thanks for your time and help,
Kevin
-------------------------------------------
Kevin MacClay
Vantage Technologies
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]