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
f1bc3c32
Commit
f1bc3c32
authored
Oct 16, 2015
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
storage: speed up checking of replicas
This increases the number of rows to check per AskCheck*Range packets.
parent
7af9d2d3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
neo/storage/checker.py
neo/storage/checker.py
+6
-1
No files found.
neo/storage/checker.py
View file @
f1bc3c32
...
...
@@ -21,7 +21,12 @@ from neo.lib.protocol import NodeTypes, Packets, ZERO_OID
from
neo.lib.util
import
add64
,
dump
from
.handlers.storage
import
StorageOperationHandler
CHECK_COUNT
=
4000
# TODO: Use a dynamic value such that each chunk takes a few seconds to compute,
# because a too small value wastes network bandwidth. However, a too big
# one prevents the storage from replying quickly to other requests, so
# checkRange() must also be changed to process a chunk in several times,
# with a total time that must not cause timeouts.
CHECK_COUNT
=
40000
class
Checker
(
object
):
...
...
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