Skip to content

Instantly share code, notes, and snippets.

@no4
no4 / nginx-tuning.md
Created June 30, 2017 05:20 — forked from denji/nginx-tuning.md
NGINX tuning for best performance

Moved to git repository: https://github.com/denji/nginx-tuning

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 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (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.

@no4
no4 / file
Last active February 23, 2017 03:31
freedom_public
{"0.12666840030153614":"-----BEGIN PGP PUBLIC KEY BLOCK-----\r\nCharset: UTF-8\r\n\r\nxv8AAABSBAAAAAATCCqGSM49AwEHAgMEV0cZ/gEqnKaq8luD4EFDArfJYj416Tes\r\nON81d72FFKvrG3FD716HYlNSZb/ON5KRX2T/74IzIMXk+4Nhgb+pJs3/AAAACDxn\r\naXRodWI+wv8AAACOBBATCABA/wAAAAWCWK5Xef8AAAACiwn/AAAACZCHA6Y2diY8\r\nTf8AAAAFlQgJCgv/AAAABJYDAQL/AAAAApsD/wAAAAKeAQAAfMwBAMPzn0map0bb\r\nMSoXBYv2m2RvhAOxl2ySMSuTqkIfYDtCAP9FXW2C7bvDb69kyMyGXYqpU1jVj/kW\r\nikDBDWKuNB6e1M7/AAAAVgQAAAAAEggqhkjOPQMBBwIDBLif0Qp9AkW6UC0K5N7x\r\nHA+tGNfBEH4d2/Nh+PaYg2LFks+SEN8PQesml9cqoS56WJ4s80RKT/QaNcE4wX/i\r\nP0QDAQgHwv8AAABtBBgTCAAf/wAAAAWCWK5Xef8AAAAJkIcDpjZ2JjxN/wAAAAKb\r\nDAAARSsA/jPGEJcs53DLctKUDZamOdIDpri4Ih/c0dOO9/ahy4kAAQCzV72SDali\r\nagu1HQndyrR0bYXr1TQKYCmXOH6MFyEpkg==\r\n=UJ5U\r\n-----END PGP PUBLIC KEY BLOCK-----\r\n","0.8460280706402437":"-----BEGIN PGP PUBLIC KEY BLOCK-----\r\nCharset: UTF-8\r\n\r\nxv8AAABSBAAAAAATCCqGSM49AwEHAgMEV0cZ/gEqnKaq8luD4EFDArfJYj416Tes\r\nON81d72FFKvrG3FD716HYlNSZb/ON5KRX2T/74IzIMXk+4Nhgb+pJs3/AAAACDxn\r\naXRodWI+wv8AAACOB
@no4
no4 / 0_reuse_code.js
Created January 14, 2016 08:25
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console