Welcome! Log In Create A New Profile

Advanced

Re: fastcgi_connect_timeout

Maxim Dounin
October 05, 2009 11:20AM
Hello!

On Sat, Oct 03, 2009 at 05:19:04PM -0400, Davy Campano wrote:

> Does anyone what the defaults are for fastcgi_connect_timeout and how it
> works? It seems like at first when one of my upstream backends was down,
> that it waited 10-11 seconds before trying an alternate, but then after a
> few failures it started only waiting 3 seconds to try the alternate.

fastcgi_connect_timeout defaults to 60 seconds

It works exactly as other timeouts do - it's armed on connect
start, and fires after specified time.

Change in timings "after a few failures" likely to be caused by
max_fails / fail_timeout, see

http://wiki.nginx.org/NginxHttpUpstreamModule#server

for details.

Exact numbers you specify seems to be unrelated to timeouts
though. It's likely to be caused by overloaded backends instead.
For pure timeouts you should see something like 60 seconds before
max_fails reached, and 0 seconds after.

Maxim Dounin
Subject Author Posted

fastcgi_connect_timeout

dcampano October 03, 2009 05:28PM

Re: fastcgi_connect_timeout

Maxim Dounin October 05, 2009 11:20AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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