Welcome! Log In Create A New Profile

Advanced

Re: upstream timed out

Andrey Kopeyko
October 15, 2012 06:48AM
15.10.2012 12:12, Dmitry Y. Labutin пишет:
> proxy_connect_timeout установлен в 15 секунд.
> У нас там два сервера в качестве backend'а - основной и backup
> Ошибки, которые я привел - все при обращении к основному.

Вам бы набрать немножко статистики, логируя время установления
соединения с бэкендом - да вот только переменной
$upstream_connection_time в nginx нету... Тогда вы бы смогли крутить
proxy_connect_timeout не на ощупь.

А пока - только постепенно увеличивать proxy_connect_timeout, и смотреть
на результат.


> 15.10.2012 11:10, Andrey Kopeyko пишет:
>> 15.10.2012 11:00, Dmitry Y. Labutin пишет:
>>> Доброго времени суток.
>>
>> Доброе утро, Дмитрий!
>>
>>> Frontend nginx стоит в Москве. Backend nginx стоит в Нижнем Новгороде.
>>> Между ними по traceroute 10 хостов. На Frontend в error лог наблюдает
>>> вот такая картина.
>>>
>>> 2012/10/15 10:33:31 [error] 5438#0: *67542270 upstream timed out (110:
>>> Connection timed out) while connecting to upstream
>> ...
>>> Может быть подскажите, в какую сторону копать?
>>
>> Попробуйте поиграть параметром proxy_connect_timeout
>>
>> http://nginx.org/ru/docs/http/ngx_http_proxy_module.html#proxy_connect_timeout
>>

--
Best regards,
Andrey Kopeyko <andrey@kopeyko.ru>

_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

upstream timed out

Dmitry Y. Labutin October 15, 2012 03:02AM

Re: upstream timed out

Andrey Kopeyko October 15, 2012 03:12AM

Re: upstream timed out

Dmitry Y. Labutin October 15, 2012 04:14AM

Re: upstream timed out

Andrey Kopeyko October 15, 2012 06:48AM

Re: upstream timed out

kav October 15, 2012 07:00AM

Re: upstream timed out

Maxim Dounin October 15, 2012 10:10AM

Re: upstream timed out

kav October 15, 2012 10:20AM

Re: upstream timed out

Илья Шипицин October 18, 2012 01:12AM

Re: upstream timed out

Dmitry Y. Labutin October 18, 2012 01:26AM

Re: upstream timed out

Alex Vorona October 18, 2012 01:44AM

Re: upstream timed out

Dmitry Y. Labutin October 18, 2012 02:04AM

Re: upstream timed out

Илья Шипицин October 18, 2012 04:12AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 177
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