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
73de507a
Commit
73de507a
authored
Dec 08, 2020
by
Hejing Li
Browse files
experiments: nopaxos simple fix
parent
9e5fdbe6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
experiments/pyexps/nopaxos.py
experiments/pyexps/nopaxos.py
+4
-1
No files found.
experiments/pyexps/nopaxos.py
View file @
73de507a
...
@@ -6,7 +6,7 @@ host_configs = ['qemu', 'gt']
...
@@ -6,7 +6,7 @@ host_configs = ['qemu', 'gt']
seq_configs
=
[
'swseq'
,
'ehseq'
]
seq_configs
=
[
'swseq'
,
'ehseq'
]
nic_configs
=
[
'ib'
,
'cb'
,
'cv'
]
nic_configs
=
[
'ib'
,
'cb'
,
'cv'
]
proto_configs
=
[
'vr'
,
'nopaxos'
]
proto_configs
=
[
'vr'
,
'nopaxos'
]
num_client_configs
=
[
1
,
2
,
3
,
4
]
num_client_configs
=
[
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
]
experiments
=
[]
experiments
=
[]
sync_period
=
200
sync_period
=
200
...
@@ -64,6 +64,7 @@ for proto_config in proto_configs:
...
@@ -64,6 +64,7 @@ for proto_config in proto_configs:
sequencer
[
0
].
sleep
=
1
sequencer
[
0
].
sleep
=
1
sequencer
[
0
].
node_config
.
disk_image
=
'nopaxos'
sequencer
[
0
].
node_config
.
disk_image
=
'nopaxos'
sequencer
[
0
].
nics
[
0
].
sync_period
=
sync_period
sequencer
[
0
].
nics
[
0
].
sync_period
=
sync_period
sequencer
[
0
].
sync_period
=
sync_period
replicas
=
sim
.
create_basic_hosts
(
e
,
3
,
'replica'
,
net
,
nic_class
,
replicas
=
sim
.
create_basic_hosts
(
e
,
3
,
'replica'
,
net
,
nic_class
,
host_class
,
nc_class
,
replica_class
)
host_class
,
nc_class
,
replica_class
)
...
@@ -72,6 +73,7 @@ for proto_config in proto_configs:
...
@@ -72,6 +73,7 @@ for proto_config in proto_configs:
replicas
[
i
].
sleep
=
1
replicas
[
i
].
sleep
=
1
replicas
[
i
].
node_config
.
disk_image
=
'nopaxos'
replicas
[
i
].
node_config
.
disk_image
=
'nopaxos'
replicas
[
i
].
nics
[
0
].
sync_period
=
sync_period
replicas
[
i
].
nics
[
0
].
sync_period
=
sync_period
replicas
[
i
].
sync_period
=
sync_period
clients
=
sim
.
create_basic_hosts
(
e
,
num_c
,
'client'
,
net
,
nic_class
,
clients
=
sim
.
create_basic_hosts
(
e
,
num_c
,
'client'
,
net
,
nic_class
,
host_class
,
nc_class
,
client_class
,
ip_start
=
4
)
host_class
,
nc_class
,
client_class
,
ip_start
=
4
)
...
@@ -81,6 +83,7 @@ for proto_config in proto_configs:
...
@@ -81,6 +83,7 @@ for proto_config in proto_configs:
c
.
node_config
.
app
.
server_ips
=
[
'10.0.0.1'
,
'10.0.0.2'
,
'10.0.0.3'
]
c
.
node_config
.
app
.
server_ips
=
[
'10.0.0.1'
,
'10.0.0.2'
,
'10.0.0.3'
]
c
.
node_config
.
disk_image
=
'nopaxos'
c
.
node_config
.
disk_image
=
'nopaxos'
c
.
nics
[
0
].
sync_period
=
sync_period
c
.
nics
[
0
].
sync_period
=
sync_period
c
.
sync_period
=
sync_period
clients
[
num_c
-
1
].
wait
=
True
clients
[
num_c
-
1
].
wait
=
True
clients
[
num_c
-
1
].
node_config
.
app
.
is_last
=
True
clients
[
num_c
-
1
].
node_config
.
app
.
is_last
=
True
...
...
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