1, before using Mysql or mycat when it is not the problem. After this problem was later changed haproxy + keepalived + mycat
2, online search a lot to say, and I changed in accordance with the Internet, she said
datasource:
url: jdbc:mysql://192.168.0.206:8067/NOVADB?useUnicode=true&characterEncoding=utf8&serverTimezone=CTT&autoReconnect=true&failOverReadOnly=false
username: root
password: 123456
driver-class-name: com.mysql.jdbc.Driver
# 使用druid数据源
type: com.alibaba.druid.pool.DruidDataSource
druid:
validationQuery: select 1
testWhileIdle: true
testOnBorrow: true
testOnReturn: true
Or not found, later found to modify the configuration of haproxy
vim /usr/local/haproxy/haproxy.cfg
Haproxy later found to change the timeout server 120000 large such as 120 seconds would not have this problem