Wrox Programmer Forums
|
BOOK: Professional Apache Tomcat
This is the forum to discuss the Wrox book Professional Apache Tomcat by Chanoch Wiggers, Ben Galbraith, Vivek Chopra, Sing Li, Debashish Bhattacharjee, Amit Bakore, Romin Irani, Sandip Bhattacharya, Chad Fowler; ISBN: 9780764543722
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 24th, 2004, 09:50 PM
Registered User
 
Join Date: Jul 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Load balancing help

Hello All,
 I could successfully get load balancing work using two Tomcat 5.0 and one apache 2 servers running on the SAME MACHINE as mentioned in the book. However i want to have my tomcats on different machines. I will really appreciate if some one can give me example workers2.properties file and jk2.properties file.

Thanks in advance,
Ram
 
Old August 14th, 2004, 05:55 PM
Registered User
 
Join Date: Aug 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Only a couple of changes to make that possible:

- 1st, you don' t need to change the default ports (e.g., 8009) because you're running Tomcat on different hosts now.

- for each worker, specify the hostname or IP address[channel.socket:192.168.3.5:8009]
port=8009
host=192.168.3.5
...
[ajp13:192.168.3.5:8009]

# Tomcat5B
[channel.socket:192.168.3.6:8009]
port=8009
host=192.168.3.6
...

[ajp13:192.168.3.6:8009]

...

- for the group (lb worker)
[lb:balanced]
worker=ajp13:192.168.3.5:8009
worker=ajp13:192.168.3.6:8009

Voila`. Good luck.




 
Old August 27th, 2004, 01:51 AM
Registered User
 
Join Date: Aug 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello All,
 I am unsuccessfully trying to do load balancing using two Tomcat 5.0 and one apache 2 servers running on the SAME MACHINE.

Can some one bail me out?

I will really appreciate if some one can give me example workers2.properties file and jk2.properties file.
 
Old September 2nd, 2004, 03:47 AM
Registered User
 
Join Date: Sep 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to ajithsiyer
Default

Hi,

I have my application deployed on Jboss-tomcat on 2 linux machines. These instances are standalone and are not aware of each other.

I have my Apache2.0.50 on my win2k desktop. And using the the workers2.prop file mentioned above, i have pointed requests to the apache to the 2 my application deployed on the 2 linux servers.
I am having a session time out issue since the session is not getting carried over to both the linux instances while using the app.
Due to this,the user is asked to log in multiple times.

What is the optimal solution for this?
Is this one: Make my session sticky - ie. once the user hits a particular node (jboss-tomcat) behind apache, he continues to hit the same node.

How do i configure this on my apache?

If this is possible, can apache take care of session failovers (in the event one of my linux servers goes down automatically moves over to the next server without the user having to login)?

Could some one help me out with this at the earliest?

Thanks and Regards,
Ajith





Similar Threads
Thread Thread Starter Forum Replies Last Post
mod_jk Load Balancing and Virtual Hosts dfwjava BOOK: Professional Apache Tomcat 0 October 17th, 2007 06:12 PM
load balancing in .net balesh.mind ASP.NET 2.0 Professional 2 August 22nd, 2007 08:07 PM
Dynamic content in Load Balancing Envoirnment deadman BOOK: Professional Apache Tomcat 0 November 17th, 2004 03:30 AM
IFRAME Load... babloo81 Javascript 2 June 18th, 2004 03:28 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.