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
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
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
...
@@ -372,6 +372,7 @@ Tables
.value str
.value str
(name, nid, partitions, ptid, replicas, version, zodb=pickle...)
(name, nid, partitions, ptid, replicas, version, zodb=pickle...)
# partition table
- pt
- pt
.rid int // = row id = part of oid space
.rid int // = row id = part of oid space
.nid int
.nid int
...
...
go/neo/connection.go
View file @
28ec1756
...
@@ -742,7 +742,7 @@ func (nl *NodeLink) serveSend() {
...
@@ -742,7 +742,7 @@ func (nl *NodeLink) serveSend() {
// ---- raw IO ----
// ---- raw IO ----
const
dumpio
=
tru
e
const
dumpio
=
fals
e
// sendPkt sends raw packet to peer
// sendPkt sends raw packet to peer
// tx error, if any, is returned as is and is analyzed in serveSend
// tx error, if any, is returned as is and is analyzed in serveSend
...
...
go/neo/t/.gitignore
View file @
28ec1756
/log
/log
/var
go/neo/t/t.sh
View file @
28ec1756
...
@@ -5,34 +5,43 @@
...
@@ -5,34 +5,43 @@
Abind
=
127.0.0.1:5551
Abind
=
127.0.0.1:5551
Mbind
=
127.0.0.1:5552
Mbind
=
127.0.0.1:5552
Sbind
=
127.0.0.1:5553
Sbind
=
127.0.0.1:5553
Zbind
=
127.0.0.1:5554
# cluster name
# cluster name
cluster
=
pygotest
cluster
=
pygotest
# logs
# logs
log
dir
=
`
pwd
`
/log
log
=
`
pwd
`
/log
mkdir
-p
$log
dir
mkdir
-p
$log
# M{py,go}
# M{py,go}
# spawn master
# spawn master
Mpy
()
{
Mpy
()
{
# XXX --autostart=1 ?
# XXX --autostart=1 ?
exec
-a
Mpy
\
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
()
{
Mgo
()
{
exec
-a
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
# spawn storage
Sgo
()
{
Sgo
()
{
exec
-a
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() {
...
@@ -43,6 +52,50 @@ Apy() {
neoadmin
--cluster
=
$cluster
--bind
=
$Abind
--masters
=
$Mbind
$@
&
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
# spawn Mpy + Sgo
Mpy
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