Welcome! Log In Create A New Profile

Advanced

Re: HttpUpstreamModule: Need more detailed Information

Maxim Dounin
August 10, 2012 09:46AM
Hello!

On Fri, Aug 10, 2012 at 01:36:46PM +0200, Axel wrote:

> Hello all,
>
> i'm new to nginx and first of all i have to say it's a great piece
> of software.
>
> I need some more detailed Information about nginx behaviour
> regarding HttpUpstreamModule and I hope you can give me some hints
> and links where i can learn more about it.
> I set up nginx/1.2.2 as reverse proxy in front of a bunch of apache
> server(*) which are located in different housing locations.
>
> Now I have some questions and I can't find any docs or wiki pages
> with detailed answers.
>
> - how does nginx detect if one ore more upstream servers has diappeared?
> - what kind of mechanism does nginx use? icmp or something else?

It detects based on status of requests to upstream servers. If
requests fail - the server is considered down and additional
requests aren't routed to it for some time.

http://nginx.org/en/docs/http/ngx_http_upstream_module.html#server

> - how often does nginx request the status of upstream servers?

For alive servers - as often as normal requests are routed to the
servers. For servers already considered down - once per
fail_timeout (per worker, see below).

> - how can I monitor the status of upstream server seen by nginx (I
> monitor the status of running apache prcesses on the upstream server
> separately)

Currently, there is no way. Moreover, each nginx worker process
has it's own idea about status of upstream servers.

Maxim Dounin

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

HttpUpstreamModule: Need more detailed Information

Axel August 10, 2012 07:38AM

Re: HttpUpstreamModule: Need more detailed Information

Maxim Dounin August 10, 2012 09:46AM

Re: HttpUpstreamModule: Need more detailed Information

Axel August 13, 2012 02:26AM

Re: HttpUpstreamModule: Need more detailed Information

姚伟斌 August 12, 2012 10:44PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 109
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready