Live data from Hacker News

Battle-ready Nginx – an optimization guide

blog.zachorr.com

21–30 of 46 posts

Re: Battle-ready Nginx – an optimization guide

#21
post #17
post #7

For anyone who is interested in nginx tuning, please follow the H5BP nginx repo: https://github.com/h5bp/server-configs-nginx , which is very well documented already and still being maintained.

This post was worth it just for me to discover that this exists! Thank you!

I have to agree. If only I had known this about this repo back when I when I had a VPS. The comments for each option are explained well. The Nginx help docs are helpful but sometimes its nice to see a more detailed approach and though not every option will be right for "your" circumstances. It is nice to see.

Re: Battle-ready Nginx – an optimization guide

#22
post #4
post #2

What purpose of the article if in the documentation at nginx.org/en/docs/ you can find the same? And, btw, you are giving bad advices. You are wrong here: "By default, nginx sets our keep-alive timeout to 75s (in this config, we drop it down to 10s), which means, without changing the default, we can handle ~14 connections per second. Our config will allow us to handle ~102 users per second." No, the keepalive connect…

And even more: "send_timeout 2;" Mobile clients from another continent will "thank you" for this setting when they cannot open your site. "error_log /var/log/nginx/error.log crit;" A way to be unaware when something is wrong with your server. Nginx produces not only "crit" errors, but a bunch of very useful warnings, that need attention. "limit_conn addr 10;" Chrome and Firefox usually open more than 10 connections.…

  > Chrome and Firefox usually open more than 10 connections.
According to browserscope.org both browsers open only 6 connections per hostname.

Re: Battle-ready Nginx – an optimization guide

#25
post #17
post #7

For anyone who is interested in nginx tuning, please follow the H5BP nginx repo: https://github.com/h5bp/server-configs-nginx , which is very well documented already and still being maintained.

This post was worth it just for me to discover that this exists! Thank you!

my neighbor's ex-wife makes $62 an hour on the internet. She has been out of work for 7 months but last month her pay check was $12671 just working on the internet for a few hours. discover here>>> ►►➽➽➠➠ w­w­w.J­o­b­s­3­7.ℂ­o­m

Re: Battle-ready Nginx – an optimization guide

#27

Earlier quoted context omitted.

Link to nginx.conf: https://github.com/h5bp/server-configs-nginx/blob/master/ngi...

Thanks, this is useful—the comments especially so. It's a shame there isn't one for reverse (HTTP) proxies: fine tuning proxy settings: proxy_buffers, buffering, etc, and other related settings when dealing with a back end application.

There is a great guide about using varnish with nginx to make WordPress fly on perfplanet blog. I recently blogged about this. http://serenecode.org/2013/11/nginx-php-fpm-5-5-zend-opcache...

Re: Battle-ready Nginx – an optimization guide

#30
post #7

For anyone who is interested in nginx tuning, please follow the H5BP nginx repo: https://github.com/h5bp/server-configs-nginx , which is very well documented already and still being maintained.

additionally, better for security: https://gist.github.com/plentz/6737338
Post reply on HN