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
Vincent Pelletier
neoppod
Commits
c2d7f97e
Commit
c2d7f97e
authored
Sep 09, 2011
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools: use same DB prefix as for tests
parent
be3c276b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
tools/matrix
tools/matrix
+2
-1
tools/perfs
tools/perfs
+3
-1
tools/replication
tools/replication
+2
-1
No files found.
tools/matrix
View file @
c2d7f97e
...
@@ -6,6 +6,7 @@ import math
...
@@ -6,6 +6,7 @@ import math
import
traceback
import
traceback
from
time
import
time
from
time
import
time
from
neo.tests
import
DB_PREFIX
from
neo.tests.benchmark
import
BenchmarkRunner
from
neo.tests.benchmark
import
BenchmarkRunner
from
ZODB.FileStorage
import
FileStorage
from
ZODB.FileStorage
import
FileStorage
...
@@ -85,7 +86,7 @@ class MatrixImportBenchmark(BenchmarkRunner):
...
@@ -85,7 +86,7 @@ class MatrixImportBenchmark(BenchmarkRunner):
else
:
else
:
from
neo.tests.functional
import
NEOCluster
from
neo.tests.functional
import
NEOCluster
neo
=
NEOCluster
(
neo
=
NEOCluster
(
db_list
=
[
'
neot_matrix_%d'
%
i
for
i
in
xrange
(
storages
)],
db_list
=
[
'
%s_matrix_%u'
%
(
DB_PREFIX
,
i
)
for
i
in
xrange
(
storages
)],
clear_databases
=
True
,
clear_databases
=
True
,
master_count
=
masters
,
master_count
=
masters
,
partitions
=
partitions
,
partitions
=
partitions
,
...
...
tools/perfs
View file @
c2d7f97e
...
@@ -8,6 +8,7 @@ import traceback
...
@@ -8,6 +8,7 @@ import traceback
from
time
import
time
from
time
import
time
from
ZODB.FileStorage
import
FileStorage
from
ZODB.FileStorage
import
FileStorage
from
neo.tests
import
DB_PREFIX
from
neo.tests.benchmark
import
BenchmarkRunner
from
neo.tests.benchmark
import
BenchmarkRunner
from
neo.tests.functional
import
NEOCluster
from
neo.tests.functional
import
NEOCluster
from
neo.lib.profiling
import
PROFILING_ENABLED
,
profiler_decorator
,
\
from
neo.lib.profiling
import
PROFILING_ENABLED
,
profiler_decorator
,
\
...
@@ -38,7 +39,8 @@ class ImportBenchmark(BenchmarkRunner):
...
@@ -38,7 +39,8 @@ class ImportBenchmark(BenchmarkRunner):
config
=
self
.
_config
config
=
self
.
_config
# start neo
# start neo
neo
=
NEOCluster
(
neo
=
NEOCluster
(
db_list
=
[
'neot_perfs_%d'
%
i
for
i
in
xrange
(
config
.
storages
)],
db_list
=
[
'%s_perfs_%u'
%
(
DB_PREFIX
,
i
)
for
i
in
xrange
(
config
.
storages
)],
clear_databases
=
True
,
clear_databases
=
True
,
partitions
=
config
.
partitions
,
partitions
=
config
.
partitions
,
replicas
=
config
.
replicas
,
replicas
=
config
.
replicas
,
...
...
tools/replication
View file @
c2d7f97e
...
@@ -9,6 +9,7 @@ from ZODB.tests.StorageTestBase import zodb_pickle
...
@@ -9,6 +9,7 @@ from ZODB.tests.StorageTestBase import zodb_pickle
from
neo.lib.util
import
p64
from
neo.lib.util
import
p64
from
neo.lib.protocol
import
CellStates
from
neo.lib.protocol
import
CellStates
from
neo.tests
import
DB_PREFIX
from
neo.tests.benchmark
import
BenchmarkRunner
from
neo.tests.benchmark
import
BenchmarkRunner
from
neo.tests.functional
import
NEOCluster
from
neo.tests.functional
import
NEOCluster
...
@@ -68,7 +69,7 @@ class ReplicationBenchmark(BenchmarkRunner):
...
@@ -68,7 +69,7 @@ class ReplicationBenchmark(BenchmarkRunner):
config
=
self
.
_config
config
=
self
.
_config
# build a neo
# build a neo
neo
=
NEOCluster
(
neo
=
NEOCluster
(
db_list
=
[
'
neot_replication_%d'
%
i
for
i
in
xrange
(
2
)],
db_list
=
[
'
%s_replication_%u'
%
(
DB_PREFIX
,
i
)
for
i
in
xrange
(
2
)],
clear_databases
=
True
,
clear_databases
=
True
,
partitions
=
config
.
partitions
,
partitions
=
config
.
partitions
,
replicas
=
1
,
replicas
=
1
,
...
...
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