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
40ee1501
"driver/vscode:/vscode.git/clone" did not exist on "899df9710af70ea2fd0c249d8b6f6f72fa972e1b"
Commit
40ee1501
authored
Sep 05, 2021
by
Jialin Li
Browse files
nopaxos: use new nopaxos repo
parent
30575677
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
20 deletions
+22
-20
experiments/pyexps/nopaxos.py
experiments/pyexps/nopaxos.py
+3
-0
experiments/simbricks/nodeconfig.py
experiments/simbricks/nodeconfig.py
+14
-10
experiments/simbricks/simulators.py
experiments/simbricks/simulators.py
+1
-1
images/nopaxos.config
images/nopaxos.config
+2
-1
images/nopaxos.json
images/nopaxos.json
+1
-7
images/scripts/install-nopaxos.sh
images/scripts/install-nopaxos.sh
+1
-1
No files found.
experiments/pyexps/nopaxos.py
View file @
40ee1501
...
...
@@ -103,6 +103,9 @@ for proto_config in proto_configs:
for
c
in
clients
:
c
.
sleep
=
5
c
.
node_config
.
app
.
server_ips
=
[
'10.0.0.1'
,
'10.0.0.2'
,
'10.0.0.3'
]
if
seq_config
==
'ehseq'
:
c
.
node_config
.
app
.
server_ips
.
append
(
'10.0.0.100'
)
c
.
node_config
.
app
.
use_ehseq
=
True
c
.
node_config
.
disk_image
=
'nopaxos'
c
.
nics
[
0
].
sync_period
=
sync_period
c
.
sync_period
=
sync_period
...
...
experiments/simbricks/nodeconfig.py
View file @
40ee1501
...
...
@@ -320,7 +320,7 @@ class IperfTCPClient(AppConfig):
is_last
=
False
def
run_cmds
(
self
,
node
):
cmds
=
[
'sleep 1'
,
'iperf -l 32M -w 32M -c '
+
self
.
server_ip
+
' -i 1 -P '
+
str
(
self
.
procs
)]
...
...
@@ -338,15 +338,15 @@ class IperfUDPClient(AppConfig):
def
run_cmds
(
self
,
node
):
cmds
=
[
'sleep 1'
,
'iperf -c '
+
self
.
server_ip
+
' -i 1 -u -b '
+
self
.
rate
]
if
self
.
is_last
:
cmds
.
append
(
'sleep 0.5'
)
else
:
cmds
.
append
(
'sleep 10'
)
return
cmds
class
IperfUDPClientSleep
(
AppConfig
):
server_ip
=
'10.0.0.1'
...
...
@@ -367,9 +367,9 @@ class NoTraffic(AppConfig):
else
:
if
(
self
.
is_sleep
):
cmds
.
append
(
'sleep 10'
)
else
:
cmds
.
append
(
'dd if=/dev/urandom of=/dev/null count=500000'
)
cmds
.
append
(
'dd if=/dev/urandom of=/dev/null count=500000'
)
return
cmds
...
...
@@ -398,7 +398,7 @@ class VRClient(AppConfig):
for
ip
in
self
.
server_ips
:
cmds
.
append
(
'ping -c 1 '
+
ip
)
cmds
.
append
(
'/root/nopaxos/bench/client -c /root/nopaxos.config '
+
'-m vr -
n
2
000'
)
'-m vr -
u
2
-h '
+
node
.
ip
)
return
cmds
class
NOPaxosReplica
(
AppConfig
):
...
...
@@ -410,13 +410,17 @@ class NOPaxosReplica(AppConfig):
class
NOPaxosClient
(
AppConfig
):
server_ips
=
[]
is_last
=
False
use_ehseq
=
False
def
run_cmds
(
self
,
node
):
cmds
=
[]
for
ip
in
self
.
server_ips
:
cmds
.
append
(
'ping -c 1 '
+
ip
)
cmds
.
append
(
'/root/nopaxos/bench/client -c /root/nopaxos.config '
+
'-m nopaxos -n 40000'
)
cmd
=
'/root/nopaxos/bench/client -c /root/nopaxos.config '
+
\
'-m nopaxos -u 2 -h '
+
node
.
ip
if
self
.
use_ehseq
:
cmd
+=
' -e'
cmds
.
append
(
cmd
)
if
self
.
is_last
:
cmds
.
append
(
'sleep 1'
)
else
:
...
...
@@ -425,7 +429,7 @@ class NOPaxosClient(AppConfig):
class
NOPaxosSequencer
(
AppConfig
):
def
run_cmds
(
self
,
node
):
return
[
'/root/nopaxos/sequencer/sequencer -c /root/
sequencer.config
'
]
return
[
'/root/nopaxos/sequencer/sequencer -c /root/
nopaxos.config -m nopaxos
'
]
class
RPCServer
(
AppConfig
):
...
...
experiments/simbricks/simulators.py
View file @
40ee1501
...
...
@@ -312,7 +312,7 @@ class NS3SequencerNet(NetSim):
elif
'replica'
in
n
.
name
:
ports
+=
'--ServerPort='
+
env
.
nic_eth_path
(
n
)
+
' '
elif
'sequencer'
in
n
.
name
:
ports
+=
'--
EndhostSequencer
Port='
+
env
.
nic_eth_path
(
n
)
+
' '
ports
+=
'--
Client
Port='
+
env
.
nic_eth_path
(
n
)
+
' '
else
:
raise
Exception
(
'Wrong NIC type'
)
cmd
=
env
.
repodir
+
'/sims/external/ns-3'
+
'/cosim-run.sh sequencer sequencer-single-switch-example '
+
ports
+
' '
+
self
.
opt
...
...
images/nopaxos.config
View file @
40ee1501
...
...
@@ -2,4 +2,5 @@ f 1
replica
10
.
0
.
0
.
1
:
12345
replica
10
.
0
.
0
.
2
:
12345
replica
10
.
0
.
0
.
3
:
12345
multicast
10
.
0
.
0
.
255
:
12345
multicast
10
.
0
.
0
.
255
:
22222
sequencer
10
.
0
.
0
.
100
:
12345
images/nopaxos.json
View file @
40ee1501
...
...
@@ -53,15 +53,9 @@
"destination"
:
"/tmp/nopaxos.config"
,
"direction"
:
"upload"
},
{
"type"
:
"file"
,
"source"
:
"sequencer.config"
,
"destination"
:
"/tmp/sequencer.config"
,
"direction"
:
"upload"
},
{
"type"
:
"shell"
,
"inline"
:
[
"sudo mv /tmp/nopaxos.config /root/nopaxos.config
; sudo mv /tmp/sequencer.config /root/sequencer.config
"
]
"inline"
:
[
"sudo mv /tmp/nopaxos.config /root/nopaxos.config"
]
}
],
"variables"
:
{
...
...
images/scripts/install-nopaxos.sh
View file @
40ee1501
...
...
@@ -9,6 +9,6 @@ make install
ldconfig
mkdir
-p
/root
git clone https://github.com/
UWSysLab/NOP
axos.git /root/nopaxos
git clone https://github.com/
nicklijl/simbricks-nop
axos.git /root/nopaxos
cd
/root/nopaxos
make
-j4
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