Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
neoppod
Commits
28ec1756
Commit
28ec1756
authored
Sep 04, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
b499a553
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
63 additions
and
8 deletions
+63
-8
go/NOTES
go/NOTES
+1
-0
go/neo/connection.go
go/neo/connection.go
+1
-1
go/neo/t/.gitignore
go/neo/t/.gitignore
+1
-0
go/neo/t/t.sh
go/neo/t/t.sh
+60
-7
No files found.
go/NOTES
View file @
28ec1756
...
...
@@ -372,6 +372,7 @@ Tables
.value str
(name, nid, partitions, ptid, replicas, version, zodb=pickle...)
# partition table
- pt
.rid int // = row id = part of oid space
.nid int
...
...
go/neo/connection.go
View file @
28ec1756
...
...
@@ -742,7 +742,7 @@ func (nl *NodeLink) serveSend() {
// ---- raw IO ----
const
dumpio
=
tru
e
const
dumpio
=
fals
e
// sendPkt sends raw packet to peer
// tx error, if any, is returned as is and is analyzed in serveSend
...
...
go/neo/t/.gitignore
View file @
28ec1756
/log
/var
go/neo/t/t.sh
View file @
28ec1756
...
...
@@ -5,34 +5,43 @@
Abind
=
127.0.0.1:5551
Mbind
=
127.0.0.1:5552
Sbind
=
127.0.0.1:5553
Zbind
=
127.0.0.1:5554
# cluster name
cluster
=
pygotest
# logs
log
dir
=
`
pwd
`
/log
mkdir
-p
$log
dir
log
=
`
pwd
`
/log
mkdir
-p
$log
# M{py,go}
# spawn master
Mpy
()
{
# XXX --autostart=1 ?
exec
-a
Mpy
\
neomaster
--cluster
=
$cluster
--bind
=
$Mbind
--masters
=
$Mbind
-r
1
-p
1
--logfile
=
$log
dir
/Mpy.log
&
neomaster
--cluster
=
$cluster
--bind
=
$Mbind
--masters
=
$Mbind
-r
1
-p
1
--logfile
=
$log
/Mpy.log
$@
&
}
Mgo
()
{
exec
-a
Mgo
\
neo
--log_dir
=
$log
dir
master
-cluster
=
$cluster
-bind
=
$Mbind
neo
--log_dir
=
$log
master
-cluster
=
$cluster
-bind
=
$Mbind
}
# TODO Spy
# Spy ...
# spawn storage
Spy
()
{
# --adapter=...
# --database=...
# --engine=...
exec
-a
Spy
\
neostorage
--cluster
=
$cluster
--bind
=
$Sbind
--masters
=
$Mbind
&
}
# Sgo <data>
# Sgo <data
.fs
>
# spawn storage
Sgo
()
{
exec
-a
Sgo
\
neo
-log_dir
=
$log
dir
-alsologtostderr
storage
-cluster
=
$cluster
-bind
=
$Sbind
-masters
=
$Mbind
$@
&
neo
-log_dir
=
$log
-alsologtostderr
storage
-cluster
=
$cluster
-bind
=
$Sbind
-masters
=
$Mbind
$@
&
}
...
...
@@ -43,6 +52,50 @@ Apy() {
neoadmin
--cluster
=
$cluster
--bind
=
$Abind
--masters
=
$Mbind
$@
&
}
# Zpy <data.fs>
# spawn zeo
Zpy
()
{
exec
-a
Zpy
\
runzeo
--address
$Zbind
--filename
$@
2>>
$log
/Zpy.log &
}
# ---- generate test data ----
var
=
`
pwd
`
/var
mkdir
-p
$var
# generate data with many small (4K) objects
export
WENDELIN_CORE_ZBLK_FMT
=
ZBlk1
work
=
128
# array size generated (MB)
# generate data in data.fs
fs1
=
$var
/fs1
mkdir
-p
$fs1
genfs
()
{
demo-zbigarray
--worksize
=
$work
gen
$fs1
/data.fs
sync
}
#genfs
#time demo-zbigarray read $fs1/data.fs
#Zpy $fs1/data.fs
#sleep 1
#time demo-zbigarray read zeo://$Zbind
#Mpy --autostart=1
## sleep 0.2
#Sgo $fs1/data.fs
time
demo-zbigarray
read
neo://
$cluster
@
$Mbind
wait
exit
# --------
# spawn Mpy + Sgo
Mpy
...
...
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