Gear: bind to a specified address

Along with gear's I884e0ddcaac9c7de35b913dc967a47ee854d0a8a, this is
needed to make sure that the local Gear server listens on a correct
interface -- it should be the same one as we use for contacting it later
on.

FIXME: add a dependency on new enough Gear once it's merged & released.

Change-Id: Ia5a0d098f57dcdb3a730c43ab56e55f61127afe8
This commit is contained in:
Jan Kundrát
2014-11-20 04:43:09 +01:00
parent 7fca9c1cc6
commit 457a0c81fd

View File

@@ -119,6 +119,7 @@ class Server(zuul.cmd.ZuulApp):
statsd_host = os.environ.get('STATSD_HOST')
statsd_port = int(os.environ.get('STATSD_PORT', 8125))
gear.Server(4730,
host=self.config.get('gearman', 'server'),
statsd_host=statsd_host,
statsd_port=statsd_port,
statsd_prefix='zuul.geard')