[Buildbot-devel] 504 timeouts & slow responses with nginx proxy

Edward Armes edward.armes at gmail.com
Thu Apr 9 23:14:55 UTC 2015


Hi Vitali,

If you are not aware a 504 means Gateway Timeout Error. This means that 
you nginx server is not getting a response in time from the BuildBot 
server itself.

Why this happens however could be for multiple reasons including:-

  * The buildbot server is taken too long to respond
  * The response/request got lost in the network
  * The nginx server didn't finish processing the proxy result before
    forwarding it on and dropped the request (unlikely).

I would suspect it's the first one as I've noticed if the buildbot 
master is busy handling requests it can sometimes take a while to serve 
a page when it's loading a page with a lot of dynamic data (i.e. 
waterfall view).

A simple fix might be for while the web status is building the response 
it might be an idea to send a 202 code back if the request takes a long 
time (to delay the 504 timeout), or (if this is possible) to increase 
the wait time for proxy directive from within nginx.

Hope that helps

Edward

On 09/04/2015 23:16, Vitali Lovich wrote:
> Hi,
>
> I’m wondering if anyone has had any experience with nginx sitting as a proxy server in front of buildbot.
> I’m getting random 504 timeouts which I *think* are something to do with nginx as opposed to buildbot itself,
> but I’m not sure how to confirm/triage this issue.
>
> Any tips would be great.
>
> My nginx configuration just sets proxy_pass to the buildbot instance.
> proxy_buffering is off & gzip proxying is on.
>
> Thanks,
> Vitali
> ------------------------------------------------------------------------------
> BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
> Develop your own process in accordance with the BPMN 2 standard
> Learn Process modeling best practices with Bonita BPM through live exercises
> http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
> source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20150410/6e31528b/attachment.html>


More information about the devel mailing list