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

nopaxos: reduce ping from 5 to 2 times

parent 670893a5
...@@ -417,7 +417,7 @@ class VRClient(AppConfig): ...@@ -417,7 +417,7 @@ class VRClient(AppConfig):
def run_cmds(self, node): def run_cmds(self, node):
cmds = [] cmds = []
for ip in self.server_ips: for ip in self.server_ips:
cmds.append('ping -c 5 ' + ip) cmds.append('ping -c 2 ' + ip)
cmds.append('/root/nopaxos/bench/client -c /root/nopaxos.config ' + cmds.append('/root/nopaxos/bench/client -c /root/nopaxos.config ' +
'-m vr -u 2 -h ' + node.ip) '-m vr -u 2 -h ' + node.ip)
return cmds return cmds
...@@ -436,7 +436,7 @@ class NOPaxosClient(AppConfig): ...@@ -436,7 +436,7 @@ class NOPaxosClient(AppConfig):
def run_cmds(self, node): def run_cmds(self, node):
cmds = [] cmds = []
for ip in self.server_ips: for ip in self.server_ips:
cmds.append('ping -c 5 ' + ip) cmds.append('ping -c 2 ' + ip)
cmd = '/root/nopaxos/bench/client -c /root/nopaxos.config ' + \ cmd = '/root/nopaxos/bench/client -c /root/nopaxos.config ' + \
'-m nopaxos -u 2 -h ' + node.ip '-m nopaxos -u 2 -h ' + node.ip
if self.use_ehseq: if self.use_ehseq:
...@@ -564,4 +564,4 @@ class MemcachedClient(AppConfig): ...@@ -564,4 +564,4 @@ class MemcachedClient(AppConfig):
def run_cmds(self, node): def run_cmds(self, node):
servers = [ip + ':11211' for ip in self.server_ips] servers = [ip + ':11211' for ip in self.server_ips]
servers = ','.join(servers) servers = ','.join(servers)
return [f'memaslap --binary --time 10s --server={servers} --thread={self.threads} --concurrency={self.concurrency} --tps={self.throughput} --verbose'] return [f'memaslap --binary --time 10s --server={servers} --thread={self.threads} --concurrency={self.concurrency} --tps={self.throughput} --verbose']
\ No newline at end of file
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