I have Puma working as an application server up and Riak as my db cluster background. When I send a request that converts the card, reduces a piece of data for about 25 thousand users and returns it from the Riak application to the application, I get an error message in the Nginx log:
timeout up (110: connection timeout) while reading the response header upstream
If I request my upstream directly without a nginx proxy, with the same request, I will get the necessary data.
Nginx timeout occurs after entering a proxy.
**nginx.conf** user www-data; worker_processes 2; pid /var/run/nginx.pid; events { worker_connections 4000; } http { sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 10m; proxy_connect_timeout 600s; proxy_send_timeout 600s; proxy_read_timeout 600s; fastcgi_send_timeout 600s; fastcgi_read_timeout 600s; types_hash_max_size 2048; proxy_cache_path /opt/cloud/cache levels=1 keys_zone=cloud:10m; include /etc/nginx/mime.types; default_type application/octet-stream; access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; gzip on; gzip_disable "msie6"; include /etc/nginx/sites-enabled
}
Nginx has many timeout directives. I do not know if I am missing something important. Any help would be greatly appreciated ....
timeout nginx puma
user2768537 Sep 11 '13 at 12:01 2013-09-11 12:01
source share