Re: mod_jk load balancing problem

2011-01-27 Thread Michael Ludwig
Shoaib M. Chaudhary schrieb am 27.01.2011 um 09:08 (+0500):

 When I use mod_jk with the following code for one worker it works fine
 but when I try to connect with two tomcat servers that are not on the
 same machine on which I have apache. Interestingly when I use one
 worker as localhost it works fine again.
 
 There is no error but the page loads again and again.

Isn't that due to some REFRESH directive in the HTML? Or some other
Javascript? Or possibly multiple HTTP redirects? What's going on at the
HTTP level?

-- 
Michael Ludwig

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: mod_jk load balancing problem

2011-01-26 Thread Michael Ludwig
Shoaib M. Chaudhary schrieb am 26.01.2011 um 15:48 (+0500):

 I am trying to use mod_jk with tomcat 5.5.3x. When I use mode_jk with
 one worker it works fine

Okay.

 but when I use loadbalancer with two different tomcats the server
 doesn't response

No response at all? Or some error status?

 but always try to refresh the page.

It's not clear to me what you're doing nor what's happening.

What about providing a more precise description of your setup (like
config) and observations?

-- 
Michael Ludwig

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: mod_jk load balancing problem

2011-01-26 Thread Shoaib M. Chaudhary
The problem is following,

When I use mod_jk with the following code for one worker it works fine but
when I try to connect with two tomcat servers that are not on the same
machine on which I have apache. Interestingly when I use one worker as
localhost it works fine again.

There is no error but the page loads again and again. following is my
worker.properties file.

worker.list=loadbalancer

worker.tomcat2.port=8009
worker.tomcat2.host=172.16.10.21
worker.tomcat2.type=ajp13
worker.tomcat2.lbfactor=1
worker.tomcat1.socket_timeout=1000


worker.tomcat3.port=8009
worker.tomcat3.host=172.16.10.22
worker.tomcat3.type=ajp13
worker.tomcat3.lbfactor=1
worker.tomcat1.socket_timeout=1000


worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=tomcat2, tomcat3

Intrestingly when I use worker.loadbalancer.balanced_workers=tomcat2 it
works fine even if I replace tomcat2 with tomcat 3 as well. The page keep
refreshing it self for some time and suddenly it finished refreshing and I
can see the original page as well.

Regards
*Muhammad Shoaib*

Software Engineer
National University of Computer and Emerging Sciences
A. K. Brohi Road (Near Police Line) H11/4 Islamabad

Semantic Web Consultant / Knowledge Engineer
Allainet Cooperation Private Limited
I8/3 Islamabad Pakistan

T +92-(51)-111-128-128 Ext 344 | M +92-334-5577712
muhammad.sho...@live.com




On Wed, Jan 26, 2011 at 03:18, Michael Ludwig mil...@gmx.de wrote:

 Shoaib M. Chaudhary schrieb am 26.01.2011 um 15:48 (+0500):

  I am trying to use mod_jk with tomcat 5.5.3x. When I use mode_jk with
  one worker it works fine

 Okay.

  but when I use loadbalancer with two different tomcats the server
  doesn't response

 No response at all? Or some error status?

  but always try to refresh the page.

 It's not clear to me what you're doing nor what's happening.

 What about providing a more precise description of your setup (like
 config) and observations?

 --
 Michael Ludwig

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: mod_jk load balancing problem

2011-01-26 Thread Shoaib M. Chaudhary
Hello,

The problem I detected is that client has to send three requests for home
page as it contains frames. How can I force mod_jk to send all requests to
one server.

I come to this result while I shutdown one server called tomcat3 and restart
a tomcat on that machine (tomcat3) with no application. Frames showed error
404 that should be there as there were no page on that machine (tomcat3). I
concluded that all request is not been treated by one server.

Can someone help me out.

Regards
*Muhammad Shoaib*




On Thu, Jan 27, 2011 at 09:08, Shoaib M. Chaudhary muhammad.sho...@live.com
 wrote:

 The problem is following,

 When I use mod_jk with the following code for one worker it works fine but
 when I try to connect with two tomcat servers that are not on the same
 machine on which I have apache. Interestingly when I use one worker as
 localhost it works fine again.

 There is no error but the page loads again and again. following is my
 worker.properties file.

 worker.list=loadbalancer

 worker.tomcat2.port=8009
 worker.tomcat2.host=172.16.10.21
 worker.tomcat2.type=ajp13
 worker.tomcat2.lbfactor=1
 worker.tomcat1.socket_timeout=1000


 worker.tomcat3.port=8009
 worker.tomcat3.host=172.16.10.22
 worker.tomcat3.type=ajp13
 worker.tomcat3.lbfactor=1
 worker.tomcat1.socket_timeout=1000


 worker.loadbalancer.type=lb
 worker.loadbalancer.balanced_workers=tomcat2, tomcat3

 Intrestingly when I use worker.loadbalancer.balanced_workers=tomcat2 it
 works fine even if I replace tomcat2 with tomcat 3 as well. The page keep
 refreshing it self for some time and suddenly it finished refreshing and I
 can see the original page as well.

 Regards
 *Muhammad Shoaib*

 Software Engineer
 National University of Computer and Emerging Sciences
 A. K. Brohi Road (Near Police Line) H11/4 Islamabad

 Semantic Web Consultant / Knowledge Engineer
 Allainet Cooperation Private Limited
 I8/3 Islamabad Pakistan

 T +92-(51)-111-128-128 Ext 344 | M +92-334-5577712
 muhammad.sho...@live.com




 On Wed, Jan 26, 2011 at 03:18, Michael Ludwig mil...@gmx.de wrote:

  Shoaib M. Chaudhary schrieb am 26.01.2011 um 15:48 (+0500):
 
   I am trying to use mod_jk with tomcat 5.5.3x. When I use mode_jk with
   one worker it works fine
 
  Okay.
 
   but when I use loadbalancer with two different tomcats the server
   doesn't response
 
  No response at all? Or some error status?
 
   but always try to refresh the page.
 
  It's not clear to me what you're doing nor what's happening.
 
  What about providing a more precise description of your setup (like
  config) and observations?
 
  --
  Michael Ludwig
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 
 



RE: mod_jk - load balancing

2009-01-21 Thread Gerhardus.Geldenhuis
Hi Andrew,
It will mark a worker as down and only send requests to working
workers. There is a separate thread that checks the availability of all
workers in an configurable time period which will mark the worker as
available/functioning again when it becomes available, where after it
will receive requests again. This is new functionality in the latest
version of modjk(.27)

I am not sure whether the request that determined the unavailability
of the worker will be retried though, I don't think so. There has been a
previous thread in the list that discussed retrying requests and the
caching of request. I believe the conclusion was that it would be
possible to implement but not necessarily simple.

Regards

 -Original Message-
 From: Andrew Hole [mailto:andremailingl...@gmail.com]
 Sent: 21 January 2009 11:14
 To: Tomcat Users List
 Subject: mod_jk - load balancing
 
 Hi Guys!
 
 What is the behavior of mod_jk if one of the workers stops?
 Mod_jk stops to send requests to that worker? Or it retries at each
 request
 and only after determine that the worker is down , it sends the
request
 to
 the fine worker ?
 
 
 # --
 # Load Balancer worker
 # --
 worker.appbalancer.type= lb
 worker.appbalancer.balanced_workers= wk1,wk2
 
 # 
 # First worker
 # 
 worker.wk1.port= 7001
 worker.wk1.host= 10.250.14.43
 worker.wk1.type= ajp13
 worker.wk1.cache_timeout=600
 worker.wk1.socket_timeout=5
 
 # 
 # Second worker
 # 
 worker.wk2.port= 7001
 worker.wk2.host= 10.250.14.44
 worker.wk2.type= ajp13
 worker.wk2.cache_timeout=600
 worker.wk2.socket_timeout=5
 
 Thanks

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: mod_jk load balancing and cluster node health

2008-06-17 Thread Rainer Jung

Nathan E. Pilling wrote:

Is it possible to configure mod_jk to check node status by requesting
a specific web application path to see if a cluster node is healthy
(and should be included or excluded from the cluster)?

I have a web application that runs across multiple tomcat instances
and any request be processed by any tomcat node. If an instance of
the web app on one of the tomcat servers is not configured properly,
I want the connector to exclude it from the cluster.

I have written a servlet that returns a status of 503 if something is
wrong or 200 if everything is okay.


There's not the full story build in yet, but you can combine the various 
pieces to get the same result:


Write an external script, that refularly calls your servlet and add 
;jsessionid=.MYNODENAME to the end of the URL (but before the query 
string). The load balancer will then send the request to it's member 
named MYNODENAME (stickyness).


Now you set fail_on_status to 503 for all LB members. Then the load 
balancer should put the node into ERROR, whenever it sees a 503 coming 
back for any request.


See http://tomcat.apache.org/connectors-doc/reference/workers.html for 
fail_on_status.


Does that sound plausible?


Thanks, Nathan Pilling


Regards,

Rainer

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk load balancing intelligence

2008-04-18 Thread Mladen Turk

Eddie Yee wrote:

Hi,
 
We use a combination of Tomcat 5.5.25, mod_jk (v1.25) and sun one web server (v6.1).The Sun Java web server points to 5 instances of tomcat as specified in our obj.conf and worker.properties.   
 
I know that currently if the application is not in a started state and Tomcat is up and running, mod_jk will still send traffic to that instance.  Is there any way to prevent sending traffic to an application in a stopped state, or is this behavior by design, or just bad configuration?
 


Mod_jk doesn't have per-application configuration.
However you can create multiple load balancers each pointing
to the same set of nodes and then mount each balancer
to each particular application.
When the application is down, you disable the entire
load balancer.
Of course this is feasible only for a small set of applications.

Regards
--
(TM)

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk load balancing intelligence

2008-04-18 Thread Rainer Jung

Mladen Turk schrieb:

Eddie Yee wrote:

Hi,
 
We use a combination of Tomcat 5.5.25, mod_jk (v1.25) and sun one web 
server (v6.1).The Sun Java web server points to 5 instances of 
tomcat as specified in our obj.conf and worker.properties.
I know that currently if the application is not in a started state and 
Tomcat is up and running, mod_jk will still send traffic to that 
instance.  Is there any way to prevent sending traffic to an 
application in a stopped state, or is this behavior by design, or just 
bad configuration?
 


Mod_jk doesn't have per-application configuration.
However you can create multiple load balancers each pointing
to the same set of nodes and then mount each balancer
to each particular application.
When the application is down, you disable the entire
load balancer.
Of course this is feasible only for a small set of applications.

Regards


Adding to Mladen's answer: if you have only one app per Tomcat, you can 
use the activation attribute of an LB member (active, disabled, stopped) 
to tell the LB, if it should send requests to the member. Look at 
activation in


http://tomcat.apache.org/connectors-doc/reference/workers.html

Another possibility is to use the attribute fail_on_status with a value 
of 503, because an existing but stopped Tomcat context will answer 
requests with http 503. You could check, whether 503 or -503 suites you 
better. See the same docs page.


Starting from 1.2.27 there will also be a possibility to express an 
activation state in the mapping table uriworkermap.properties, which 
would allow to disable or stop a forwarding per URL and per node.


Unfortunately the nsapi plugin doesn't actually support the forwarding 
via uriworkermap.properties. It only allows setting the uri to worker 
map via NameTrans in obj.conf. Something we could improve, but at the 
moment there seems to be no huge interest in the nsapi plugin.


Regards,

Rainer

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: mod_jk - load balancing

2007-04-26 Thread Gregor Novak
Hi Peter thanks for your reply.

 

I configure only files that I mention on my previous e-mail. The
instructions are written a bit confusing. They are mention some
mod_jk.dll that needs to be used on Windows machines, but I haven't
found any where I could  download it.

 

I'm trying to use this for the first time so I would appreciate if you
or somebody else could send me some examples files which would make my
environment work.

 

I will use different ajp13 for each instance. As mention first I'd like
to make work one instance. After it should be easy to make work all of
them.

 

So I would appreciate if somebody could tell me what to put in every
necessary file on apache, mod_jk conf and tomcat's server.xml.

 

Thanks.

 

Grega

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 25, 2007 4:43 PM
To: Tomcat Users List
Subject: Re: mod_jk - load balancing

 


Hello Gregor, 

did you configure jk_mounts in jk.conf ? They determine, what is passed
on via the loadbalancer-worker to tomcat. 

Also, I dislike the idea to habe the same ajp-Port al all instances (or
do they have different names?). 

Finally, do not forget to set the individual jvm_route on the
host-configuration inside tomcat's server.xml 

Regards,
Peter 



Re: mod_jk - load balancing

2007-04-25 Thread Peter . Henningsen
Hello Gregor,

did you configure jk_mounts in jk.conf ? They determine, what is passed on 
via the loadbalancer-worker to tomcat.

Also, I dislike the idea to habe the same ajp-Port al all instances (or do 
they have different names?).

Finally, do not forget to set the individual jvm_route on the 
host-configuration inside tomcat's server.xml

Regards,
Peter -
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: mod_jk load balancing with SSL?

2007-03-22 Thread Sean Neeley
I figured it out... my URL's have the port number in them, i.e.:
https://myhost.com:8080/ppro_lb/online?command=iosignon_
I did not have SSL enabled in tomcat, just apache.  I enabled SSL in
tomcat and changed the port number used in my URL's to the SSL connector
port.  Now everything works.

- Sean

-Original Message-
From: Sean Neeley [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 21, 2007 9:34 AM
To: Tomcat Users List
Subject: RE: mod_jk load balancing with SSL?

Tim,

Thank you.  That was very helpful.  It looks like your settings are very
similar to mine.  The difference is that you are distributing traffic to
tomcats on several different servers and I am distributing to several
tomcats on a single server.  I'm guessing that something needs to be
changed in my server.xml file.  Perhaps I need to change port 8443 in
one of the tomcats?  What changes did you make to your server.xml if
any?  Thanks again.

- Sean

-Original Message-
From: Tim Lucia [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 20, 2007 6:49 PM
To: 'Tomcat Users List'
Subject: RE: mod_jk load balancing with SSL?

I do -- here are some snippets from the configuration files:


conf.d/ssl.conf:

LoadModule ssl_module modules/mod_ssl.so
Listen 443

VirtualHost www.mycompanyname.com:443

ServerName www.mycompanyname.com:443

SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key

DocumentRoot /usr/local/esped/www.mycompanyname.com
ServerAlias www.mycompanyname.com
ErrorLog logs/www.mycompanyname.com-error_log
CustomLog logs/www.mycompanyname.com-access_log commonWithTime

# Forward the following URI patterns to tomcat
JkMount   /servlet/*wlb
JkMount   /*.jspwlb
JkMount   /jkmanagerjkstatus

# Default / page to index.jsp
RedirectMatch   ^/$ /index.jsp

/VirtualHost


Workers.properties:

worker.list=wlb,jkstatus

worker.tc01_9009.type=ajp13
worker.tc01_9009.host=tc01
worker.tc01_9009.port=9009
worker.tc01_9009.cachesize=500

worker.tc02_9009.type=ajp13
worker.tc02_9009.host=tc02
worker.tc02_9009.port=9009
worker.tc02_9009.cachesize=500

worker.tc03_9009.type=ajp13
worker.tc03_9009.host=tc03
worker.tc03_9009.port=9009
worker.tc03_9009.cachesize=500

worker.wlb.type=lb
worker.wlb.balance_workers=tc01_9009,tc02_9009,tc03_9009
worker.wlb.method=T
worker.wlb.sticky_session=1
worker.wlb.sticky_session_force=0

worker.jkstatus.type=status


Tim


 -Original Message-
 From: Sean Neeley [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 20, 2007 5:05 PM
 To: Tomcat Users List
 Subject: RE: mod_jk load balancing with SSL?
 
 No one has ever done this?  Help?!
 
 -Original Message-
 From: Sean Neeley [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 19, 2007 12:16 PM
 To: users@tomcat.apache.org
 Subject: mod_jk load balancing with SSL?
 
 I'm using Apache Tomcat/5.5.15 and trying to get load balancing
working
 with SSL.  Are there any tricks to this setup?  I have two tomcat
 instances on one server, and I want to split sessions between them.
 I've set this up before without SSL on a different machine, but on
this
 one particular server I cannot get it to work.  When I enter the
servlet
 url into my web browser, the browser just hangs.  I turned on mod_jk
 logging and did not find anything useful in the log.  Is there a
HOW-TO
 for setting this up?  Any help would be appreciated.
 
 Here is what my workers.properties file looks like:
 ===
 workers.tomcat_home=/var/tomcat5
 workers.java_home=$JAVA_HOME
 ps=/
 worker.list=default,tc0,tc1,loadbalancer
 worker.default.port=8009
 worker.default.host=localhost
 worker.default.type=ajp13
 worker.default.lbfactor=1
 worker.tc0.port=8209
 worker.tc0.host=localhost
 worker.tc0.type=ajp13
 worker.tc0.lbfactor=100
 worker.tc1.port=8210
 worker.tc1.host=localhost
 worker.tc1.type=ajp13
 worker.tc1.lbfactor=1
 worker.loadbalancer.type=lb
 worker.loadbalancer.balanced_workers=tc0,tc1
 
 
 Here is the bottom of my httpd.conf:
 ===
 IfModule mod_ssl.c
 Listen 443
 VirtualHost *:443
 DocumentRoot /usr/htdocs
 ErrorLog /usr/logs/error_ssl_log
 CustomLog /usr/logs/access_ssl_log common
 SSLEngine on
 SSLCertificateFile /usr/conf/ssl.crt/server.crt
 SSLCertificateKeyFile /usr/conf/ssl.key/server.key
 SSLCertificateChainFile /usr/conf/ssl.crt/intermediate.crt
 /VirtualHost
 /IfModule
 LoadModule jk_module /usr/libexec/mod_jk.so
 JkWorkersFile /usr/conf/workers.properties
 JkLogFile /usr/logs/mod_jk.log
 JkMount /deploy/* default
 JkMount /ppro/* loadbalancer
 JkMount /dss0/* tc0
 JkMount /dss1/* tc1
 JkLogLevel debug
 ===
 
 For each tomcat server.xml, I changed the port numbers so they would
not
 conflict, and added the jvmRoute=tc0 and jvmRoute=tc1 to the xml.
 
 Thanks,
 - Sean
 
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL

RE: mod_jk load balancing with SSL?

2007-03-20 Thread Sean Neeley
No one has ever done this?  Help?!

-Original Message-
From: Sean Neeley [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 19, 2007 12:16 PM
To: users@tomcat.apache.org
Subject: mod_jk load balancing with SSL?

I'm using Apache Tomcat/5.5.15 and trying to get load balancing working
with SSL.  Are there any tricks to this setup?  I have two tomcat
instances on one server, and I want to split sessions between them.
I've set this up before without SSL on a different machine, but on this
one particular server I cannot get it to work.  When I enter the servlet
url into my web browser, the browser just hangs.  I turned on mod_jk
logging and did not find anything useful in the log.  Is there a HOW-TO
for setting this up?  Any help would be appreciated.

Here is what my workers.properties file looks like:
===
workers.tomcat_home=/var/tomcat5
workers.java_home=$JAVA_HOME
ps=/
worker.list=default,tc0,tc1,loadbalancer
worker.default.port=8009
worker.default.host=localhost
worker.default.type=ajp13
worker.default.lbfactor=1
worker.tc0.port=8209
worker.tc0.host=localhost
worker.tc0.type=ajp13
worker.tc0.lbfactor=100
worker.tc1.port=8210
worker.tc1.host=localhost
worker.tc1.type=ajp13
worker.tc1.lbfactor=1
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=tc0,tc1


Here is the bottom of my httpd.conf:
===
IfModule mod_ssl.c
Listen 443
VirtualHost *:443
DocumentRoot /usr/htdocs
ErrorLog /usr/logs/error_ssl_log
CustomLog /usr/logs/access_ssl_log common
SSLEngine on
SSLCertificateFile /usr/conf/ssl.crt/server.crt
SSLCertificateKeyFile /usr/conf/ssl.key/server.key
SSLCertificateChainFile /usr/conf/ssl.crt/intermediate.crt
/VirtualHost
/IfModule
LoadModule jk_module /usr/libexec/mod_jk.so
JkWorkersFile /usr/conf/workers.properties
JkLogFile /usr/logs/mod_jk.log
JkMount /deploy/* default
JkMount /ppro/* loadbalancer
JkMount /dss0/* tc0
JkMount /dss1/* tc1
JkLogLevel debug
===

For each tomcat server.xml, I changed the port numbers so they would not
conflict, and added the jvmRoute=tc0 and jvmRoute=tc1 to the xml.

Thanks,
- Sean



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: mod_jk load balancing with SSL?

2007-03-20 Thread Tim Lucia
I do -- here are some snippets from the configuration files:


conf.d/ssl.conf:

LoadModule ssl_module modules/mod_ssl.so
Listen 443

VirtualHost www.mycompanyname.com:443

ServerName www.mycompanyname.com:443

SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key

DocumentRoot /usr/local/esped/www.mycompanyname.com
ServerAlias www.mycompanyname.com
ErrorLog logs/www.mycompanyname.com-error_log
CustomLog logs/www.mycompanyname.com-access_log commonWithTime

# Forward the following URI patterns to tomcat
JkMount   /servlet/*wlb
JkMount   /*.jspwlb
JkMount   /jkmanagerjkstatus

# Default / page to index.jsp
RedirectMatch   ^/$ /index.jsp

/VirtualHost


Workers.properties:

worker.list=wlb,jkstatus

worker.tc01_9009.type=ajp13
worker.tc01_9009.host=tc01
worker.tc01_9009.port=9009
worker.tc01_9009.cachesize=500

worker.tc02_9009.type=ajp13
worker.tc02_9009.host=tc02
worker.tc02_9009.port=9009
worker.tc02_9009.cachesize=500

worker.tc03_9009.type=ajp13
worker.tc03_9009.host=tc03
worker.tc03_9009.port=9009
worker.tc03_9009.cachesize=500

worker.wlb.type=lb
worker.wlb.balance_workers=tc01_9009,tc02_9009,tc03_9009
worker.wlb.method=T
worker.wlb.sticky_session=1
worker.wlb.sticky_session_force=0

worker.jkstatus.type=status


Tim


 -Original Message-
 From: Sean Neeley [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 20, 2007 5:05 PM
 To: Tomcat Users List
 Subject: RE: mod_jk load balancing with SSL?
 
 No one has ever done this?  Help?!
 
 -Original Message-
 From: Sean Neeley [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 19, 2007 12:16 PM
 To: users@tomcat.apache.org
 Subject: mod_jk load balancing with SSL?
 
 I'm using Apache Tomcat/5.5.15 and trying to get load balancing working
 with SSL.  Are there any tricks to this setup?  I have two tomcat
 instances on one server, and I want to split sessions between them.
 I've set this up before without SSL on a different machine, but on this
 one particular server I cannot get it to work.  When I enter the servlet
 url into my web browser, the browser just hangs.  I turned on mod_jk
 logging and did not find anything useful in the log.  Is there a HOW-TO
 for setting this up?  Any help would be appreciated.
 
 Here is what my workers.properties file looks like:
 ===
 workers.tomcat_home=/var/tomcat5
 workers.java_home=$JAVA_HOME
 ps=/
 worker.list=default,tc0,tc1,loadbalancer
 worker.default.port=8009
 worker.default.host=localhost
 worker.default.type=ajp13
 worker.default.lbfactor=1
 worker.tc0.port=8209
 worker.tc0.host=localhost
 worker.tc0.type=ajp13
 worker.tc0.lbfactor=100
 worker.tc1.port=8210
 worker.tc1.host=localhost
 worker.tc1.type=ajp13
 worker.tc1.lbfactor=1
 worker.loadbalancer.type=lb
 worker.loadbalancer.balanced_workers=tc0,tc1
 
 
 Here is the bottom of my httpd.conf:
 ===
 IfModule mod_ssl.c
 Listen 443
 VirtualHost *:443
 DocumentRoot /usr/htdocs
 ErrorLog /usr/logs/error_ssl_log
 CustomLog /usr/logs/access_ssl_log common
 SSLEngine on
 SSLCertificateFile /usr/conf/ssl.crt/server.crt
 SSLCertificateKeyFile /usr/conf/ssl.key/server.key
 SSLCertificateChainFile /usr/conf/ssl.crt/intermediate.crt
 /VirtualHost
 /IfModule
 LoadModule jk_module /usr/libexec/mod_jk.so
 JkWorkersFile /usr/conf/workers.properties
 JkLogFile /usr/logs/mod_jk.log
 JkMount /deploy/* default
 JkMount /ppro/* loadbalancer
 JkMount /dss0/* tc0
 JkMount /dss1/* tc1
 JkLogLevel debug
 ===
 
 For each tomcat server.xml, I changed the port numbers so they would not
 conflict, and added the jvmRoute=tc0 and jvmRoute=tc1 to the xml.
 
 Thanks,
 - Sean
 
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: MOD_JK load balancing algorithm?

2006-06-15 Thread Pankaj DHINGRA

Are you using sticky sessions?

if you are using sticky sessions, the apache will route all the requests 
from the same user to the same server.

this property is defined in worker.properties file.

Thanks,
Pankaj
Edmon Begoli wrote:
MOD_JK documentation says that mod_jk is employing weighted round 
robin load

balancing.

However, if all workers are assigned weight of one I do not see exact 
round

robin I would expect.

I do not see uniform round robin distribution among peer servers I would
expect to see. It seems that there is a very slight bias towards the 
first

server.

Can someone please comment on this.




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]