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
352af629
Commit
352af629
authored
Sep 18, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
4c9d5755
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
3 deletions
+56
-3
go/neo/t/neotest
go/neo/t/neotest
+56
-3
No files found.
go/neo/t/neotest
View file @
352af629
...
@@ -89,12 +89,14 @@ on() {
...
@@ -89,12 +89,14 @@ on() {
host
=
`
echo
$1
|sed
-e
's/:[^:]*$//'
`
# user@host
host
=
`
echo
$1
|sed
-e
's/:[^:]*$//'
`
# user@host
path
=
${
1
:
$((${#
host
}
+
1
))}
# path
path
=
${
1
:
$((${#
host
}
+
1
))}
# path
test
-z
"
$host
"
-o
-z
"
$path
"
&&
die
"on
$1
: invalid URL"
test
-z
"
$host
"
-o
-z
"
$path
"
&&
die
"on
$1
: invalid URL"
ssh
$host
bash
-c
"test -e
$path
/deployed || echo 1>&2
\"
$url
not yet deployed
\"
; exit 1
shift
ssh
$host
"bash -c
\"
test -e
$path
/deployed || { echo 1>&2 '
$url
not yet deployed'; exit 1; }
cd
$path
cd
$path
. env.sh
. env.sh
set -x
cd src/lab.nexedi.com/kirr/neo/go/neo/t
cd src/lab.nexedi.com/kirr/neo/go/neo/t
$@
$@
"
\"
"
}
}
# ----------------------------------------
# ----------------------------------------
...
@@ -491,18 +493,63 @@ cmd_bench_cluster() {
...
@@ -491,18 +493,63 @@ cmd_bench_cluster() {
header
header
gen_data
gen_data
on
$url
./neotest info-local
echo
-e
"
\n
*** ZEO"
echo
-e
"
\n
*** ZEO"
Zpy
$fs1
/data.fs
Zpy
$fs1
/data.fs
on
$url
./neotest run-client zeo://
$Zbind
on
$url
./neotest run-client zeo://
$Zbind
killall runzeo
killall runzeo
wait
wait
echo
-e
"
\n
*** NEO/py sqlite"
NEOpylite
on
$url
./neotest run-client neo://
$cluster
@
$Mbind
xneoctl
set
cluster stopping
wait
echo
-e
"
\n
*** NEO/py sql"
NEOpysql
on
$url
./neotest run-client neo://
$cluster
@
$Mbind
xneoctl
set
cluster stopping
xmysql
-e
"SHUTDOWN"
wait
echo
-e
"
\n
*** NEO/go"
NEOgo
on
$url
./neotest run-client neo://
$cluster
@
$Mbind
xneoctl
set
cluster stopping
wait
echo
-e
"
\n
*** NEO/go (sha1 disabled)"
X_NEOGO_SHA1_SKIP
=
y NEOgo
on
$url
X_NEOGO_SHA1_SKIP
=
y ./neotest run-client-go
--goonly
neo://
$cluster
@
$Mbind
xneoctl
set
cluster stopping
wait
# all ok
trap
- EXIT
exit
}
}
# command: run client workload against sepearate server
# command: run client workload against sepearate server
cmd_run_client
()
{
cmd_run_client
()
{
goonly
=
""
case
"
$1
"
in
--goonly
)
goonly
=
y
shift
;;
esac
url
=
$1
url
=
$1
test
-z
"
$url
"
&&
die
"Usage: neotest run-client <url>"
test
-z
"
$url
"
&&
die
"Usage: neotest run-client <url>"
bench
$url
test
-z
"
$goonly
"
&&
bench
$url
||
bench_go
$url
}
# command: print information about local node
cmd_info_local
()
{
header
}
}
# ---- main driver ----
# ---- main driver ----
...
@@ -519,10 +566,13 @@ The commands are:
...
@@ -519,10 +566,13 @@ The commands are:
bench-local run benchmarks when client and server are both on the same localhost
bench-local run benchmarks when client and server are both on the same localhost
bench-cluster run benchmarks when server is local and client is on another node
bench-cluster run benchmarks when server is local and client is on another node
run-client run client benchmarks against separate server
run-client run client benchmarks against separate server
deploy deploy NEO & needed software for tests to remote host
deploy deploy NEO & needed software for tests to remote host
deploy-local deploy NEO & needed software for tests locally
deploy-local deploy NEO & needed software for tests locally
info-local print information about local deployment
EOF
EOF
}
}
...
@@ -542,6 +592,9 @@ bench-cluster)
...
@@ -542,6 +592,9 @@ bench-cluster)
cmd_bench_cluster
"
$@
"
cmd_bench_cluster
"
$@
"
;;
;;
info-local
)
shift
cmd_info_local
"
$@
"
-h
)
-h
)
usage
usage
...
...
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