Consultoria e Suporte em T.I.

OTRS com NGINX ou Apache?

É sabido de todos que um servidor web com NGINX comparado com um Apache mostra um desempenho melhor em diversas aplicações, em especial com PHP, claro, isso não é um dogma, mas quando pensamos em rapidez e performance devemos começar com o NGINX.

Embora a documentação oficial do OTRS não mencione o NGINX é possível configura-lo e usa-lo. Mas e com relação a performance? O NGINX também se mostra superior com a aplicação OTRS?

A resposta curta é NÃO. Pelos testes que fiz, no mesmo servidor, com o mesmo banco de dados e com configurações similares o OTRS fica de 2 a 3 vezes mais lento rodando com o NGINX.

Definitivamente, o OTRS é mais rápido com o Apache.

SERVIDOR NGINX - CONSULTAS A PÁGINA DE LOGIN
This is ApacheBench, Version 2.3 <$Revision: 1604373 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking *********************** (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
Completed 1000 requests
Finished 1000 requests

Server Software:        nginx/1.6.2
Server Hostname:        ******************
Server Port:            81

Document Path:          /otrs/index.pl
Document Length:        18709 bytes

Concurrency Level:      100
Time taken for tests:   663.168 seconds
Complete requests:      1000
Failed requests:        0
Total transferred:      19162000 bytes
HTML transferred:       18709000 bytes
Requests per second:    1.51 [#/sec] (mean)
Time per request:       66316.778 [ms] (mean)
Time per request:       663.168 [ms] (mean, across all concurrent requests)
Transfer rate:          28.22 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   1.2      0       6
Processing:   719 63111 11390.7  66240   68023
Waiting:      719 63111 11390.7  66240   68023
Total:        725 63111 11389.7  66240   68028

Percentage of the requests served within a certain time (ms)
  50%  66240
  66%  66513
  75%  66708
  80%  66806
  90%  67123
  95%  67339
  98%  67628
  99%  67742
 100%  68028 (longest request)
SERVIDOR APACHE - CONSULTAS A PÁGINA DE LOGIN
This is ApacheBench, Version 2.3 <$Revision: 1604373 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking *********************** (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
Completed 1000 requests
Finished 1000 requests

Server Software:        Apache/2.4.10
Server Hostname:        ******************
Server Port:            82

Document Path:          /otrs/index.pl
Document Length:        18709 bytes

Concurrency Level:      100
Time taken for tests:   35.556 seconds
Complete requests:      1000
Failed requests:        0
Total transferred:      19196000 bytes
HTML transferred:       18709000 bytes
Requests per second:    28.12 [#/sec] (mean)
Time per request:       3555.579 [ms] (mean)
Time per request:       35.556 [ms] (mean, across all concurrent requests)
Transfer rate:          527.23 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.8      0       4
Processing:   113 3497 4282.5   1881   18646
Waiting:       86 3265 4279.9   1585   18409
Total:        116 3497 4282.4   1881   18646

Percentage of the requests served within a certain time (ms)
  50%   1881
  66%   2111
  75%   2609
  80%   2990
  90%  13387
  95%  15348
  98%  16767
  99%  17562
 100%  18646 (longest request)

Deixe uma resposta

O seu endereço de email não será publicado