Skip to content

Instantly share code, notes, and snippets.

View safdar-tp's full-sized avatar

Safdar Imam safdar-tp

View GitHub Profile
SECRET_KEY = '&lyxkjm!oh2qar$6rc0oc=ks_eamdcuhg$b1p4#@f*-x*(rimz'
REDIS_HOST = 'localhost'
REDIS_PORT = 6379
APP_PROTOCOL = 'https',
ELB_PORT = 4443
@safdar-tp
safdar-tp / nginx.md
Created July 26, 2017 08:10
Gist Nginx

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.

@safdar-tp
safdar-tp / nginx-tuning.md
Created July 26, 2017 08:08 — 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.

{
"_readme": [
"This file locks the dependencies of your project to a known state",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
"content-hash": "c2ef0feeb92757f90a8344e399460f1e",
"packages": [
{
"name": "aws/aws-sdk-php",
@safdar-tp
safdar-tp / centos7_ambiente_desenvolvimento.md
Created January 2, 2017 09:15 — forked from marciopaiva/centos7_ambiente_desenvolvimento.md
CentOS 7 - Apache 2.4 + MOD_PROXY_FCGI + PHP-FPM 5.5 + InstantClient Oracle.

CentOS 7 - Apache 2.4 + PHP-FPM 5.5 + InstantClient Oracle.


Montando uma VM para o desenvolvimento de aplicações em PHP, utilizado o CentOS 7