summaryrefslogtreecommitdiff
path: root/tools/compileconfig.py
diff options
context:
space:
mode:
authorMagnus Ahltorp <map@kth.se>2017-03-08 18:45:47 +0100
committerLinus Nordberg <linus@nordu.net>2017-03-15 17:45:32 +0100
commit6deee0427c3e4934291b1103328d4c3d75d56e29 (patch)
tree7f56ec8cd9bce774426f2c769b6cd5c931ce1aaf /tools/compileconfig.py
parent8e4cd93fd1ab8fa148256633f3eb261a5bd1d311 (diff)
Added heartbeat service. Add source.
Diffstat (limited to 'tools/compileconfig.py')
-rwxr-xr-xtools/compileconfig.py6
1 files changed, 5 insertions, 1 deletions
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")),
]