aboutsummaryrefslogtreecommitdiff
path: root/rumba/model.py
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@ugent.be>2017-06-07 11:27:22 +0200
committerSander Vrijders <sander.vrijders@ugent.be>2017-06-07 11:27:22 +0200
commitdcb7c8743244b4010db159d7d8d794278a792b17 (patch)
tree746c6ab2fe8e7b4b40a7a8474c8a5ca46660f532 /rumba/model.py
parentdb18f01116739a2854c4305a7ad72da8c56d446d (diff)
downloadrumba-dcb7c8743244b4010db159d7d8d794278a792b17.tar.gz
rumba-dcb7c8743244b4010db159d7d8d794278a792b17.zip
tools: Update access script to use proxy
The proxy command was not added to the file generated with ssh info. This adds it, and changes the access script to use it if it is there.
Diffstat (limited to 'rumba/model.py')
-rw-r--r--rumba/model.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/rumba/model.py b/rumba/model.py
index 941cba8..d1b9988 100644
--- a/rumba/model.py
+++ b/rumba/model.py
@@ -523,8 +523,11 @@ class Experiment:
def dump_ssh_info(self):
f = open('ssh_info', 'w')
for node in self.nodes:
- f.write("%s %s %s %s\n" % (node.name, self.testbed.username,
- node.ssh_config.hostname, node.ssh_config.port))
+ f.write("%s;%s;%s;%s;%s\n" % (node.name,
+ self.testbed.username,
+ node.ssh_config.hostname,
+ node.ssh_config.port,
+ node.ssh_config.proxycommand))
f.close()
# Examine the nodes and DIFs, compute the registration and enrollment
@@ -642,7 +645,7 @@ class Server:
def get_new_clients(self, interval):
"""
Returns a list of clients of size appropriate to the server's rate.
-
+
The list's size should be a sample from Poisson(arrival_rate) over
interval seconds.
Hence, the average size should be interval * arrival_rate.