Commit e49bb80e authored by Antoine Kaufmann's avatar Antoine Kaufmann
Browse files

experiments: use multinic for dist_memcached

parent 7f5335f1
...@@ -97,22 +97,22 @@ for host_type in host_types: ...@@ -97,22 +97,22 @@ for host_type in host_types:
# create servers and clients # create servers and clients
m = int(n_host / 2) m = int(n_host / 2)
servers = sim.create_basic_hosts(e, m, 'server_%d' % (i,), servers = sim.create_multinic_hosts(e, m, 'server_%d' % (i,),
switch, sim.I40eNIC, host_class, node.I40eLinuxNode, switch, host_class, node.I40eLinuxNode,
node.MemcachedServer, ip_start = i * n_host + 1, node.MemcachedServer, ip_start = i * n_host + 1,
ip_prefix=16) ip_prefix=16)
for s in servers: for s in servers:
e.assign_sim_host(s, h_i) e.assign_sim_host(s, h_i)
e.assign_sim_host(s.nics[0], h_i) e.assign_sim_host(s.nics[0].multinic, h_i)
clients = sim.create_basic_hosts(e, m, 'client_%d' % (i,), clients = sim.create_multinic_hosts(e, m, 'client_%d' % (i,),
switch, sim.I40eNIC, host_class, node.I40eLinuxNode, switch, host_class, node.I40eLinuxNode,
node.MemcachedClient, ip_start = i * n_host + 1 + m, node.MemcachedClient, ip_start = i * n_host + 1 + m,
ip_prefix=16) ip_prefix=16)
for c in clients: for c in clients:
c.wait = True c.wait = True
e.assign_sim_host(c, h_i) e.assign_sim_host(c, h_i)
e.assign_sim_host(c.nics[0], h_i) e.assign_sim_host(c.nics[0].multinic, h_i)
racks.append((servers, clients)) racks.append((servers, clients))
......
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