diff --git a/governor.py b/governor.py index 7e62ff8b..825b4e3b 100755 --- a/governor.py +++ b/governor.py @@ -86,7 +86,8 @@ def main(): governor = Governor(config) try: governor.initialize() - RestApiServer(governor).start() + host, port = config['restapi']['listen'].split(':') + RestApiServer(governor, host, port).start() governor.run() finally: governor.touch_member(300) # schedule member removal diff --git a/postgres0.yml b/postgres0.yml index 5f4262f9..3f4b4761 100644 --- a/postgres0.yml +++ b/postgres0.yml @@ -1,4 +1,6 @@ loop_wait: 10 +restapi: + listen: 127.0.0.1:8008 etcd: scope: batman ttl: 30 diff --git a/postgres1.yml b/postgres1.yml index 31a5dca3..c2d4ce29 100644 --- a/postgres1.yml +++ b/postgres1.yml @@ -1,4 +1,6 @@ loop_wait: 10 +restapi: + listen: 127.0.0.1:8009 etcd: scope: batman ttl: 30