This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Taken from: | |
# https://www.percona.com/blog/2012/08/29/heres-a-quick-way-to-foresee-if-replication-slave-is-ever-going-to-catch-up-and-when/ | |
# | |
#s_behind – current Seconds_Behind_Master value | |
#d_behind – number of days behind based on current s_behind | |
#c_sec_s – how many seconds per second were caught up during last interval | |
#eta_d – this is ETA based on last interval | |
#O_c_sec_s – overall catch-up speed in seconds per second | |
#O_eta_d – ETA based on overall catch-up speed (in days) |