MXS-1596 Test switchover under stress
- Start 4 threads where each thread sits in a loop and performs 20% updates and 80% selects. Each thread has a table of its own. - The main thread executes the following in a loop. - Perform a switchover from the current master to the next (which is simply the next node % all nodes). - Keep on doing that for 1.5 minutes. The expectation is that the switchover will succeed, that is, after the operation there will be a new master.
This commit is contained in:
@ -290,8 +290,12 @@ add_test_executable(mysqlmon_failover_rejoin_old_slave.cpp mysqlmon_failover_rej
|
||||
# MySQL Monitor rolling restart slaves
|
||||
add_test_executable(mysqlmon_failover_rolling_restart_slaves.cpp mysqlmon_failover_rolling_restart_slaves mysqlmon_failover_rolling_restart_slaves LABELS mysqlmon REPL_BACKEND)
|
||||
|
||||
# MySQL Monitor failover stress
|
||||
add_test_executable(mysqlmon_failover_stress.cpp mysqlmon_failover_stress mysqlmon_failover_stress LABELS mysqlmon REPL_BACKEND)
|
||||
|
||||
# MySQL Monitor switchover stress
|
||||
add_test_executable(mysqlmon_switchover_stress.cpp mysqlmon_switchover_stress mysqlmon_switchover_stress LABELS mysqlmon REPL_BACKEND)
|
||||
|
||||
# Test monitor state change events when manually clearing server bits
|
||||
add_test_executable(false_monitor_state_change.cpp false_monitor_state_change replication LABELS mysqlmon REPL_BACKEND)
|
||||
|
||||
|
Reference in New Issue
Block a user