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