From 6deee0427c3e4934291b1103328d4c3d75d56e29 Mon Sep 17 00:00:00 2001 From: Magnus Ahltorp Date: Wed, 8 Mar 2017 18:45:47 +0100 Subject: Added heartbeat service. Add source. --- tools/compileconfig.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tools/compileconfig.py') diff --git a/tools/compileconfig.py b/tools/compileconfig.py index 44db767..c2463df 100755 --- a/tools/compileconfig.py +++ b/tools/compileconfig.py @@ -372,6 +372,8 @@ def gen_config(nodename, config, localconfig): services = set() storage_sign_quorum = config.get("storage-sign-quorum-size", 0) + allnodenames = set(signingnodenames + mergenodenames + frontendnodenames + statusservernames + storagenodenames) + if "frontendnodes" in nodetype: reloadableplopconfig.append((Symbol("storage_nodes"), storagenodeaddresses)) reloadableplopconfig.append((Symbol("storage_nodes_quorum"), config["storage-quorum-size"])) @@ -445,6 +447,7 @@ def gen_config(nodename, config, localconfig): ("/plop/v1/status/merge_fetch", statusservernames), ("/plop/v1/status/storage", statusservernames), ("/plop/v1/status/merge_errors", statusservernames), + ("/plop/v1/status/heartbeat", statusservernames), ] if "statusservers" in nodetype: @@ -454,7 +457,8 @@ def gen_config(nodename, config, localconfig): ("/plop/v1/status/merge_sth", mergenodenames), ("/plop/v1/status/merge_fetch", mergenodenames), ("/plop/v1/status/merge_errors", mergenodenames), - ("/plop/v1/status/storage", list(storagenodenames)), + ("/plop/v1/status/storage", storagenodenames), + ("/plop/v1/status/heartbeat", list(allnodenames)), ("/status", Symbol("noauth")), ] -- cgit v1.1