Welcome! Log In Create A New Profile

Advanced

Re: (60: Operation timed out) while reading response header from upstream

August 09, 2011 03:49AM
Никита Козлов Wrote:
> Похоже тут нужно бэкэнд
> диагностировать.
> Какой стоит proxy_read_timeout?

Таймауты не выставлены, используются значения по умолчанию.
Пробовали увеличивать до 75, результата не дало.

Вот как выглядел конфиг раньше:

location ~ \.php$ {
expires epoch;
try_files $uri @php;
fastcgi_buffer_size 64k;
fastcgi_buffers 8 64k;
fastcgi_pass unix:/var/run/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /usr/local/www/project/html$fastcgi_script_name;
include fastcgi_params;
access_log off;
}
location @php {
fastcgi_buffer_size 64k;
fastcgi_buffers 8 64k;
fastcgi_pass unix:/var/run/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /usr/local/www/project/html/index.php;
include fastcgi_params;
}

Новый конфиг:

upstream cpp {
server 127.0.0.1:8888;
}

server {
...
proxy_buffer_size 64k;
proxy_buffers 8 64k;

# и по умолчанию, и с такими таймаутами
# proxy_connect_timeout 75;
# proxy_read_timeout 75;
# proxy_read_timeout 75;

location ^~ /location.php {
proxy_set_header X-Real-IP $remote_addr;
rewrite .* /location/$arg_foo/$arg_bar? break;
proxy_pass http://cpp;
}
}
Subject Author Posted

(60: Operation timed out) while reading response header from upstream

urri August 08, 2011 12:45PM

Re: (60: Operation timed out) while reading response header from upstream

Alexandr Gomoliako August 08, 2011 01:10PM

Re: (60: Operation timed out) while reading response header from upstream

Никита Козлов August 08, 2011 01:18PM

Re: (60: Operation timed out) while reading response header from upstream

urri August 09, 2011 03:49AM

Re: (60: Operation timed out) while reading response header from upstream

Никита Козлов August 09, 2011 10:08AM

Re: (60: Operation timed out) while reading response header from upstream

urri August 10, 2011 12:45PM

Re: (60: Operation timed out) while reading response header from upstream

urri August 15, 2011 04:44AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 190
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready