473,396 Members | 1,797 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Load Balancing issue with mod_jk connector

Hi All,
I am trying to configure a load balancer environment with mod_jk and tomcat workers.
I have 2 applications app1 deployed on a set of servers, and app2 deployed on another set of servers.
Can I use a single load balancer to balance load among two types of application??

ie all request to app1 should go to servers where app1 is deployed and requests to app 2 should go to set of servers where app 2 is deployed.
Is this possible??
Thanks in advance,
Hari

Following are my cofiguration files.
part of mod_jk.conf
==============

JkMount /app1/* app1balancer
JkMount /app1 app1balancer
JkMount /app1/ app1balancer

JkMount /app2/* app2balancer
JkMount /app2/ app2balancer
JkMount /app2 app2balancer

part of workers.properties
===================
worker.worker1.port=8009
worker.worker1.host=localhost
worker.worker1.type=ajp13

# Load balance factor
worker.worker1.lbfactor=1

# ----------------
# Second worker
# ----------------
worker.worker2.port=80
worker.worker2.host=192.168.0.173
worker.worker2.type=ajp13
worker.worker2.lbfactor=1

# ----------------------
# Load Balancer worker
# ----------------------
worker.app1balancer.type=lb
#worker.app1balancer.balanced_workers=worker1,work er2
worker.app1balancer.balanced_workers=worker1
worker.app1balancer.method=B

worker.app2balancer.type=lb
worker.app2balancer.balanced_workers=worker2
Worker.app2balancer.method=B
Jun 19 '07 #1
0 2226

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: yagish | last post by:
Hi Techies, Am really new with the Oracle 9i Forms and am searching for a way to perform Load Balancing in Oracle 9i Forms Application. Its not a J2EE application, so cannot go the OC4J way. I...
3
by: Shabam | last post by:
When a web application becomes overloaded with traffic, one can offload it by load balancing and clustering the front end web servers. What happens when the back-end MSSQL database becomes...
2
by: Christopher D. Wiederspan | last post by:
I'm wondering if anybody could give me some tips on a good webfarm load-balancing solution for an ASP.NET application. Here's the rundown: we've got 3 identical servers that each have identical...
10
by: GeekBoy | last post by:
Okay, I have two identical web servers running Windows 2003 web server. I have an ASP.NET application which runs great on one of them. Dedicated IP address, behind our firewall, etc. Everyone's...
6
by: Andrew Robinson | last post by:
I am running two servers with a hardware network load balancing device. I know that to share session information between the two servers I need to implement some type of SQL based session...
0
by: HK | last post by:
I'm wanting to get rid of a hardware load balancer and just use the Windows 2003 software load balancing with 2003 Server Web Edition. I'm wondering if anyone here uploads ASP.NET code to 2 or...
0
by: ors.public.email | last post by:
Hi, My company has recently experienced an issue when posting back aspx pages across multiple servers that were being load balanced. In a nutshell, the problem involved initially loading the...
1
by: m.a | last post by:
Hello, I am looking for a hosting solution for my asp.net application. I found that some ISP stated that session states are not preserved in a load balancing system. As I know, if the asp.net is...
1
by: sonalijpawar | last post by:
Hello everybody, I am trying to configure Apache with Tomcat for standalone apache it get succeed.But I want to configure MS4W with Tomcat.MS4W have its own apache server and i want to configure...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.