Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FailoverChan = make(chan int)
FailoverChan 通过该通道通知main函数,重启canal 解析
Functions ¶
func CheckTargetMysqlHealth ¶
func CheckTargetMysqlHealth() error
CheckTargetMysqlHealth 检查Mysql 健康状态 for jucloud
func CheckTargetRedisHealth ¶
func CheckTargetRedisHealth() error
CheckTargetRedisHealth 检查Redis 健康状态
func GetTargetMysql ¶
GetTargetMysql 获取fusion 要连接的mysql 信息, 目前只通过read_only 来判断是否符合要求
func IsMaxConnERR ¶
IsMaxConnERR 判断是否是mysql连接数打满的错误码 1040: Too many connections
func MonitorTargetMysqlHealth ¶
func MonitorTargetMysqlHealth() error
MonitorTargetMysqlHealth 检查是否出现mysql 主从切换
Types ¶
Click to show internal directories.
Click to hide internal directories.