Commit ce47eac6 authored by Jialin Li's avatar Jialin Li
Browse files

experiments: nopaxos clients ping replicas first

parent 7a3a92f2
...@@ -209,6 +209,11 @@ class NOPaxosReplica(AppConfig): ...@@ -209,6 +209,11 @@ class NOPaxosReplica(AppConfig):
str(self.index) + ' -m nopaxos'] str(self.index) + ' -m nopaxos']
class NOPaxosClient(AppConfig): class NOPaxosClient(AppConfig):
server_ips = []
def run_cmds(self, node): def run_cmds(self, node):
return ['/root/nopaxos/bench/client -c /root/nopaxos.config ' + cmds = []
'-m nopaxos -n 2000'] for ip in self.server_ips:
cmds.append('ping -c 1 ' + ip)
cmds.append('/root/nopaxos/bench/client -c /root/nopaxos.config ' +
'-m nopaxos -n 2000')
return cmds
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment