Welcome! Log In Create A New Profile

Advanced

Document the affected running phases of configuration directive?

Gena Makhomed
December 11, 2014 08:36AM
On 11.12.2014 15:07, Валентин Бартенев wrote:

>> Есть лимиты на коннекты с 1 айпи, но когда вторая нода переводит весь
>> свой трафик на первую (сбой ее апача) -- ловим этот лимит. Есть идея
>> использовать realip, но непонятно, кто сработает раньше - лимит или модуль.
>
> realip сработает раньше.
>

Почему порядок работы фаз не описан в документации? Это было бы полезно.

"Implementation detail" - это означает "implementation-defined behavior"
или "unspecified behavior" и может произвольно меняться
от версии к версии?

Это примерно то же самое, что и писать арифметические выражения,
при этом не зная какой приоритет у операторов + - / * % ^ | &
потому что это "implementation detail" используемых компиляторов.

Причем в случае nginx - "скобки" полностью отсутствуют, так что явным
образом задать приоритеты работы того или иного модуля - невозможно.

-------- Forwarded Message --------
Subject: Re: Document the affected running phases of configuration
directive?
Date: Mon, 8 Dec 2014 03:38:26 +0300
From: Maxim Dounin <mdounin@mdounin.ru>
To: nginx-devel@nginx.org

Hello!

On Fri, Dec 05, 2014 at 03:45:50PM -0800, Yichun Zhang (agentzh) wrote:

> Hello!
>
> It'll be great if the official nginx documentation documents the
> affected request running phase of each configuration directive. For
> example, proxy_pass affects the content phase while set_real_ip_from
> affects the post-read and pre-access phases. This can help a lot when
> the users try to combine directives of different modules and predict
> their relative running order. Right now we have to look into the nginx
> internals to be sure (either source code or debugging tools like gdb
> and systemtap).

Phases of processing is an implementation detail, and while
understanding them sometimes helps to understand what goes on in
some complex cases, it's not something to be exposed into the
documentation.

--
Maxim Dounin
http://nginx.org/
________________________________________________________________________

--
Best regards,
Gena

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

limits с исключениями?

denis December 11, 2014 07:12AM

Re: limits с исключениями?

Валентин Бартенев December 11, 2014 08:08AM

Document the affected running phases of configuration directive?

Gena Makhomed December 11, 2014 08:36AM

Re: Document the affected running phases of configuration directive?

Maxim Dounin December 11, 2014 09:18AM

Re: limits с исключениями?

denis December 11, 2014 09:30AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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