"...composable_kernel_rocm.git" did not exist on "3cff34042385ee7dadf9252fc667b1285d4cee38"
Commit 7e34df2f authored by Antoine Kaufmann's avatar Antoine Kaufmann
Browse files

experiments: add rpc server and client components

parent d1ebd7a0
...@@ -227,3 +227,39 @@ class NOPaxosClient(AppConfig): ...@@ -227,3 +227,39 @@ class NOPaxosClient(AppConfig):
class NOPaxosSequencer(AppConfig): class NOPaxosSequencer(AppConfig):
def run_cmds(self, node): def run_cmds(self, node):
return ['/root/nopaxos/sequencer/sequencer -c /root/sequencer.config'] return ['/root/nopaxos/sequencer/sequencer -c /root/sequencer.config']
class RPCServer(AppConfig):
port = 1234
threads = 1
max_flows = 1234
max_bytes = 1024
def run_cmds(self, node):
exe = 'echoserver_linux' if not isinstance(node, MtcpNode) else \
'echoserver_mtcp'
return ['cd /root/tasbench/micro_rpc',
'./%s %d %d /tmp/guest/mtcp.conf %d %d' % (exe, self.port,
self.threads, self.max_flows, self.max_bytes)]
class RPCClient(AppConfig):
server_ip = '10.0.0.1'
port = 1234
threads = 1
max_flows = 128
max_bytes = 1024
max_pending = 1
openall_delay = 2
max_msgs_conn = 0
max_pend_conns = 8
time = 25
def run_cmds(self, node):
exe = 'testclient_linux' if not isinstance(node, MtcpNode) else \
'testclient_mtcp'
return ['cd /root/tasbench/micro_rpc',
'./%s %s %d %d /tmp/guest/mtcp.conf %d %d %d %d %d %d &' % (exe,
self.server_ip, self.port, self.threads, self.max_bytes,
self.max_pending, self.max_flows, self.openall_delay,
self.max_msgs_conn, self.max_pend_conns),
'sleep %d' % (self.time)]
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