Apache to Nginx Migration



 Apache to Nginx Migration

Status update of the web engine migration.
All items are pending further testing.

Tech.kulish.com
Fully functional (including links to other/outside domains)


Cars.kulish.com
Theme issues but otherwise functional
I am currently looking at new themes for this site

Fully functional

Family.kulish.com
Fully functional

Gallery.kulish.com
Working except HTTPS redirects to HTTP because of this…


setConfig(‘baseUri’, ‘http://gallery.kulish.com/main.php’)


Webmail.kulish.com
Fully functional, permanent HTTPS redirect in place

Mediaserv.kulish.com
Fully functional

Monitoring
My monitoring solution is collecting data but display is broken.
HTTP links do not work, just reloads the overview regardless of URL
HTTPS links do not work, throws an error on every click


400 Bad Request
The plain HTTP request was sent to HTTPS port


Cloud
Fully functional, permanent HTTPS redirect in place

Benchmarks
Benchmarks reflect real world performance but I’ve ran it locally against both engines.
Command used: ab -n 1000 -c 5 http://tech.kulish.com/index.php


Short version.
APACHE:
Time taken for tests: 195.169 seconds
Requests per second: 5.12 [#/sec] (mean)


Connect: 0 0 2.8 0 90
Processing: 318 973 2219.7 595 27929
Waiting: 318 965 2209.7 591 27929
Total: 319 974 2219.9 595 27929


NGINX:
Time taken for tests: 109.310 seconds
Requests per second: 9.15 [#/sec] (mean)


Connect: 0 0 0.6 0 10
Processing: 280 546 80.1 543 1022
Waiting: 280 546 80.1 543 1022
Total: 280 546 80.0 543 1022


Long version.
APACHE:
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/


Benchmarking tech.kulish.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
Completed 1000 requests
Finished 1000 requests

Server Software: Apache/2.2.16
Server Hostname: tech.kulish.com
Server Port: 80


Document Path: /index.php
Document Length: 0 bytes


Concurrency Level: 5
Time taken for tests: 195.169 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Non-2xx responses: 1000
Total transferred: 474000 bytes
HTML transferred: 0 bytes
Requests per second: 5.12 [#/sec] (mean)
Time per request: 975.847 [ms] (mean)
Time per request: 195.169 [ms] (mean, across all concurrent requests)
Transfer rate: 2.37 [Kbytes/sec] received


Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 2.8 0 90
Processing: 318 973 2219.7 595 27929
Waiting: 318 965 2209.7 591 27929
Total: 319 974 2219.9 595 27929


Percentage of the requests served within a certain time (ms)
50% 595
66% 663
75% 715
80% 761
90% 1014
95% 1855
98% 4427
99% 15662
100% 27929 (longest request)



NGINX:
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/


Benchmarking tech.kulish.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
Completed 1000 requests
Finished 1000 requests

Server Software: nginx/1.0.10
Server Hostname: tech.kulish.com
Server Port: 80


Document Path: /index.php
Document Length: 0 bytes


Concurrency Level: 5
Time taken for tests: 109.310 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Non-2xx responses: 1000
Total transferred: 411000 bytes
HTML transferred: 0 bytes
Requests per second: 9.15 [#/sec] (mean)
Time per request: 546.548 [ms] (mean)
Time per request: 109.310 [ms] (mean, across all concurrent requests)
Transfer rate: 3.67 [Kbytes/sec] received


Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.6 0 10
Processing: 280 546 80.1 543 1022
Waiting: 280 546 80.1 543 1022
Total: 280 546 80.0 543 1022


Percentage of the requests served within a certain time (ms)
50% 543
66% 573
75% 592
80% 605
90% 641
95% 674
98% 735
99% 779
100% 1022 (longest request)