Let requests stream directly into the storage layer without pooling up on the backend.

This commit is contained in:
yackob03 2014-01-07 16:35:38 -05:00
parent d52d913276
commit 5f8d7662d1
4 changed files with 9 additions and 5 deletions

View file

@ -1,11 +1,9 @@
to prepare a new host:
```
sudo apt-get install software-properties-common
sudo apt-add-repository -y ppa:nginx/stable
sudo apt-get update
sudo apt-get install -y git python-virtualenv python-dev phantomjs libjpeg8 libjpeg62-dev libfreetype6 libfreetype6-dev libevent-dev
sudo apt-get install -y nginx-full
sudo apt-get install -y git python-virtualenv python-dev phantomjs libjpeg8 libjpeg62-dev libfreetype6 libfreetype6-dev libevent-dev gdebi-core
sudo gdebi --n binary_dependencies/*.deb
```
check out the code:
@ -20,7 +18,7 @@ pip install -r requirements.txt
running:
```
sudo mkdir -p /mnt/nginx/ && sudo nginx -c `pwd`/nginx.conf
sudo mkdir -p /mnt/nginx/ && sudo /usr/local/nginx/sbin/nginx -c `pwd`/nginx.conf
STACK=prod gunicorn -c gunicorn_config.py application:application
```

Binary file not shown.

View file

@ -72,6 +72,9 @@ http {
proxy_redirect off;
proxy_buffering off;
proxy_request_buffering off;
proxy_set_header Transfer-Encoding $http_transfer_encoding;
proxy_pass http://app_server;
proxy_read_timeout 2000;
proxy_temp_path /mnt/nginx/proxy_temp 1 2;

View file

@ -70,6 +70,9 @@ http {
proxy_redirect off;
proxy_buffering off;
proxy_request_buffering off;
proxy_set_header Transfer-Encoding $http_transfer_encoding;
proxy_pass http://app_server;
proxy_read_timeout 2000;
proxy_temp_path /mnt/nginx/proxy_temp 1 2;