-
Notifications
You must be signed in to change notification settings - Fork 26
/
application.properties
196 lines (174 loc) · 8.85 KB
/
application.properties
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
#=======================================================================
#======common configure=================================================
#whether to hook when calling middle ware component
bsf.collect.hook.enabled = true
#whether to restart the context,when Apollo configurations changed
bsf.context.restart.enabled = true
#restart log text
bsf.context.restart.text =
#When get IP using AddressUtils in docker environment, it filters exclude IP regex(start with string) to exclude.
#not required
bsf.util.ip.exclude.regex = 10.42,172
#enable Access-Control-Allow-Origin
bsf.web.cors.enabled = true
#=======================================================================
#======elk configure====================================================
#elk服务的开关,非必须,默认true
bsf.elk.enabled = true
#elk的服务地址
bsf.elk.destinations = 10.0.193.3:4560
#启动web相关的功能
bsf.elk.web.enabled=true
#启动web的出参入参,依赖bsf.elk.web.enabled=true
bsf.elk.web.controller.aspect.enabled=true
#启动日志统计及监控,依赖bsf.elk.web.enabled=true
bsf.health.log.statistic.enabled=true
#========================================================================
#======cat configure=====================================================
#启用cat
bsf.cat.enabled=true
#Cat服务器地址,必填
cat.server.url=10.0.193.15
#default,cross
#cross模式为调用链模式
bsf.cat.filter=cross
#=========================================================================
#======xxl-job configure==================================================
bsf.job.enabled = false
xxl.job.admin.addresses = http://10.0.193.5:8080/xxl-job-admin
#=========================================================================
#======message configure==================================================
#not required.
bsf.message.enabled = false
bsf.message.dingding.enabled = true
bsf.message.sms.enabled = true
sms.url =
sms.user =
sms.password =
sms.server =
#=========================================================================
#======rocket MQ configure================================================
bsf.mq.enabled = false
bsf.rocketmq.namesrvaddr = 10.0.193.20:9876;10.0.193.18:9876
#============================================================================
#======Sharding-jdbc configure================================================
bsf.shardingjdbc.enabled = true
spring.shardingsphere.datasource.names = master-0,slave-0
spring.shardingsphere.datasource.master-0.type = com.alibaba.druid.pool.DruidDataSource
spring.shardingsphere.datasource.master-0.driver-class-name = com.mysql.cj.jdbc.Driver
spring.shardingsphere.datasource.master-0.url = jdbc:mysql://10.0.193.28:3306/test?useUnicode=true&serverTimezone=CTT&characterEncoding=utf-8&autoReconnect=true&autoReconnectForPools=true&zeroDateTimeBehavior=convertToNull&useSSL=false
spring.shardingsphere.datasource.master-0.username =
spring.shardingsphere.datasource.master-0.password =
spring.shardingsphere.datasource.master-0.filters = stat
spring.shardingsphere.datasource.master-0.max-active = 5
spring.shardingsphere.datasource.master-0.initial-size = 2
spring.shardingsphere.datasource.master-0.max-wait = 60000
spring.shardingsphere.datasource.master-0.min-idle = 1
spring.shardingsphere.datasource.master-0.time-between-eviction-runs-millis = 60000
spring.shardingsphere.datasource.master-0.min-evictable-idle-time-millis = 300000
spring.shardingsphere.datasource.master-0.validation-query = SELECT 'x'
spring.shardingsphere.datasource.master-0.test-while-idle = true
spring.shardingsphere.datasource.master-0.test-on-borrow = false
spring.shardingsphere.datasource.master-0.test-on-return = false
spring.shardingsphere.datasource.master-0.pool-prepared-statements = true
spring.shardingsphere.datasource.master-0.max-open-prepared-statements = 20
spring.shardingsphere.datasource.slave-0.type = com.alibaba.druid.pool.DruidDataSource
spring.shardingsphere.datasource.slave-0.driver-class-name = com.mysql.cj.jdbc.Driver
spring.shardingsphere.datasource.slave-0.url = jdbc:mysql://10.0.193.28:3306/test?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&autoReconnectForPools=true&zeroDateTimeBehavior=convertToNull&useSSL=false
spring.shardingsphere.datasource.slave-0.username =
spring.shardingsphere.datasource.slave-0.password =
spring.shardingsphere.datasource.slave-0.filters = stat
spring.shardingsphere.datasource.slave-0.max-active = 5
spring.shardingsphere.datasource.slave-0.initial-size = 2
spring.shardingsphere.datasource.slave-0.max-wait = 60000
spring.shardingsphere.datasource.slave-0.min-idle = 1
spring.shardingsphere.datasource.slave-0.time-between-eviction-runs-millis = 60000
spring.shardingsphere.datasource.slave-0.min-evictable-idle-time-millis = 300000
spring.shardingsphere.datasource.slave-0.validation-query = SELECT 'x'
spring.shardingsphere.datasource.slave-0.test-while-idle = true
spring.shardingsphere.datasource.slave-0.test-on-borrow = false
spring.shardingsphere.datasource.slave-0.test-on-return = false
spring.shardingsphere.datasource.slave-0.pool-prepared-statements = true
spring.shardingsphere.datasource.slave-0.max-open-prepared-statements = 20
spring.shardingsphere.masterslave.load-balance-algorithm-type = round_robin
spring.shardingsphere.masterslave.name = master-0
spring.shardingsphere.masterslave.master-data-source-name = master-0
spring.shardingsphere.masterslave.slave-data-source-names = slave-0
spring.shardingsphere.props.sql.show = true
#=========================================================================
#======Eureka configure===================================================
bsf.eureka.client.enabled = true
eureka.client.serviceUrl.defaultZone = http://10.0.193.12:8080/eureka/,http://10.0.193.12:8081/eureka/
eureka.client.registry-fetch-interval-seconds = 5
ribbon.ServerListRefreshInterval = 5000
eureka.instance.lease-expiration-duration-in-seconds = 5
eureka.instance.lease-renewal-interval-in-seconds = 2
eureka.instance.prefer-ip-address = true
feign.compression.request.enabled = true
feign.compression.response.enabled = true
feign.compression.request.mime-types = text/xml,application/xml,application/json
feign.compression.request.min-request-size = 2048
## KONG register configure
bsf.eureka.kong.enabled = true
bsf.eureka.kong.ip = 10.0.193.253
bsf.eureka.kong.port = 8001
bsf.eureka.kong.healthchecks.active.unhealthy.tcp_failures = 1
bsf.eureka.kong.healthchecks.active.unhealthy.timeouts = 1
bsf.eureka.kong.healthchecks.active.unhealthy.http_failures = 1
bsf.eureka.kong.healthchecks.active.unhealthy.interval = 5
bsf.eureka.kong.healthchecks.active.healthy.successes = 1
bsf.eureka.kong.healthchecks.active.healthy.interval = 5
#=========================================================================
#======Redis configure====================================================
bsf.redis.enabled = true
bsf.redis.pool.maxTotal = 30
bsf.redis.pool.maxIdle = 30
bsf.redis.pool.minIdle = 0
bsf.redis.pool.testOnBorrow = false
bsf.redis.pool.testWhileIdle = true
bsf.redis.pool.testOnReturn = false
bsf.redis.pool.testOnCreate = false
bsf.redis.pool.timeBetweenEvictionRunsMillis = 30000
bsf.redis.pool.minEvictableIdleTimeMillis = 60000
bsf.redis.nodes = 10.0.193.36:7000,10.0.193.37:7005
#=========================================================================
#======Elasticsearch configure============================================
bsf.elasticsearch.enabled = false
bsf.es.serverAddrs = 10.0.192.41:9300
#=========================================================================
#======BSF file configure=================================================
bsf.file.enabled = false
bsf.file.provider = qiniu
bsf.file.hotfile.uploadUrl =
bsf.file.hotfile.loginToken =
bsf.file.qiniu.accessKey =
bsf.file.qiniu.securityKey =
bsf.file.qiniu.bucketName =
bsf.file.qiniu.bucketUrl =
#=========================================================================
#======BSF health configure===============================================
bsf.health.enabled = true
bsf.health.io.autoClear = true
bsf.health.warn.enabled = true
bsf.health.check.enabled = true
bsf.health.export.enabled = true
bsf.health.export.elk.enabled = false
bsf.health.export.cat.enabled = true
bsf.health.log.statistic.enabled = true
bsf.health.dump.enabled = true
bsf.health.ping.enabled = true
bsf.health.doubtapi.enabled = true
bsf.health.doubtapi.threshold = 3145728
bsf.health.file.enabled = true
bsf.health.file.timeSpan = 20
bsf.health.strategy.cpu.process = [>0.9]
bsf.health.strategy.cpu.system = [>0.8]
bsf.health.strategy.io.current.dir.usable.size = [<500]
bsf.health.strategy.memery.system.free = [<256]
bsf.health.strategy.memery.jvm.max = [<100]
bsf.health.strategy.tomcat.threadPool.queue.size = [>20]
bsf.health.strategy.tomcat.threadPool.active.count = [>100]
bsf.health.strategy.log.error.count = [>50]
bsf.health.strategy.log.incre.count = [>3000]
bsf.health.warn.dingding.project.access_token=
bsf.health.warn.dingding.system.access_token =