Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
67fc3440
Commit
67fc3440
authored
Sep 19, 2017
by
Kirill Smelkov
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
X show small (56B) and full-packet (1472B) ping link latencies
parent
090f4ac7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
go/neo/t/neotest
go/neo/t/neotest
+9
-5
No files found.
go/neo/t/neotest
View file @
67fc3440
...
@@ -498,12 +498,16 @@ cmd_bench_cluster() {
...
@@ -498,12 +498,16 @@ cmd_bench_cluster() {
echo
-e
"
\n
# client:"
echo
-e
"
\n
# client:"
on
$url
./neotest info-local
on
$url
./neotest info-local
echo
-e
"
\n
#
link latency:"
echo
-e
"
\n
***
link latency:"
peer
=
`
python
-c
"import urlparse as p; u=p.urlparse(
\"
scheme://
$url
\"
); print u.hostname"
`
peer
=
`
python
-c
"import urlparse as p; u=p.urlparse(
\"
scheme://
$url
\"
); print u.hostname"
`
echo
-e
"#
`
hostname
`
⇄
$peer
"
sizev
=
"56 1472"
sudo
-n
ping
-i0
-w
3
-q
$peer
||
echo
"# skipped -> enable ping in sudo for
`
whoami
`
@
`
hostname
`
"
for
size
in
$sizev
;
do
echo
-e
"
\n
#
$peer
⇄
`
hostname
`
"
echo
-e
"
\n
#
`
hostname
`
⇄
$peer
(
${
size
}
B)"
on
$url
"sudo -n ping -i0 -w3 -q
\$
(echo
\$
{SSH_CONNECTION%% *}) || echo
\\\"
# skipped -> enable ping in sudo for
\`
whoami
\`
@
\`
hostname
\`\\\"
"
sudo
-n
ping
-i0
-w
3
-s
$size
-q
$peer
||
echo
"# skipped -> enable ping in sudo for
`
whoami
`
@
`
hostname
`
"
echo
-e
"
\n
#
$peer
⇄
`
hostname
`
(
${
size
}
B)"
on
$url
"sudo -n ping -i0 -w3 -s
${
size
}
-q
\$
(echo
\$
{SSH_CONNECTION%% *}) || echo
\\\"
# skipped -> enable ping in sudo for
\`
whoami
\`
@
\`
hostname
\`\\\"
"
done
echo
echo
install_trap
install_trap
...
...
Kirill Smelkov
@kirr
mentioned in commit
26006d7e
·
Jul 12, 2018
mentioned in commit
26006d7e
mentioned in commit 26006d7ece004407f1f255316b5ac355cf3473fb
Toggle commit list
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