Set more aggressive keepalive timings

We want to customize the default kernel keepalive timings and
make them more aggressive to workaround lack of hearbeat support
in the Oslo RabbitMQ client, see:

https://bugs.launchpad.net/oslo.messaging/+bug/856764/comments/19
and
https://bugs.launchpad.net/oslo.messaging/+bug/856764/comments/70

Change-Id: Ieac08f595086acb8dd336e33efc705ee0b8a3a87
Closes-Bug: 1301431
Closes-Bug: 1385240
Closes-Bug: 1385234
This commit is contained in:
Giulio Fidente 2014-12-17 19:06:28 +01:00
parent f0ba1a6324
commit 2f7f4ed50c
2 changed files with 8 additions and 0 deletions

View File

@ -929,6 +929,10 @@ resources:
- Merge::Map:
controller0:
{get_attr: [controller0, name]}
sysctl:
net.ipv4.tcp_keepalive_time: 5
net.ipv4.tcp_keepalive_probes: 5
net.ipv4.tcp_keepalive_intvl: 1
controller0SSLDeployment:
type: OS::Heat::StructuredDeployment
properties:

View File

@ -658,6 +658,10 @@ resources:
list_join:
- ','
- {get_attr: [Controller, hostname]}
sysctl:
net.ipv4.tcp_keepalive_time: 5
net.ipv4.tcp_keepalive_probes: 5
net.ipv4.tcp_keepalive_intvl: 1
MysqlRootPassword:
type: OS::Heat::RandomString