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
bcab861c
Commit
bcab861c
authored
Sep 18, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
334ba1ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
go/neo/t/neotest
go/neo/t/neotest
+9
-10
No files found.
go/neo/t/neotest
View file @
bcab861c
...
...
@@ -490,19 +490,18 @@ cmd_bench_cluster() {
url
=
$1
test
-z
"
$url
"
&&
die
"Usage: neotest bench-cluster [user@]<host>:<path>"
#
echo -e ">>> bench-cluster $url"
#
echo -e "\n# server:"
#
header
#
echo -e "\n# client:"
#
on $url ./neotest info-local
echo
-e
">>> bench-cluster
$url
"
echo
-e
"
\n
# server:"
header
echo
-e
"
\n
# client:"
on
$url
./neotest info-local
echo
-e
"
\n
# link latency:"
peer
=
`
python
-c
"import urlparse as p; u=p.urlparse(
\"
scheme://
$url
\"
); print u.hostname"
`
echo
"#
`
hostname
`
⇄
$peer
"
ping
-i200
-w
3
-q
$peer
# XXX 200 -> 0
echo
"#
$peer
⇄
`
hostname
`
"
on
$url
"ping -i200 -w3 -q
\$
(echo
\$
{SSH_CONNECTION%% *})"
# XXX 200 -> 0
return
echo
-e
"#
`
hostname
`
⇄
$peer
"
sudo
-n
ping
-i0
-w
3
-q
$peer
||
echo
"# skipped -> enable ping in sudo for
`
whoami
`
@
`
hostname
`
"
echo
-e
"
\n
#
$peer
⇄
`
hostname
`
"
on
$url
"sudo -n ping -i0 -w3 -q
\$
(echo
\$
{SSH_CONNECTION%% *}) || echo
\\\"
# skipped -> enable ping in sudo for
\`
whoami
\`
@
\`
hostname
\`\\\"
"
echo
install_trap
...
...
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