Re: Error 504

From: Willy Tarreau <w#1wt.eu>
Date: Sun, 11 Sep 2011 00:12:11 +0200


Hi Christophe,

On Thu, Sep 08, 2011 at 06:54:29AM -0700, Christophe Rahier wrote:
> Yes ...
>
> Is it possible to improve my config?

Well, your config already allows a server to take as much as 50 seconds to respond, and still some requests don't respond within this delay. This is really huge and probably nobody will wait that long anyway. It's absolutely required to fix the application. You could make use of halog to report the slowest URLs :

  halog -ua < log-file | less

The format is a bit raw but you'll get the URLs sorted by average response time. Quite often when people encounter 504, it only happens on a very small set of URLs, sometimes even only one. Most often this is due to poorly written SQL queries which take ages to complete, but any number of causes is possible of course.

Regards,
Willy Received on 2011/09/11 00:12

This archive was generated by hypermail 2.2.0 : 2011/09/11 00:15 CEST