The apache running on real servers already serve same html page as
mentioned in LVS HowTo (section 12.17). Attached pls find sample
results of simple tests on VIP and real server. Although there is no
more failed requests, performance is much better when connecting to real
server. All the client and servers involved are on the same subnet
without firewall protection. Will it be caused by poor configuration
that makes ldirectord a bottleneck?
Thanks a lot.
/ST Wong
------------------------- Test against VIP -----------------------------
# ab -t 30 http://myhost.mydomain/
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.121.2.1 $>
apache-2.0
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd,
http://www.zeustech.net/
Copyright (c) 1998-2002 The Apache Software Foundation,
http://www.apache.org/
Benchmarking myhost.mydomain (be patient)
Completed 5000 requests
Finished 7473 requests
Server Software: Apache/2.0.52
Server Hostname: myhost.mydomain
Server Port: 80
Document Path: /
Document Length: 84 bytes
Concurrency Level: 1
Time taken for tests: 30.9664 seconds
Complete requests: 7473
Failed requests: 3736
(Connect: 0, Length: 3736, Exceptions: 0)
Write errors: 0
Total transferred: 2634585 bytes
HTML transferred: 631553 bytes
Requests per second: 249.02 [#/sec] (mean)
Time per request: 4.016 [ms] (mean)
Time per request: 4.016 [ms] (mean, across all concurrent
requests)
Transfer rate: 85.71 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 1.4 0 10
Processing: 0 3 48.3 0 1009
Waiting: 0 3 48.3 0 1009
Total: 0 3 48.3 0 1009
Percentage of the requests served within a certain time (ms)
50% 0
66% 0
75% 0
80% 0
90% 0
95% 10
98% 10
99% 10
100% 1009 (longest request)
------------------------------- cut here
-----------------------------------
------------------------- Test against Real Server
-----------------------------
# ab -t 30 http://realserver1.mydomain/
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.121.2.1 $>
apache-2.0
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd,
http://www.zeustech.net/
Copyright (c) 1998-2002 The Apache Software Foundation,
http://www.apache.org/
Benchmarking realserver1.mydomain (be patient)
Completed 5000 requests
Completed 10000 requests
Completed 15000 requests
Completed 20000 requests
Completed 25000 requests
Completed 30000 requests
Completed 35000 requests
Completed 40000 requests
Completed 45000 requests
Finished 50000 requests
Server Software: Apache/2.0.52
Server Hostname: realserver1.mydomain
Server Port: 80
Document Path: /
Document Length: 85 bytes
Concurrency Level: 1
Time taken for tests: 22.89752 seconds
Complete requests: 50000
Failed requests: 0
Write errors: 0
Total transferred: 17650000 bytes
HTML transferred: 4250000 bytes
Requests per second: 2263.49 [#/sec] (mean)
Time per request: 0.442 [ms] (mean)
Time per request: 0.442 [ms] (mean, across all concurrent
requests)
Transfer rate: 780.27 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 1.2 0 10
Processing: -1 0 1.7 0 10
Waiting: 0 0 1.7 0 10
Total: 0 0 2.1 0 10
Percentage of the requests served within a certain time (ms)
50% 0
66% 0
75% 0
80% 0
90% 0
95% 0
98% 10
99% 10
100% 10 (longest request)
------------------------------- cut here
-----------------------------------
-----Original Message-----
From: lvs-users-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:lvs-users-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Joseph
Mack NA3T
Sent: Saturday, February 10, 2007 5:16 AM
To: LinuxVirtualServer.org users mailing list.
Subject: Re: ldirectord performance
On Fri, 9 Feb 2007, ST Wong (ITSC) wrote:
> Hi all,
>
> I setup a heartbeat+ldirectord cluster on 2 nodes. They are also real
> servers running httpd. Both load balancing and failover over of
> ldirectord work well. However, when I run apachebench (ab) against
> this setup, found that performance of connecting to VIP is only 30-40%
of
> connecting to individual real server. Disabling SyncDaemon only
helps
> a bit.
>
> I'm afraid I've something missed. Would anyone please help?
look in the HOWTO for testing an LVS with apachebench
Joe
--
Joseph Mack NA3T EME(B,D), FM05lw North Carolina jmack (at) wm7d (dot)
net - azimuthal equidistant map generator at
http://www.wm7d.net/azproj.shtml Homepage http://www.austintek.com/ It's
GNU/Linux!
|