Tell geard to use keepalives

This should start sending keepalives after the connection has been
open for 5 minutes, and should detect a failed connection after
5 minutes.

Change-Id: I5c30a9ab20551b276d195b83939b3a9b71c2c944
This commit is contained in:
James E. Blair
2017-01-25 07:49:38 -08:00
parent 7b7a9231b5
commit ea267a9279

View File

@@ -95,7 +95,11 @@ class Scheduler(zuul.cmd.ZuulDaemonApp):
host=host,
statsd_host=statsd_host,
statsd_port=statsd_port,
statsd_prefix=statsd_prefix)
statsd_prefix=statsd_prefix,
keepalive=True,
tcp_keepidle=300,
tcp_keepintvl=60,
tcp_keepcnt=5)
# Keep running until the parent dies:
pipe_read = os.fdopen(pipe_read)