Increase HAproxy timeouts for neutron backend

- Introduce new deployment task that will increase server and client
  timeouts.
- Default timeout (1m) that is configured by haproxy globally for
  backends is not enough when Neutron is used with NSX plugin. For some
  actions like router and network creation it takes more that 1 minute
  to finish operation. Default value leads to 504 (Gateway timeout) that
  neutron command line client receives.

Change-Id: I03fde105a737058e312620e9eb33412902a047e7
Closes-bug: #1508971
This commit is contained in:
Igor Zinovik 2015-11-02 16:21:32 +03:00
parent 9a2d2009dc
commit 3dcdc484ee
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,11 @@
# Default haproxy timeouts are too small and neuton CLI client receive 504
# error (gateway timeout) from haproxy. We are increasing timeouts for neutron
# backend to avoid this.
$nsx_timeouts = " timeout client 600s\n timeout client-fin 30s\n timeout server 600s\n timeout server-fin 30s\n"
file_line { 'neutron-nsxv-timeouts':
path => '/etc/haproxy/conf.d/085-neutron.cfg',
after => '^listen\s+neutron$',
line => $nsx_timeouts,
}

View File

@ -25,6 +25,15 @@
puppet_manifest: puppet/manifests/haproxy-nova-metadata-config.pp
puppet_modules: puppet/modules:/etc/puppet/modules
timeout: 120
- id: haproxy-increase-neutron-timeouts
type: puppet
groups: ['primary-controller','controller']
required_for: [openstack-haproxy]
requires: [openstack-haproxy-neutron]
parameters:
puppet_manifest: puppet/manifests/haproxy-neutron-timeouts.pp
puppet_modules: puppet/modules:/etc/puppet/modules
timeout: 30
- id: nsxv-install
type: puppet
groups: ['primary-controller','controller']