summaryrefslogtreecommitdiff
path: root/tools/compileconfig.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/compileconfig.py')
-rwxr-xr-xtools/compileconfig.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/compileconfig.py b/tools/compileconfig.py
index b4e4e46..e233cc7 100755
--- a/tools/compileconfig.py
+++ b/tools/compileconfig.py
@@ -369,6 +369,7 @@ def gen_config(nodename, config, localconfig):
frontendnodeaddresses = ["https://%s/plop/v1/frontend/" % node["address"] for node in config["frontendnodes"]]
statusservernames = [node["name"] for node in config["statusservers"]]
statusserveraddresses = ["https://%s/plop/v1/status/" % node["address"] for node in config["statusservers"]]
+ benchserveraddresses = ["https://%s/plop/v1/bench/" % node["address"] for node in config["statusservers"]]
allowed_clients = []
allowed_servers = []
@@ -444,6 +445,7 @@ def gen_config(nodename, config, localconfig):
]
reloadableplopconfig.append((Symbol("statusservers"), statusserveraddresses))
+ reloadableplopconfig.append((Symbol("benchservers"), benchserveraddresses))
allowed_servers += [
("/plop/v1/status/merge_dist", statusservernames),
("/plop/v1/status/merge_backup", statusservernames),
@@ -452,6 +454,10 @@ def gen_config(nodename, config, localconfig):
("/plop/v1/status/storage", statusservernames),
("/plop/v1/status/merge_errors", statusservernames),
("/plop/v1/status/heartbeat", statusservernames),
+ ("/plop/v1/bench/merge_dist", statusservernames),
+ ("/plop/v1/bench/merge_backup", statusservernames),
+ ("/plop/v1/bench/merge_sth", statusservernames),
+ ("/plop/v1/bench/merge_fetch", statusservernames),
]
if "statusservers" in nodetype:
@@ -463,7 +469,12 @@ def gen_config(nodename, config, localconfig):
("/plop/v1/status/merge_errors", mergenodenames),
("/plop/v1/status/storage", storagenodenames),
("/plop/v1/status/heartbeat", list(allnodenames)),
+ ("/plop/v1/bench/merge_dist", mergenodenames),
+ ("/plop/v1/bench/merge_backup", mergenodenames),
+ ("/plop/v1/bench/merge_sth", mergenodenames),
+ ("/plop/v1/bench/merge_fetch", mergenodenames),
("/status", Symbol("noauth")),
+ ("/bench", Symbol("noauth")),
]
reloadableplopconfig += [