Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
e49bb80e
Commit
e49bb80e
authored
Sep 02, 2021
by
Antoine Kaufmann
Browse files
experiments: use multinic for dist_memcached
parent
7f5335f1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
experiments/pyexps/dist_memcache.py
experiments/pyexps/dist_memcache.py
+6
-6
No files found.
experiments/pyexps/dist_memcache.py
View file @
e49bb80e
...
@@ -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_
bas
ic_hosts
(
e
,
m
,
'server_%d'
%
(
i
,),
servers
=
sim
.
create_
multin
ic_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_
bas
ic_hosts
(
e
,
m
,
'client_%d'
%
(
i
,),
clients
=
sim
.
create_
multin
ic_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
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment