summaryrefslogtreecommitdiff
path: root/tools/compileconfig.py
diff options
context:
space:
mode:
authorMagnus Ahltorp <map@kth.se>2017-03-17 00:58:54 +0100
committerMagnus Ahltorp <map@kth.se>2017-03-17 14:45:56 +0100
commit8fb19e1dd19998b7e5b2cff9031eaf52dac46b51 (patch)
tree404a493eb094747dddcdd414f05e53b30da43b5b /tools/compileconfig.py
parentabe1da31a293c2765b4bb3fca42a08cdf336fcc7 (diff)
Added benchmark reporting.
Change timing_point to time.time interface.
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 += [