+38 (067) 901-63-22

Корзина

0 товара(ов) на сумму
0 грн.

Проведение нагрузочного тестирования нашего сервера titan-r

С целью проверки устойчивости нашего сервера к пиковым нагрузкам было проведено ряд тестов. Ниже, мы приводим результаты данных тестов:

Тестирование проводилось на сайте, построенном на CMS-системе php-Nuke торговой марки RS™ http://nerusoft.com.

===== Тестирование с помощью Apache Benchmark =====

# Измерение памяти (ps aux: VSZ "virtual set size" и RSS "resident set size").

# Тестирование ApacheBenchmark (2 раза подряд)

root@titan-r:~# ab -c 5 -n 1000 http://nerusoft.com/

This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0

Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/

Copyright 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking nerusoft.com (be patient)

Completed 100 requests

Completed 200 requests

Completed 300 requests

Completed 400 requests

Completed 500 requests

Completed 600 requests

Completed 700 requests

Completed 800 requests

Completed 900 requests

Finished 1000 requests

Server Software: nginx/0.4.13

Server Hostname: nerusoft.com

Server Port: 80

Document Path: /

Document Length: 94796 bytes

Concurrency Level: 5

Time taken for tests: 31.881701 seconds

Complete requests: 1000

Failed requests: 0

Write errors: 0

Total transferred: 95053000 bytes

HTML transferred: 94796000 bytes

Requests per second: 31.37 [#/sec] (mean)

Time per request: 159.409 [ms] (mean)

Time per request: 31.882 [ms] (mean, across all concurrent requests)

Transfer rate: 2911.54 [Kbytes/sec] received

Connection Times (ms)

min mean[+/-sd] median max

Connect: 0 0 0.0 0 0

Processing: 109 158 37.3 153 313

Waiting: 107 156 37.1 150 310

Total: 109 158 37.3 153 313

Percentage of the requests served within a certain time (ms)

50% 153

66% 172

75% 185

80% 191

90% 208

95% 224

98% 249

99% 267

100% 313 (longest request)

=================================================

# Измерение памяти и израсходованного процессорного времени (ps aux: VSZ, RSS, %CPU, %MEM)

# Перезапуск фреймворка

# Тестирование ApacheBenchmark (2 раза подряд)

ab -c 100 -n 10000 http://nerusoft.com/

root@titan-r:~# ab -c 100 -n 10000 http://nerusoft.com/

This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0

Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/

Copyright 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking nerusoft.com (be patient)

Completed 1000 requests

Completed 2000 requests

Completed 3000 requests

Completed 4000 requests

Completed 5000 requests

Completed 6000 requests

Completed 7000 requests

Completed 8000 requests

Completed 9000 requests

Finished 10000 requests

Server Software: nginx/0.4.13

Server Hostname: nerusoft.com

Server Port: 80

Document Path: /

Document Length: 94796 bytes

Concurrency Level: 100

Time taken for tests: 258.190002 seconds

Complete requests: 10000

Failed requests: 0

Write errors: 0

Total transferred: 950530000 bytes

HTML transferred: 947960000 bytes

Requests per second: 38.73 [#/sec] (mean)

Time per request: 2581.900 [ms] (mean)

Time per request: 25.819 [ms] (mean, across all concurrent requests)

Transfer rate: 3595.22 [Kbytes/sec] received

Connection Times (ms)

min mean[+/-sd] median max

Connect: 0 0 0.3 0 4

Processing: 199 2572 1352.8 2296 38015

Waiting: 196 2564 1350.7 2290 38012

Total: 203 2572 1352.8 2296 38015

Percentage of the requests served within a certain time (ms)

50% 2296

66% 2584

75% 2809

80% 2979

90% 3481

95% 3974

98% 4784

99% 6141

100% 38015 (longest request)

======= Тестирование с помощью http_load ===========

# Измерение памяти и израсходованного процессорного времени.

# Перезапуск фреймворка

# Измерение http_load

http_load -rate 10 -seconds 5 nerusoft.com

======== Тестирование с помощью siege ===========

# Измерение памяти и израсходованного процессорного времени.

# Перезапуск фреймворка

# Тест Siege c 50 одновременными пользователями в течении одной минуты.

siege -d1 -t1M -c50 nerusoft.com

root@titan-r:~# siege -d1 -t1M -c50 nerusoft.com

** siege 2.65b1

** Preparing 50 concurrent users for battle.

The server is now under siege...

Lifting the server siege... done.

Transactions: 2312 hits

Availability: 100.00 %

Elapsed time: 60.57 secs

Data transferred: 209.03 MB

Response time: 0.79 secs

Transaction rate: 38.17 trans/sec

Throughput: 3.45 MB/sec

Concurrency: 30.30

Successful transactions: 2312

Failed transactions: 0

Longest transaction: 8.86

Shortest transaction: 0.20

================================================

# Тест Siege c 100 одновременными пользователями в течении одной минуты.

siege -d1 -t1M -c100 nerusoft.com

root@titan-r:/etc/apache2# siege -d1 -t1M -c100 nerusoft.com

** siege 2.65b1

** Preparing 100 concurrent users for battle.

The server is now under siege...

Lifting the server siege... done.

Transactions: 2318 hits

Availability: 100.00 %

Elapsed time: 60.48 secs

Data transferred: 209.56 MB

Response time: 2.02 secs

Transaction rate: 38.33 trans/sec

Throughput: 3.46 MB/sec

Concurrency: 77.44

Successful transactions: 2318

Failed transactions: 0

Longest transaction: 23.29

Shortest transaction: 0.25

======================================================

# Тест Siege c 150 одновременными пользователями в течении одной минуты.

siege -d1 -t1M -c150 nerusoft.com

root@titan-r:/etc/apache2# siege -d1 -t1M -c150 nerusoft.com

** siege 2.65b1

** Preparing 150 concurrent users for battle.

The server is now under siege...

Lifting the server siege.. done.

Transactions: 2337 hits

|Availability: 100.00 %

Elapsed time: 60.47 secs

Data transferred: 211.28 MB

Response time: 3.24 secs

Transaction rate: 38.65 trans/sec

Throughput: 3.49 MB/sec

Concurrency: 125.19

Successful transactions: 2337

Failed transactions: 0

Longest transaction: 25.83

Shortest transaction: 0.26

======================================================

# Тест Siege c 200 одновременными пользователями в течении одной минуты.

siege -d1 -t1M -c200 nerusoft.com

root@titan-r:/etc/nginx# siege -d1 -t1M -c200 nerusoft.com

** siege 2.65b1

** Preparing 200 concurrent users for battle.

The server is now under siege...

Lifting the server siege... done.

Transactions: 2317 hits

Availability: 100.00 %

Elapsed time: 59.80 secs

Data transferred: 209.47 MB

Response time: 4.41 secs

Transaction rate: 38.75 trans/sec

Throughput: 3.50 MB/sec

Concurrency: 170.79

Successful transactions: 2317

Failed transactions: 0

Longest transaction: 25.17

Shortest transaction: 0.32

04.11.07, 12:23