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
k18-ntcs-web-argus-service/src/main/resources/jdbc.properties
2018-09-08 16:46:08 +08:00

146 lines
5.9 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.

#==========日志库 Mysql=======================
jdbc.log.driver=com.mysql.jdbc.Driver
#元辰鑫内网
jdbc.log.url=jdbc:mysql://10.0.6.249:3306/galaxy?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
#华严
#jdbc.log.url=jdbc:mysql://192.168.11.242:3306/galaxy?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
#元辰鑫外网
#jdbc.log.url=jdbc:mysql://192.168.10.204:3306/galaxy?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
#亦庄测试环境
#jdbc.log.url=jdbc:mysql://192.168.10.212:3306/galaxy?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
#亦庄演示环境
#jdbc.log.url=jdbc:mysql://10.3.48.5:3306/galaxy?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
jdbc.log.username=root
jdbc.log.key=9Pjh5K20Sho0lnWMClUXYA==
jdbc.log.password=D3ptWYX8vx/GoEXaSrJycQ==
#==========================================
#==========日志库 Oracle ======================
##jdbc.log.driver=oracle.jdbc.driver.OracleDriver
##jdbc.log.url=jdbc:oracle:thin:@10.0.6.104:1521:orcl
#jdbc.log.url=jdbc:oracle:thin:@10.174.196.22:1521:orcl
##jdbc.log.username=zdx
#jdbc.log.username=z2_5x9logb
##jdbc.log.key=pHl+0udycGQWNZcN68Sv9A==
##jdbc.log.password=Z/pVMDXcWNxzVGAX0yRp3Q==
#============================================
bonecp.idleMaxAgeInMinutes=60
bonecp.idleConnectionTestPeriodInMinutes=240
bonecp.maxConnectionsPerPartition=50
bonecp.minConnectionsPerPartition=10
bonecp.partitionCount=3
bonecp.acquireIncrement=5
bonecp.statementsCacheSize=100
############################################################################################################################################
#数据中心hive接口配置
############################################################################################################################################
#A版日志库
jdbc.hive.driver=org.apache.hive.jdbc.HiveDriver
#元辰鑫内网
jdbc.hive.url=jdbc:hive2://10.0.6.202:10000/maat
#华严
#jdbc.hive.url=jdbc:hive2://192.168.11.243:2181,192.168.10.76:2181,192.168.10.77:2181/maat;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2
#元辰鑫外网
#jdbc.hive.url=jdbc:hive2://192.168.10.22:10000/maat
#亦庄测试环境
#jdbc.hive.url=jdbc:hive2://192.168.10.216:10000/maat
#亦庄测试环境高可用集群连接,注意使用此种方法需要配置hosts,主机名与ip的对应关系
#jdbc.hive.url=jdbc:hive2://192.168.10.216:2181,192.168.10.217:2181,192.168.10.218:2181/maat;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2
#亦庄演示环境高可用集群连接,注意使用此种方法需要配置hosts,主机名与ip的对应关系
#jdbc.hive.url=jdbc:hive2://10.3.48.2:2181,10.3.48.3:2181,10.3.48.4:2181/maat;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2
jdbc.hive.username=xa_z2_mesa
jdbc.hive.key=aC/8fTC9vfPVhCk+CDzbAQ==
#加密后密码
jdbc.hive.password=V3GyFlG8Mg01bTt8ykFVaA==
#实际密码
#jdbc.hiveA.password=123!@#qwe
bonecp.hive.idleMaxAgeInMinutes=60
bonecp.hive.idleConnectionTestPeriodInMinutes=240
bonecp.hive.maxConnectionsPerPartition=20
bonecp.hive.minConnectionsPerPartition=10
bonecp.hive.partitionCount=3
bonecp.hive.acquireIncrement=5
bonecp.hive.statementsCacheSize=100
#################日志查询clickhouse数据源信息#############
jdbc.clickhouse.driver=ru.yandex.clickhouse.ClickHouseDriver
#域名测试环境
jdbc.clickhouse.url=jdbc:clickhouse://clickhouse.baifendian.com:80/k18_ods
#亦庄演示环境
#jdbc.clickhouse.url=jdbc:clickhouse://10.3.45.5:8123/k18_ods
jdbc.clickhouse.username=
jdbc.clickhouse.key=
jdbc.clickhouse.password=
#########################配置日志查询使用druid连接池#########################################
#配置初始化连接池数量
druid.log.initialSize=5
#配置最小连接池数量
druid.log.minIdle=1
#配置最大连接池数量
druid.log.maxActive=200
# 配置获取连接等待超时的时间 单位毫秒
druid.log.maxWait=600000
#使用非公平锁
druid.log.useUnfairLock=true
#配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
druid.log.timeBetweenEvictionRunsMillis=60000
#配置一个连接在池中最小生存的时间,单位是毫秒
druid.log.minEvictableIdleTimeMillis=300000
#用来检测连接是否有效的sql要求是一个查询语句,下面是hive的
druid.log.hive.validationQuery=select unix_timestamp()
#用来检测连接是否有效的sql要求是一个查询语句,下面是clickhouse的
druid.log.clickHouse.validationQuery=show tables
#申请连接的时候检测如果空闲时间大于timeBetweenEvictionRunsMillis执行validationQuery检测连接是否有效
druid.log.testWhileIdle=true
#申请连接时执行validationQuery检测连接是否有效
druid.log.testOnBorrow=true
#归还连接时执行validationQuery检测连接是否有效
druid.log.testOnReturn=false
#打开PSCache并且指定每个连接上PSCache的大小
druid.log.poolPreparedStatements=true
#要启用PSCache必须配置大于0当大于0时poolPreparedStatements自动触发修改为true。在Druid中不会存在Oracle下PSCache占用内存过多的问题可以把这个数值配置大一些比如说100
druid.log.maxOpenPreparedStatements=100
#配置监控统计拦截的filters去掉后监控界面sql无法统计
druid.log.filters=stat
#####################################################################################################################################
##redis连接
#####################################################################################################################################
#元辰鑫内网
redis.host=10.0.6.249
#华严
#redis.host=192.168.11.243
#元辰鑫外网
#redis.host=192.168.10.205
#亦庄测试环境
#redis.host=192.168.10.215
#亦庄演示环境
#redis.host=10.3.34.1
redis.port=6379
redis.pass=
redis.maxIdle=5
redis.maxTotal=250
redis.maxWaitMillis=100000
redis.testOnBorrow=true
redis.testOnReturn=true