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
Carlos Ramos Carreño
neoppod
Commits
a550c7cf
Commit
a550c7cf
authored
Oct 16, 2019
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stress: add comments
parent
f0d56734
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
neo/tests/stress.py
neo/tests/stress.py
+11
-0
tools/stress
tools/stress
+1
-0
No files found.
neo/tests/stress.py
View file @
a550c7cf
...
...
@@ -2,6 +2,17 @@
# implement another tool to stress an existing cluster, which would be filled
# by a real application.
# XXX: Killing storage nodes out of the control of the master
# (tools/stress -r RATIO with RATIO != 0) sometimes causes the cluster to
# become non-operational. The race condition is that by the time the
# master notices a node is killed, it may finish a transaction for which
# the client node got failures with the replica, which gets disconnected.
# The code tries to anticipate failures, by assuming a node is down until
# it is actually down and again running, but even after a single kill,
# long-running commits (e.g deadlock resolution) can cause several
# failures+resync in a row for the same node.
# The only solution looks like to not abort if it goes to RECOVERY.
import
curses
,
os
,
random
,
re
,
select
,
threading
,
time
from
collections
import
deque
from
neo.lib
import
logging
,
protocol
...
...
tools/stress
View file @
a550c7cf
...
...
@@ -330,6 +330,7 @@ class Application(StressApplication):
def
__init__
(
self
,
config
):
dscpPatch
(
1
)
StorageApplication__init__
(
self
,
config
)
#StorageApplication.__init__ = __init__
if
kill_mysqld
:
from
neo.scripts
import
neostorage
...
...
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