atom feed13 messages in ru.sysoev.nginxRe: nginx 1.2.0 is slower than 1.1.12?
FromSent OnAttachments
Delta YehApr 26, 2012 2:50 am 
Valentin V. BartenevApr 26, 2012 3:34 am 
Delta YehApr 26, 2012 7:07 am 
Valentin V. BartenevApr 26, 2012 7:26 am 
Delta YehApr 27, 2012 12:12 am 
Sergey BudnevitchApr 27, 2012 1:07 am 
Delta YehApr 27, 2012 1:42 am.jpg
Delta YehApr 27, 2012 3:50 am 
Maxim DouninApr 27, 2012 3:56 am 
Delta YehApr 27, 2012 4:05 am 
Maxim DouninApr 27, 2012 5:22 am 
Delta YehApr 27, 2012 6:08 am 
Maxim DouninApr 27, 2012 7:00 am 
Subject:Re: nginx 1.2.0 is slower than 1.1.12?
From:Delta Yeh (delt@gmail.com)
Date:Apr 27, 2012 1:42:46 am
List:ru.sysoev.nginx
Attachments:

The loadrunner output of 1.1.19 is attached, there are many connection timeout error reported by loadrunner.

My latest test show that 1.1.18 is OK , so changes between 1.1.18 and 1.1.19 make things worse in my test lab.

the os is debian squeeze 32bit, the config is :

user root root; worker_rlimit_nofile 81920; worker_processes 2; pid /secone/var/run/nginx.pid; error_log /dev/null error; pcre_jit on; events { use epoll; worker_connections 12000; multi_accept on; accept_mutex off; } http { include mime.types; default_type application/octet-stream; sendfile on; tcp_nopush on; reset_timedout_connection on; ignore_invalid_headers on; underscores_in_headers on; proxy_buffering on; proxy_ignore_client_abort on; proxy_intercept_errors on; client_header_buffer_size 16k; large_client_header_buffers 4 16k; msie_padding off; msie_refresh off; access_log off;

upstream upstream_www { server 192.168.2.3:80 max_fails=0 ; server 192.168.2.4:80 max_fails=0 ; server 192.168.2.5:80 max_fails=0 ; server 192.168.2.6:80 max_fails=0 ; } upstream upstream_www2 { server 192.168.2.254:80 max_fails=0 ; }

server {

listen 192.168.1.1:80 ; server_name _; proxy_set_header Host $http_host; location / { proxy_pass http://upstream_www2; proxy_redirect default; } }

server {

client_header_timeout 60; client_body_timeout 120; client_max_body_size 100m; client_header_buffer_size 16k; large_client_header_buffers 4 16k; proxy_buffer_size 16k; proxy_buffers 4 16k; listen 192.168.1.1:80 ; server_name www.test.com;

ssl off; keepalive_timeout 0; proxy_cache_key $scheme$host$request_uri;

location / { proxy_set_header Accept-Encoding identity; proxy_set_header Host $http_host; proxy_next_upstream error timeout http_500 http_502 http_503 http_504; proxy_cache off; proxy_pass http://upstream_www; } }

在 2012年4月27日 下午4:08,Sergey Budnevitch <sb@waeme.net> 写道:

On 27.04.2012, at 11:12, Delta Yeh wrote:

I use loadrunner, and although get the conclusion:1.2.0 is slower than 1.1.12 I observe connect timeout error in loadrunner console, but I didn't see such error in 1.1.12.

For 1.2.0 , the rps line dive to very lower every 15-20 seconds, I think it because  connect  to nginx timeout .

I test 1.1.17 , the result is almost the same as 1.1.12. I then test 1.1.19 , the result is  like 1.2.0,

So what happened between 1.1.17 and 1.1.19 will result the connection timeout every 15-20 seconds?

Could you show your config? And what OS are you using?