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
This commit is contained in:
parent
ae843faa2a
commit
cf37d23770
@ -319,8 +319,13 @@ class cloud::loadbalancer(
|
|||||||
httpchk => 'httpchk GET /';
|
httpchk => 'httpchk GET /';
|
||||||
}
|
}
|
||||||
cloud::loadbalancer::binding { 'glance_api_cluster':
|
cloud::loadbalancer::binding { 'glance_api_cluster':
|
||||||
ip => $glance_api,
|
ip => $glance_api,
|
||||||
port => $ks_glance_api_public_port;
|
options => {
|
||||||
|
'balance' => 'leastconn',
|
||||||
|
'timeout server' => '120m',
|
||||||
|
'timeout client' => '120m',
|
||||||
|
},
|
||||||
|
port => $ks_glance_api_public_port;
|
||||||
}
|
}
|
||||||
cloud::loadbalancer::binding { 'glance_registry_cluster':
|
cloud::loadbalancer::binding { 'glance_registry_cluster':
|
||||||
ip => $glance_registry,
|
ip => $glance_registry,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user