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
46c9dac8
Commit
46c9dac8
authored
Nov 11, 2020
by
Jialin Li
Browse files
experiments: add nopaxos switch sequencer experiment
parent
e0eb58b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
experiments/pyexps/qemu_nopaxos_swseq.py
experiments/pyexps/qemu_nopaxos_swseq.py
+25
-0
No files found.
experiments/pyexps/qemu_nopaxos_swseq.py
0 → 100644
View file @
46c9dac8
import
modes.experiments
as
exp
import
modes.simulators
as
sim
import
modes.nodeconfig
as
node
e
=
exp
.
Experiment
(
'qemu-nopaxos-swseq'
)
net
=
sim
.
NS3SequencerNet
()
e
.
add_network
(
net
)
class
NOPaxosHost
(
sim
.
QemuHost
):
disk_image
=
'nopaxos'
replicas
=
sim
.
create_basic_hosts
(
e
,
3
,
'replica'
,
net
,
sim
.
CorundumBMNIC
,
NOPaxosHost
,
node
.
CorundumLinuxNode
,
node
.
NOPaxosReplica
)
clients
=
sim
.
create_basic_hosts
(
e
,
1
,
'client'
,
net
,
sim
.
CorundumBMNIC
,
NOPaxosHost
,
node
.
CorundumLinuxNode
,
node
.
NOPaxosClient
,
ip_start
=
4
)
for
i
in
range
(
len
(
replicas
)):
replicas
[
i
].
node_config
.
app
.
index
=
i
replicas
[
i
].
sleep
=
1
for
c
in
clients
:
c
.
node_config
.
app
.
server_ips
=
[
'10.0.0.1'
,
'10.0.0.2'
,
'10.0.0.3'
]
c
.
wait
=
True
experiments
=
[
e
]
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