Skip to content

Safely disable and enable multi-threaded slaves in an idempotent way on MySQL 5.6+

Notifications You must be signed in to change notification settings

zastari/mts_toggle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Multi-Threaded Slave Toggle

This script safely disables and re-enables Multi-Threaded slaves in MySQL. When disabling MTS, it stops the slave SQL_THREAD, starts it with UNTIL SQL_AFTER_MTS_GAPS, and then restarts the thread again once these gaps close.

Usage

mts_toggle.sh (enable|disable)

  • disable multi-threaded replication
  • enable a previously disabled multi-threaded replication environment

License

BSD

Author Information

Tyler Mitchell

About

Safely disable and enable multi-threaded slaves in an idempotent way on MySQL 5.6+

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages