November 29, 2011 10:48AM
|
Registered: 14 years ago
Posts: 58
|
Дело в том, что так как это тестовая площадка, то я точно знаю, что один апстрим всегда живой. Мне не очень понятна логика выбора апстримов, когда многие из них лежат (по таймауту). Например:
вот для этой конфигурации:
upstream fcgi_proxy {
server 10.0.0.77:9000 max_fails=1 fail_timeout=240s; # answer more than 60 sec
server 10.0.0.77:9001 max_fails=1 fail_timeout=240s; # answer more than 60 sec
server 10.0.0.77:9002 max_fails=1 fail_timeout=240s; # answer more than 60 sec
server 10.0.0.73:9000 max_fails=1 fail_timeout=240s; # ok
}
10.0.0.1 - - [25/Nov/2011:16:36:59 +0000] "GET /fcgi_proxy/ HTTP/1.1" 502 1205 "-" "JoeDog/1.00 [en] (X11; I; Siege 2.70)" "-" "10.0.0.77:9000, 10.0.0.77:9001, fcgi_proxy : 10.0.0.12:80 504, 504, 502 : 404 - 30.009, 30.017, 0.000 : 0.001" 60.027 SSL:-/- "gzip:-"
здесь nginx пробует 2 апстрима (остальные видимо помечены как down): 10.0.0.77:9000 и 10.0.0.77:9001 (а мы знаем, что 10.0.0.73:9000 всегда живой)
10.0.0.1 - - [25/Nov/2011:16:44:03 +0000] "GET /fcgi_proxy/ HTTP/1.1" 502 1205 "-" "JoeDog/1.00 [en] (X11; I; Siege 2.70)" "-" "10.0.0.77:9000, fcgi_proxy : 10.0.0.12:80 504,502 : 404 - 30.013, 0.000 : 0.002" 30.015 SSL:-/- "gzip:-"
а здесь пробует только один: 10.0.0.77:9000, хотя как я понимаю, он должен отправить запрос на 10.0.0.73:9000.
Subject |
Author |
Posted |
|
igor.goncharenko |
November 25, 2011 08:06AM |
|
Maxim Dounin |
November 25, 2011 09:44AM |
|
igor.goncharenko |
November 25, 2011 10:11AM |
|
Nefer |
November 25, 2011 10:30AM |
|
igor.goncharenko |
November 25, 2011 11:24AM |
|
igor.goncharenko |
November 29, 2011 09:39AM |
|
Maxim Dounin |
November 29, 2011 10:16AM |
|
igor.goncharenko |
November 29, 2011 10:48AM |
|
Maxim Dounin |
November 29, 2011 01:16PM |
|
igor.goncharenko |
November 30, 2011 03:08AM |
|
igor.goncharenko |
December 01, 2011 09:19AM |
|
Maxim Dounin |
December 01, 2011 12:14PM |
|
igor.goncharenko |
December 02, 2011 03:47AM |
|
Maxim Dounin |
December 02, 2011 05:08AM |
|
Gena Makhomed |
December 02, 2011 05:54AM |
|
Andrey Repin |
December 02, 2011 08:52AM |
|
Gena Makhomed |
December 02, 2011 10:54AM |
|
Валентин Бартенев |
December 02, 2011 11:04AM |
|
Gena Makhomed |
December 02, 2011 11:12AM |
|
Alexandr Gomoliako |
December 02, 2011 11:12AM |
|
Gena Makhomed |
December 02, 2011 11:16AM |
|
Валентин Бартенев |
December 02, 2011 11:18AM |
|
Gena Makhomed |
December 02, 2011 12:12PM |
|
Maxim Dounin |
December 02, 2011 12:52PM |
|
Alexandr Gomoliako |
December 02, 2011 01:14PM |
|
Alexandr Gomoliako |
December 02, 2011 01:16PM |
|
Gena Makhomed |
December 02, 2011 01:52PM |
|
Denis F. Latypoff |
December 02, 2011 03:02PM |
|
Alexandr Gomoliako |
December 02, 2011 03:14PM |
|
Gena Makhomed |
December 02, 2011 05:18PM |
|
Sergej Kandyla |
December 14, 2011 11:50AM |
|
Maxim Dounin |
December 14, 2011 12:06PM |
|
Sergej Kandyla |
December 14, 2011 12:40PM |
|
Denis F. Latypoff |
December 15, 2011 03:56AM |
|
Sergej Kandyla |
December 15, 2011 11:16AM |
|
igor.goncharenko |
December 14, 2011 10:19AM |
|
Maxim Dounin |
December 14, 2011 11:52AM |
|
igor.goncharenko |
December 14, 2011 02:38PM |
|
Gena Makhomed |
December 14, 2011 12:56PM |
|
Alexandr Gomoliako |
December 14, 2011 01:10PM |
|
igor.goncharenko |
December 14, 2011 02:54PM |
|
Alexandr Gomoliako |
December 14, 2011 03:40PM |
|
Andrey N. Oktyabrski |
December 15, 2011 02:38AM |
|
Alexandr Gomoliako |
December 15, 2011 02:12PM |
|
Andrey Repin |
December 16, 2011 02:52AM |
|
Илья Шипицин |
December 18, 2011 01:46PM |
|
Alexandr Gomoliako |
December 18, 2011 02:32PM |
|
Илья Шипицин |
December 18, 2011 09:40PM |
|
Gena Makhomed |
December 19, 2011 12:12PM |
|
Bdfy |
December 14, 2011 04:38PM |
|
Илья Пирогов |
December 15, 2011 02:54AM |
|
mathead |
December 22, 2011 05:07AM |
|
Валентин Бартенев |
December 24, 2011 08:16AM |