1,之前用Mysql或者mycat的时候都没有这个问题。后来改为haproxy+keepalived+mycat后出现这个问题

2,网上查了很多说法,我按照网上说的改了

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

发现还是不行,后来发现修改haproxy的配置

vim /usr/local/haproxy/haproxy.cfg

后来发现把haproxy的timeout server 120000    改大比如120 秒

20190628

后来发现haproxy中几个 参数都要改成120000 才行(具体哪个生效不知道,后续再研究)

并且task的service还是有报错因为没有配置

plan配置了就没有这个报错了

spring:
profiles: prd
application:
name: novaplanserv
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

后来发现

最新文章

  1. 简易版C语言程序语法
  2. 天翼宽带政企网关B2-1P 如何获得超级管理员账号?
  3. 【hiho一下第77周】递归-减而治之 (MS面试题:Koch Snowflake)
  4. Timus Online Judge 1001. Reverse Root
  5. 更改EBS APPS 密码流程
  6. 目标跟踪之Lukas-Kanade光流法
  7. 华为OJ平台——首次不重复字符
  8. Winform  隐藏程序窗口
  9. Object lifetime
  10. Tomcat—怎样在Tomcat Webserver下部署Web项目
  11. 原因好消息: PSP游戏自己主动算法设计(两)
  12. nopCommerce 3.9 大波浪系列 之 使用Redis主从高可用缓存
  13. python的urlparse
  14. 正则表达式的方法:replace,match,test(replace参数可以是回调函数)
  15. Spring MVC学习step1——框架熟悉
  16. Linux中断管理 (3)workqueue工作队列
  17. 生产redis client 连接无法释放
  18. [转]GDB-----2.watchpoint
  19. EditText的一些使用技巧
  20. 第二章:Opencv核心類Mat

热门文章

  1. 只要你用atom修改后保存代码文件的时候,你在chrome上的页面就会自动刷新。
  2. layui-简单的登录注册界面【转载】
  3. Linux Shell 自动备份脚本
  4. 手把手教你如何玩转Solr(包含项目实战)
  5. linux下的缓存机制buffer、cache、swap
  6. launchImage设置后在启动时无法显示
  7. 树莓派使用c语言控制管脚--wiringPi安装
  8. 视区相关单位vw, vh
  9. LeetCode刷题2——颠倒二进制位
  10. 【计算机视觉】time of flight (TOF)