You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by m jun <jm...@lycos.com> on 2002/11/19 04:32:11 UTC

Anyone succeed with: Apache2+tomcat4+Mod_jk2+load blance ?

Hi,
  Anyone succeed to config them with loadblance ?
  Please give me a detail about config file.
  My config file:
*****************************
/* workers2.properties*/

[logger]
file=${serverRoot}/logs/jk2.log 
level=info

[config:]
file=${serverRoot}/conf/workers2.properties
debug=0
debugEnv=0

[uriMap:]
info=Maps the requests. Options: debug
debug=0

[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess servers
file=${serverRoot}/logs/jk2.shm
size=1000000
debug=0
disabled=0

[workerEnv:]
info=Global server options
timing=1
debug=0

[lb:]
info=Default load balancer.
debug=1

[lb:lb_1]
info=Second load balancer.
debug=0


[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=0
tomcatId=tomcat1
lb_factor=1
group=lb_1
disabled=0

[channel.socket:localhost:8019]
info=A second tomcat instance. 
debug=0
tomcatId=tomcat2
lb_factor=1
group=lb_1
disabled=0

[status:]
info=Status worker, displays runtime informations

[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:

[uri:127.0.0.1:100]
alias=127.0.0.1:100

[uri:/*.jsp]
context=/
group=lb_1
debug=0

********************
/*jk2.properties for tomcat1*/
handler.list=request,container,channelSocket
secure=false
soTimeout=20000
port=8009
channelSocket.port=8009
jkHome=..
maxThreads=75
channelSocket.address=127.0.0.1
backlog=10
timeout=20000
channelSocket.maxPort=port+10 
tcpNoDelay=true


********************
/*jk2.properties for tomcat2*/
handler.list=request,container,channelSocket
secure=false
soTimeout=20000
port=8019
channelSocket.port=8019
jkHome=..
maxThreads=75
channelSocket.address=127.0.0.1
backlog=10
timeout=20000
channelSocket.maxPort=port+10 
tcpNoDelay=true

**********************************
Every tomcat can work with Apache,but loadblance can't work ,anyone can help me ?

Thanks,
JMeng




__________________________________________________________
Outgrown your current e-mail service? Get 25MB Storage, POP3 Access,
Advanced Spam protection with LYCOS MAIL PLUS.
http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>