Skip to content

Instantly share code, notes, and snippets.

@HarryHong
HarryHong / nginx-tuning.md
Created September 27, 2016 15:35 — forked from denji/nginx-tuning.md
NGINX tuning for best performance

NGINX Tuning For Best Performance

For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.

Generally, properly configured nginx can handle up to 400,000 to 500,000 requests per second (clustered), most what i saw is 50,000 to 80,000 (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.

You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.

@HarryHong
HarryHong / netstatelist.txt
Last active March 16, 2016 18:23
piece of codes
netstat -ant | awk '{print $6}' | sort | uniq -c | sort -n
@HarryHong
HarryHong / .gitignore
Last active September 4, 2015 21:44 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@HarryHong
HarryHong / gist:08431b3deb09850ecafe
Last active September 4, 2015 21:40 — forked from paulallies/gist:0052fab554b14bbfa3ef
Remove node_modules from git repo
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin master