Re: Apache Server status page shows uneven number of requests across load balanced web servers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Thanks Gary,
The load balancing method we use is weight based, so apparently the load balancer suppose to send the traffic to the web server has least number of connections. However the Netscaler support confirmed they see eventual number of traffic routed to all 4 web servers.
Regarding the Apache restart time, I restarted all 4 servers same time and checked could still see the requests on 1 & 3 are being handled.� I dont think we have sticky session enabled at loadbalancer level.
For the same problem we have not before changed the load balancer settings from sourceIP persistence to Weight based to have the load distributed equal on all the servers.
������������������������� IP���� port�������� Type������� State���
Req/s
731-...30_80� x.x.x.x��
80�������� HTTP���������� UP���� 16/s
731-...31_80� x.x.x.x��
80�������� HTTP���������� UP���� 16/s
731-...31_80� x.x.x.x��
80�������� HTTP���������� UP���� 14/s
731-...55_80� x.x.x.x��
80�������� HTTP���������� UP���� 20/s
�
�������������� Rsp/s�� Reqb/s��
Rspb/s ClntConn� SvrConn� MaxConn��
SurgeQ
731-...30_80��� 16/s�
12406/s 345117/s������� 7����� 285�������
0������� 0
731-...31_80��� 16/s�
10956/s 365025/s������� 7����� 262�������
0������� 0
731-...31_80��� 14/s�
11140/s 368655/s������� 6����� 268�������
0������� 0
731-...55_80��� 20/s�
14322/s 420105/s������� 7����� 272�������
0������� 0
�
However the Apache server status still shows the number of requests being handled huge difference.
I have attached the balancer-manager page as well with this email.
Best Regards,
Arun J
On Wed, Jan 27, 2010 at 12:25 PM, Gary Smith
<gary.smith@xxxxxxxxxxxxx> wrote:
Arunkumar,
�
There is no problem with what I see.� The load balancer
will balance a requester to a machine for a period of time.� So if my web
clients makes a request to your server, I will probably have a higher
probability of getting that same server.� It�s like iptables
connection tracking.� Load balance doesn�t necessarily mean equality
service.� There is also an unfair comparison going on here.� The
servers that are seeing all of the connections were restarted 1.5 days ago and
the two that are working fine were started 6 days ago.� If you are going
to restart and then compare, restart all of them to compare.� You mentioned
that you are using weight load sharing algorithm.� It is possible that
when the two servers were restarted that the balancer is trying to give them a
bigger weighted share to �catch up� to the other servers.� I
had a problem with this using ipvsadm some time ago when I would add a new
server and give it the same schedule as the others it would be slammed for a
while.
�
When you see a lot of connections like that, do an netstat
-atunep and see what the IP address and states are.� Check to see if you
have a bunch of duplicate IP�s.� If this is the case, it�s
because the load balancer is gluing the connections during a session and that
the IP�s are also making multiple requests.
�
That�s a place to start at least.
�
Gary Smith
�
�
Hello All,
�
We have apache servers running on RedHat Linux physical servers,
all 4 servers are balanced by Citrix Netscaler 8.1 load balancer with round
robin weight load sharing algorithm.
�
However when I check the server status page to find the
number of requests are served by each Apache server is showing uneven load /
number of requests being processed by each Apache.
�
I notice the load always getting processed by two specific
Apache instances, here are the configuration details.
�
Attached here the server status screen shot page of all 4
web servers.
�
[root@web bin]# ./apachectl -version
Server version: Apache/2.2.6 (Unix)
Server built:�� Sep 26 2007 11:18:50
[root@web bin]#
�
Operating System:
�
Linux Host1 2.4.21-53.ELsmp #1 SMP Wed Nov 14 03:54:12 EST
2007 i686 i686 i386 GNU/Linux
�
�
Hardware configuration are same for all 4 physical Linux
servers.
�
Please advice.
�
Best Regards,
Arun J
Title: Balancer Manager
Load Balancer Manager for www.PRODTC.com
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
JSESSIONID
|
0
|
5
|
byrequests
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
JSESSIONID
|
0
|
0
|
byrequests
|
Worker URL
|
Route
|
RouteRedir
|
Factor
|
Set
|
Status
|
Elected
|
To
|
From
|
ajp://Host1:8309
|
app1_PRODTC3
|
|
1
|
0
|
Ok
|
831
|
14K
|
13M
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
JSESSIONID
|
0
|
0
|
byrequests
|
Worker URL
|
Route
|
RouteRedir
|
Factor
|
Set
|
Status
|
Elected
|
To
|
From
|
ajp://Host1:8109
|
app1_PRODTC1
|
|
1
|
0
|
Ok
|
0
|
0
|
0
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
JSESSIONID
|
0
|
0
|
byrequests
|
Worker URL
|
Route
|
RouteRedir
|
Factor
|
Set
|
Status
|
Elected
|
To
|
From
|
ajp://Host2:8109
|
app2_PRODTC1
|
|
1
|
0
|
Ok
|
0
|
0
|
0
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
JSESSIONID
|
0
|
1
|
byrequests
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
JSESSIONID
|
0
|
0
|
byrequests
|
Worker URL
|
Route
|
RouteRedir
|
Factor
|
Set
|
Status
|
Elected
|
To
|
From
|
ajp://Host1:8309
|
app1_PRODTC3
|
|
1
|
0
|
Ok
|
0
|
0
|
0
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
JSESSIONID
|
0
|
3
|
byrequests
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
|
0
|
0
|
byrequests
|
Worker URL
|
Route
|
RouteRedir
|
Factor
|
Set
|
Status
|
Elected
|
To
|
From
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
|
0
|
0
|
byrequests
|
Worker URL
|
Route
|
RouteRedir
|
Factor
|
Set
|
Status
|
Elected
|
To
|
From
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
|
0
|
0
|
byrequests
|
Worker URL
|
Route
|
RouteRedir
|
Factor
|
Set
|
Status
|
Elected
|
To
|
From
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
|
0
|
0
|
byrequests
|
Worker URL
|
Route
|
RouteRedir
|
Factor
|
Set
|
Status
|
Elected
|
To
|
From
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
|
0
|
0
|
byrequests
|
Worker URL
|
Route
|
RouteRedir
|
Factor
|
Set
|
Status
|
Elected
|
To
|
From
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
|
0
|
0
|
byrequests
|
Worker URL
|
Route
|
RouteRedir
|
Factor
|
Set
|
Status
|
Elected
|
To
|
From
|
Apache Server at www.PRODTC.com
Port 80
|
Title: Balancer Manager
Load Balancer Manager for www.PRODTC.com
Server Version: Apache/2.2.6 (Unix) mod_ssl/2.2.6
hannel)?/jokes(\.do)?$ /all-jokes.do? [R=301,L] PHP/5.2.4
Server Built: Sep 26 2007 11:18:50
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
JSESSIONID
|
0
|
5
|
byrequests
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
JSESSIONID
|
0
|
0
|
byrequests
|
Worker URL
|
Route
|
RouteRedir
|
Factor
|
Set
|
Status
|
Elected
|
To
|
From
|
ajp://Host1:8309
|
app1_PRODTC3
|
|
1
|
0
|
Ok
|
504
|
10K
|
7.7M
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
JSESSIONID
|
0
|
0
|
byrequests
|
Worker URL
|
Route
|
RouteRedir
|
Factor
|
Set
|
Status
|
Elected
|
To
|
From
|
ajp://Host1:8109
|
app1_PRODTC1
|
|
1
|
0
|
Ok
|
0
|
0
|
0
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
JSESSIONID
|
0
|
0
|
byrequests
|
Worker URL
|
Route
|
RouteRedir
|
Factor
|
Set
|
Status
|
Elected
|
To
|
From
|
ajp://Host2:8109
|
app2_PRODTC1
|
|
1
|
0
|
Ok
|
0
|
0
|
0
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
JSESSIONID
|
0
|
1
|
byrequests
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
JSESSIONID
|
0
|
0
|
byrequests
|
Worker URL
|
Route
|
RouteRedir
|
Factor
|
Set
|
Status
|
Elected
|
To
|
From
|
ajp://Host1:8309
|
app1_PRODTC3
|
|
1
|
0
|
Ok
|
0
|
0
|
0
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
JSESSIONID
|
0
|
3
|
byrequests
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
|
0
|
0
|
byrequests
|
Worker URL
|
Route
|
RouteRedir
|
Factor
|
Set
|
Status
|
Elected
|
To
|
From
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
|
0
|
0
|
byrequests
|
Worker URL
|
Route
|
RouteRedir
|
Factor
|
Set
|
Status
|
Elected
|
To
|
From
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
|
0
|
0
|
byrequests
|
Worker URL
|
Route
|
RouteRedir
|
Factor
|
Set
|
Status
|
Elected
|
To
|
From
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
|
0
|
0
|
byrequests
|
Worker URL
|
Route
|
RouteRedir
|
Factor
|
Set
|
Status
|
Elected
|
To
|
From
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
|
0
|
0
|
byrequests
|
Worker URL
|
Route
|
RouteRedir
|
Factor
|
Set
|
Status
|
Elected
|
To
|
From
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
|
0
|
0
|
byrequests
|
Worker URL
|
Route
|
RouteRedir
|
Factor
|
Set
|
Status
|
Elected
|
To
|
From
|
Apache Server at www.PRODTC.com
Port 80
|
Title: Balancer Manager
Load Balancer Manager for www.PRODTC.com
Server Version: Apache/2.2.6 (Unix) mod_ssl/2.2.6 PÞB
PHP/5.2.4
Server Built: Sep 26 2007 11:18:50
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
JSESSIONID
|
0
|
5
|
byrequests
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
JSESSIONID
|
0
|
0
|
byrequests
|
Worker URL
|
Route
|
RouteRedir
|
Factor
|
Set
|
Status
|
Elected
|
To
|
From
|
ajp://Host1:8309
|
app1_PRODTC3
|
|
1
|
0
|
Ok
|
558
|
10K
|
8.8M
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
JSESSIONID
|
0
|
0
|
byrequests
|
Worker URL
|
Route
|
RouteRedir
|
Factor
|
Set
|
Status
|
Elected
|
To
|
From
|
ajp://Host1:8109
|
app1_PRODTC1
|
|
1
|
0
|
Ok
|
0
|
0
|
0
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
JSESSIONID
|
0
|
0
|
byrequests
|
Worker URL
|
Route
|
RouteRedir
|
Factor
|
Set
|
Status
|
Elected
|
To
|
From
|
ajp://Host2:8109
|
app2_PRODTC1
|
|
1
|
0
|
Ok
|
0
|
0
|
0
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
JSESSIONID
|
0
|
1
|
byrequests
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
JSESSIONID
|
0
|
0
|
byrequests
|
Worker URL
|
Route
|
RouteRedir
|
Factor
|
Set
|
Status
|
Elected
|
To
|
From
|
ajp://Host1:8309
|
app1_PRODTC3
|
|
1
|
0
|
Ok
|
0
|
0
|
0
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
JSESSIONID
|
0
|
3
|
byrequests
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
|
0
|
0
|
byrequests
|
Worker URL
|
Route
|
RouteRedir
|
Factor
|
Set
|
Status
|
Elected
|
To
|
From
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
|
0
|
0
|
byrequests
|
Worker URL
|
Route
|
RouteRedir
|
Factor
|
Set
|
Status
|
Elected
|
To
|
From
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
|
0
|
0
|
byrequests
|
Worker URL
|
Route
|
RouteRedir
|
Factor
|
Set
|
Status
|
Elected
|
To
|
From
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
|
0
|
0
|
byrequests
|
Worker URL
|
Route
|
RouteRedir
|
Factor
|
Set
|
Status
|
Elected
|
To
|
From
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
|
0
|
0
|
byrequests
|
Worker URL
|
Route
|
RouteRedir
|
Factor
|
Set
|
Status
|
Elected
|
To
|
From
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
|
0
|
0
|
byrequests
|
Worker URL
|
Route
|
RouteRedir
|
Factor
|
Set
|
Status
|
Elected
|
To
|
From
|
Apache Server at www.PRODTC.com
Port 80
|
Title: Balancer Manager
Load Balancer Manager for www.PRODTC.com
Server Version: Apache/2.2.6 (Unix) mod_ssl/2.2.6 PHP/5.2.4
Server Built: Sep 26 2007 11:18:50
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
JSESSIONID
|
0
|
5
|
byrequests
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
JSESSIONID
|
0
|
0
|
byrequests
|
Worker URL
|
Route
|
RouteRedir
|
Factor
|
Set
|
Status
|
Elected
|
To
|
From
|
ajp://Host1:8309
|
app1_PRODTC3
|
|
1
|
0
|
Ok
|
485
|
9.9K
|
7.7M
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
JSESSIONID
|
0
|
0
|
byrequests
|
Worker URL
|
Route
|
RouteRedir
|
Factor
|
Set
|
Status
|
Elected
|
To
|
From
|
ajp://Host1:8109
|
app1_PRODTC1
|
|
1
|
0
|
Ok
|
0
|
0
|
0
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
JSESSIONID
|
0
|
0
|
byrequests
|
Worker URL
|
Route
|
RouteRedir
|
Factor
|
Set
|
Status
|
Elected
|
To
|
From
|
ajp://Host2:8109
|
app2_PRODTC1
|
|
1
|
0
|
Ok
|
0
|
0
|
0
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
JSESSIONID
|
0
|
1
|
byrequests
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
JSESSIONID
|
0
|
0
|
byrequests
|
Worker URL
|
Route
|
RouteRedir
|
Factor
|
Set
|
Status
|
Elected
|
To
|
From
|
ajp://Host1:8309
|
app1_PRODTC3
|
|
1
|
0
|
Ok
|
0
|
0
|
0
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
JSESSIONID
|
0
|
3
|
byrequests
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
|
0
|
0
|
byrequests
|
Worker URL
|
Route
|
RouteRedir
|
Factor
|
Set
|
Status
|
Elected
|
To
|
From
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
|
0
|
0
|
byrequests
|
Worker URL
|
Route
|
RouteRedir
|
Factor
|
Set
|
Status
|
Elected
|
To
|
From
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
|
0
|
0
|
byrequests
|
Worker URL
|
Route
|
RouteRedir
|
Factor
|
Set
|
Status
|
Elected
|
To
|
From
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
|
0
|
0
|
byrequests
|
Worker URL
|
Route
|
RouteRedir
|
Factor
|
Set
|
Status
|
Elected
|
To
|
From
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
|
0
|
0
|
byrequests
|
Worker URL
|
Route
|
RouteRedir
|
Factor
|
Set
|
Status
|
Elected
|
To
|
From
|
StickySession
|
Timeout
|
FailoverAttempts
|
Method
|
|
0
|
0
|
byrequests
|
Worker URL
|
Route
|
RouteRedir
|
Factor
|
Set
|
Status
|
Elected
|
To
|
From
|
Apache Server at www.PRODTC.com
Port 80
|
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
" from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
[Index of Archives]
[Open SSH Users]
[Linux ACPI]
[Linux Kernel]
[Linux Laptop]
[Kernel Newbies]
[Security]
[Netfilter]
[Bugtraq]
[Squid]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Samba]
[Video 4 Linux]
[Device Mapper]