nginx crash

António P. P. Almeida appa at perusio.net
Sun Nov 13 23:16:56 UTC 2011


On 12 Nov 2011 14h07 WET, magicbearmo at gmail.com wrote:

> happen on a of main upstream server dead.
>
> Here is the config
>
> proxy_cache_path /dev/shm/cdn_cache_comment levels=1:2
> keys_zone=cache_comment_mem:32m max_size=128m; limit_req_zone
> $binary_remote_addr zone=limit_comment:16m rate=50r/s;
>
> upstream backend_comment {
> 	server 10.0.0.1 weight=10 fail_timeout=30s;
> 	server 10.0.0.2 backup weight=5 fail_timeout=30s;
> 	keepalive 30;
        ^^^^^^^^^^^^^
I believe you have to use:

proxy_http_version 1.1;

in the location that invoke this upstream for getting keep alive to
the backends. AFAIK this is undocumented and would be nice if Maxim
can shed some light on this issue. Ditto for:

fastcgi_keep_conn on;

in the case of FCGI upstreams.

Thanks,
--- appa



More information about the nginx-devel mailing list