add threshold for mysql slave lag