From cf37d2377079f33460b982897a7ce34cb3df2c5c Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Mon, 9 Jun 2014 19:15:43 +0200 Subject: [PATCH] Change HAproxy for Glance API service When uploading a big image (usually a RAW), the upload fails to happen because of HAproxy timeout. We need to change the HAproxy configuration to use another mode and also increase the timeout to 2 hours (should be enough for regular images). Closes-bug #503 --- manifests/loadbalancer.pp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/manifests/loadbalancer.pp b/manifests/loadbalancer.pp index 735ccee1..82c1ff5a 100644 --- a/manifests/loadbalancer.pp +++ b/manifests/loadbalancer.pp @@ -319,8 +319,13 @@ class cloud::loadbalancer( httpchk => 'httpchk GET /'; } cloud::loadbalancer::binding { 'glance_api_cluster': - ip => $glance_api, - port => $ks_glance_api_public_port; + ip => $glance_api, + options => { + 'balance' => 'leastconn', + 'timeout server' => '120m', + 'timeout client' => '120m', + }, + port => $ks_glance_api_public_port; } cloud::loadbalancer::binding { 'glance_registry_cluster': ip => $glance_registry,