[Kimchi-devel] [PATCH] Increasing nginx proxy timeout

Yu Xin Huo huoyuxin at linux.vnet.ibm.com
Wed Aug 6 10:45:30 UTC 2014


Please also update cherrypy timeout.

On 8/5/2014 10:27 PM, Daniel Henrique Barboza wrote:
> The 60 seconds nginx timeout is creating some issues with actions
> that takes some time to complete, like creating a VM with a NFS
> template. After 60 seconds without a backend answer, the user is
> presented with a 504 Gateway Timeout error.
>
> This patch increases the timeout to 600 seconds, 10 minutes. This is
> enough time to process all the backend requests and ensure that a
> 504 error will only occur in a legitimate error in the backend.
>
> Signed-off-by: Daniel Henrique Barboza <danielhb at linux.vnet.ibm.com>
> ---
>   src/nginx.conf.in | 7 +++++++
>   1 file changed, 7 insertions(+)
>
> diff --git a/src/nginx.conf.in b/src/nginx.conf.in
> index 3a8dfc5..1d1a398 100644
> --- a/src/nginx.conf.in
> +++ b/src/nginx.conf.in
> @@ -38,6 +38,13 @@ http {
>       access_log  /var/log/nginx/access.log  main;
>       sendfile    on;
>
> +    # Timeout set to 10 minutes to avoid the 504 Gateway Timeout
> +    # when Kimchi is processing a request.
> +    proxy_connect_timeout       600;
> +    proxy_send_timeout          600;
> +    proxy_read_timeout          600;
> +    send_timeout                600;
> +
>       server {
>           listen $proxy_ssl_port ssl;
>





More information about the Kimchi-devel mailing list