Visit Jeremy's Blog.
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, 12:20 AM   #1
LQ Newbie
Registered: Jun 2010
Posts: 2

Rep: Reputation: 0
Question Apache Load Balaning sticky session issue

Few doubts in apache load balancing -

I want to clear my doubts about apache load balancing.

i have configured apache load balancing for two application servers.

1. When we set load balancing for two application servers then for one connection to application server we will get one jsession id assign to the connection for one application server
Is that mean for that connection apache server will only refer to one application server not go to another application server?

2. route parameter will be added at the end of each jsesion id.
If route is not appended at the end of jsessionid is that a issue? and will result in wrong session stickeyness?

My Configuration -

<Location /balancer-manager>
SetHandler balancer-manager
Order deny,allow
deny from all
Allow from

ProxyRequests on
ProxyStatus on
ProxyPreserveHost On
RewriteEngine On
LogLevel debug
RewriteLog logs/rewrite.log
RewriteLogLevel 3


<Proxy balancer://HB_cluster>
BalancerMember http://server1 loadfactor=1 route=hb1
BalancerMember http://server2 loadfactor=2 route=hb2
ProxySet lbmethod=bytraffic

ProxyPass /balancer-manager !
ProxyPass / balancer://HB_cluster/ stickysession=ROUTEID
ProxyPassReverse / http://server1/
ProxyPassReverse / http://server2/

ServerAdmin admin@localhost
DocumentRoot "c:/Program Files/Apache Software Foundation/Apache2.2/htdocs/"
ErrorLog logs/err-server.log
CustomLog logs/access-server.log common

I am stuck please help.


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
Apache - Tomcat How to use session ID to confirm an active user session? klroller Linux - Server 4 10-08-2009 09:43 PM
apache sticky session mahmoud Linux - Software 1 04-24-2009 03:18 AM
linux-based load balancers with sticky connections (for balancing Terminal Servers) ? lumix Linux - Networking 2 01-22-2008 01:23 PM
how to load /etc/group settings without exiting session? fobster Linux - Newbie 4 09-14-2006 08:26 PM
apache load blancing issue ziox Linux - Networking 0 03-07-2006 01:06 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:43 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
Open Source Consulting | Domain Registration