This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
nms-nmssync/nms_sync/conf/druid.properties
fangshunjian af4f0910ba 1、主库向从库同步和从库向主库同步分别一个线程池
2、程序启东时,new表全量更新
3、修改log日志信息
2018-12-21 21:50:29 +06:00

30 lines
1.3 KiB
Properties
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#检测数据库链接是否有效,必须配置
druid.validationQuery=SELECT 1 from dual
#初始连接数
druid.initialSize=1
#最大连接池数量
druid.maxActive=3
#去掉,配置文件对应去掉
#druid.maxIdle=20
#配置0,当线程池数量不足,自动补充。
druid.minIdle=1
#获取链接超时时间为1分钟单位为毫秒。
druid.maxWait=60000
#获取链接的时候,不校验是否可用,开启会有损性能。
druid.testOnBorrow=false
#归还链接到连接池的时候校验链接是否可用。
druid.testOnReturn=false
#此项配置为true即可不影响性能并且保证安全性。意义为申请连接的时候检测如果空闲时间大于timeBetweenEvictionRunsMillis执行validationQuery检测连接是否有效。
druid.testWhileIdle=true
#1.Destroy线程会检测连接的间隔时间
#2.testWhileIdle的判断依据
druid.timeBetweenEvictionRunsMillis=600000
#一个链接生存的时间
druid.minEvictableIdleTimeMillis=600000
#链接使用超过时间限制是否回收
druid.removeAbandoned=false
#超过时间限制时间单位秒目前为5分钟如果有业务处理时间超过5分钟可以适当调整。
druid.removeAbandonedTimeout=300
#链接回收的时候控制台打印信息测试环境可以加上true线上环境false。会影响性能。
druid.logAbandoned=false
druid.filters=