Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
93c5198c
Commit
93c5198c
authored
Nov 29, 2016
by
antirez
Browse files
PSYNC2 test: 20 seconds are enough...
parent
f6e42f0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/integration/psync2.tcl
View file @
93c5198c
...
...
@@ -12,7 +12,7 @@ start_server {} {
set no_exit 0
;
;
# Do not exit at end of the test
set duration
6
0
;
# Total test seconds
set duration
2
0
;
# Total test seconds
set genload 1
;
# Load master with writes at every cycle
...
...
@@ -31,7 +31,11 @@ start_server {} {
if
{
$debug
_msg
}
{
puts
"Log file:
[
srv
[
expr 0-$j
]
stdout
]
"
}
}
set cycle 1
while
{([
clock seconds
]
-$start_time
)
< $duration
}
{
test
"PSYNC2: --- CYCLE
$cycle
---"
{
incr cycle
}
# Create a random replication layout.
# Start with switching master
(
this simulates a failover
)
.
...
...
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