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
b47c95cb
"symphony/git@developer.sourcefind.cn:cnjsdfcy/simbricks.git" did not exist on "242b3dd2d103bb592de38e1804f1fbde14690617"
Commit
b47c95cb
authored
Jan 25, 2022
by
Jialin Li
Browse files
nopaxos: reduce ping from 5 to 2 times
parent
670893a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
experiments/simbricks/nodeconfig.py
experiments/simbricks/nodeconfig.py
+3
-3
No files found.
experiments/simbricks/nodeconfig.py
View file @
b47c95cb
...
...
@@ -417,7 +417,7 @@ class VRClient(AppConfig):
def
run_cmds
(
self
,
node
):
cmds
=
[]
for
ip
in
self
.
server_ips
:
cmds
.
append
(
'ping -c
5
'
+
ip
)
cmds
.
append
(
'ping -c
2
'
+
ip
)
cmds
.
append
(
'/root/nopaxos/bench/client -c /root/nopaxos.config '
+
'-m vr -u 2 -h '
+
node
.
ip
)
return
cmds
...
...
@@ -436,7 +436,7 @@ class NOPaxosClient(AppConfig):
def
run_cmds
(
self
,
node
):
cmds
=
[]
for
ip
in
self
.
server_ips
:
cmds
.
append
(
'ping -c
5
'
+
ip
)
cmds
.
append
(
'ping -c
2
'
+
ip
)
cmd
=
'/root/nopaxos/bench/client -c /root/nopaxos.config '
+
\
'-m nopaxos -u 2 -h '
+
node
.
ip
if
self
.
use_ehseq
:
...
...
@@ -564,4 +564,4 @@ class MemcachedClient(AppConfig):
def
run_cmds
(
self
,
node
):
servers
=
[
ip
+
':11211'
for
ip
in
self
.
server_ips
]
servers
=
','
.
join
(
servers
)
return
[
f
'memaslap --binary --time 10s --server=
{
servers
}
--thread=
{
self
.
threads
}
--concurrency=
{
self
.
concurrency
}
--tps=
{
self
.
throughput
}
--verbose'
]
\ No newline at end of file
return
[
f
'memaslap --binary --time 10s --server=
{
servers
}
--thread=
{
self
.
threads
}
--concurrency=
{
self
.
concurrency
}
--tps=
{
self
.
throughput
}
--verbose'
]
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