nginx-0.7.37

Eugene Fit eugene.fit at gmail.com
Wed Feb 25 20:09:59 MSK 2009


Добрый день! Подскажите, постоянно валится ерроры таймаута, читал похожие
темы, но для себя решения так и не нашел...

2009/02/25 19:59:06 [error] 8816#0: *19469 upstream timed out (110:
Connection timed out) while connecting to upstream, client: 91.78.210.159,
server: www.esosedi.ru, request: "GET
/1223280237-17559de6257cca69c457198ba6462a22.jsf HTTP/1.1", upstream: "
http://172.16.128.2:81/1223280237-17559de6257cca69c457198ba6462a22.jsf",
host: "www.esosedi.ru", referrer: "
http://www.esosedi.ru/onmap/gipermarket_karusel/3079373/index.html"
2009/02/25 19:59:06 [error] 8816#0: *19535 upstream timed out (110:
Connection timed out) while connecting to upstream, client: 77.108.94.124,
server: www.esosedi.ru, request: "POST
/loader/chat/ask_what_to_do.php?live=723553&lat=55743545&lng=37597962&z=10&a=0
HTTP/1.1", upstream: "
http://172.16.128.2:81/loader/chat/ask_what_to_do.php?live=723553&lat=55743545&lng=37597962&z=10&a=0",
host: "www.esosedi.ru", referrer: "http://www.esosedi.ru/"
2009/02/25 19:59:06 [error] 8816#0: *19528 upstream timed out (110:
Connection timed out) while connecting to upstream, client: 81.94.27.207,
server: www.esosedi.ru, request: "GET /img/loc/flags/1906_16.img HTTP/1.0",
upstream: "http://172.16.128.2:81/img/loc/flags/1906_16.img", host: "
www.esosedi.ru", referrer: "
http://www.esosedi.ru/loc/rossiya/sverdlovskaya_oblast/polevskoy/1905/index.html
"
2009/02/25 19:59:07 [error] 8816#0: *19568 upstream timed out (110:
Connection timed out) while connecting to upstream, client: 77.88.33.146,
server: www.esosedi.ru, request: "GET
/onmap/aeroport_izhevsk/1848317/index.html HTTP/1.0", upstream: "
http://172.16.128.2:81/onmap/aeroport_izhevsk/1848317/index.html", host: "
www.esosedi.ru"
2009/02/25 19:59:07 [error] 8816#0: *19566 upstream timed out (110:
Connection timed out) while connecting to upstream, client: 81.94.27.207,
server: crawler.kashey.ru, request: "GET /piC/
http://www.esosedi.ru/imgs/pic/spot.gif HTTP/1.0", upstream: "
http://172.16.128.2:81/piC/http:/www.esosedi.ru/imgs/pic/spot.gif", host: "
crawler.kashey.ru", referrer: "
http://www.esosedi.ru/loc/rossiya/sverdlovskaya_oblast/polevskoy/1905/index.html
"
2009/02/25 19:59:07 [error] 8816#0: *19572 upstream timed out (110:
Connection timed out) while connecting to upstream, client: 81.94.27.207,
server: crawler.kashey.ru, request: "GET
/piC/111969_100px-Coat_of_Arms_of_Pervouralsk_(Sverdlovsk_oblast).png/trumb/16x16/
HTTP/1.0", upstream: "
http://172.16.128.2:81/piC/111969_100px-Coat_of_Arms_of_Pervouralsk_(Sverdlovsk_oblast).png/trumb/16x16/",
host: "crawler.kashey.ru", referrer: "
http://www.esosedi.ru/loc/rossiya/sverdlovskaya_oblast/polevskoy/1905/index.html
"
2009/02/25 19:59:08 [error] 8816#0: *19656 upstream timed out (110:
Connection timed out) while connecting to upstream, client: 78.106.253.85,
server: www.esosedi.ru, request: "GET
/rsh_blank.html?lat=55714741&lng=37627230&z=17&v=0 HTTP/1.1", upstream: "
http://172.16.128.2:81/rsh_blank.html?lat=55714741&lng=37627230&z=17&v=0",
host: "www.esosedi.ru", referrer: "
http://www.esosedi.ru/onmap/Zabroshennyiy_dom/7697600/index.html"


Вот конфиг

user  apache;
worker_processes  1;
worker_rlimit_nofile 10240;
worker_rlimit_sigpending 32768;

events {
    worker_connections  8192;
}

http {
    include       /etc/mime.types.1;
    default_type  application/octet-stream;
    server_names_hash_bucket_size 64;
    log_format  main  '$remote_addr - $remote_user [$time_local] $status '
                      '"$request" $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "http_x_forwarded_for"';
     proxy_max_temp_file_size  0;
     fastcgi_temp_path /var/spool/nginx/tmp;
     client_body_temp_path /var/spool/nginx/tmp;

    access_log  off;
    error_log  /var/log/nginx/error.log warn;
    sendfile       on;
    tcp_nopush     on;
    tcp_nodelay    on;
    open_file_cache          max=1000  inactive=5m;


upstream  sosedi-myup  {
    server   172.16.128.2:81        weight=6;
    server   172.16.128.2:81        backup;
}

 server {
        listen       80;
#        access_log  /var/log/ngnix/access.log  main;
#        error_log  /var/log/ngnix/error.log  info;
        server_name  www.esosedi.ru esosedi.ru;
        # Main location
        location / {
            proxy_pass         http://sosedi-myup/;

            proxy_redirect     off;

            proxy_set_header   Host             $host;
            proxy_set_header   X-Real-IP        $remote_addr;
            proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;

            client_max_body_size       10m;
            client_body_buffer_size    128k;

            proxy_connect_timeout      90;
            proxy_send_timeout         90;
            proxy_read_timeout         90;
            proxy_buffering On;
            proxy_buffer_size          4k;
            proxy_buffers              32 64k;
            proxy_busy_buffers_size    64k;
            proxy_temp_file_write_size 64k;
        }

   location ~* ^.+\.(xy)$ {
                       add_header Content-type "text/plain; charset=UTF-8";
                       add_header Content-Encoding gzip;
                       expires -1h;
                       root /var/www/esosedi/ztile;
                       error_page   404  =  @ws2;
            }

        location @ws2 {
            proxy_pass         http://172.16.128.2:81;

            proxy_redirect     off;

            proxy_set_header   Host             $host;
            proxy_set_header   X-Real-IP        $remote_addr;
            proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;

            client_max_body_size       10m;
            client_body_buffer_size    128k;

            proxy_connect_timeout      90;
            proxy_send_timeout         90;
            proxy_read_timeout         90;
            proxy_buffering On;
            proxy_buffer_size          4k;
            proxy_buffers              32 64k;
            proxy_busy_buffers_size    64k;
        }


        # Static files location
       location ~*
^.+\.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|wav|bmp|rtf|js|swf|txt|ico|p2p)$
{
           root   /var/www/esosedi;
        }
    }

}

[root at i-stroy2 local]# cat /proc/sys/fs/file-max
100000
[root at i-stroy2 local]# ulimit -n
90000

-- 
best regards,
Fit Evgeny


-- 
best regards,
Fit Evgeny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20090225/947b3c59/attachment.html>


More information about the nginx-ru mailing list