Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 06-22-2010, 03:49 AM   #1
LQ Newbie
Registered: Jun 2010
Posts: 2

Rep: Reputation: 0
Conceptual details about apache load balancing

Setup details

1. H/W Load Balancer
2. Two Apache Servers with load balancing and rewrite rule
3. Two Application servers

Request will be travel 1 then 2 then 3

1. When any session is established I can see that requests of that session is going to both the application servers. Unique jsession id is assigned to that request, using that jsessionid request is forwarded to both application servers. Is it expected behavior?

2. In configuration of Apache load balancing what is good configuration
By Request
By Traffic

3. In apache configuration we add route parameter in Proxy balancer tag for both application server, then it gets appended to jsessionid like jsessionid=50D8494884F6D4E9FFB8D8946AEB5AC7:s1 and apache server will use this pattern to manage sessions. In my case this route is not added at the end of jsessionid. Is this something which can cause session issue? In log it shows that it is attached to s1/s2 route respectively.
BalancerMember http://server.1 loadfactor=1 route=s1
BalancerMember http://server.2 loadfactor=2 route=s2

4. Sometimes I am getting this error and land me on error code 400 page not found.
[Tue Jun 22 06:17:32 2010] [error] [client] Invalid URI in request username=test&password=1234&method%3Alogin=Logga+in&__checkbox_rememberMeChecked=truejpeg, application/x-shockwave-flash, application/xaml+xml, application/, application/x-ms-xbap, application/x-ms-application, application/, application/, application/msword, */*, referer: http://server1.server/home.action

This all happen when we are accessing URL using hardware load balancer. If we hit each apache server individually everything is working fine.

Please reply.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Web Server Load Balancing using ldirectord and Apache romeo_tango Linux - Server 1 02-17-2010 03:46 AM
Web Load Balancing (apache+heartbeat+ldirector) : Unable to connect to real servers dipakbiswal Linux - Networking 1 11-08-2009 04:34 AM
i need help for load balancing setting apache web server gnu_gcc Linux - Server 2 06-23-2008 03:06 PM
Load Balancing software for apache coolguy_iiit Linux - General 3 08-06-2006 01:31 PM
Apache Modules [load balancing] smart clustering ziox Linux - Networking 0 04-05-2006 10:10 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:00 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration