记得上下班打卡 | git大法好,push需谨慎

Commit f8857997 authored by 张国柄's avatar 张国柄

~config;

parent 6c2f3ed8
...@@ -15,10 +15,10 @@ ruoyi: ...@@ -15,10 +15,10 @@ ruoyi:
#系统自定义配置 #系统自定义配置
liquidnet: liquidnet:
url-banner: url-banner:
url6: "/kylin/performances/recommend/performance/status?pageNum=1&pageSize=50&status=(3,6,7,8,9,10)" #票务 url6: "/kylin/performances/recommend/performance/status?pageNum=1&pageSize=50&status=(3,6,7,8,9,10)" #票务
url7: "${liquidnet.client.admin.phpMallUrl}/admin/goodListForQuick?page=1&per_page=50" #商品 url7: "${liquidnet.client.admin.phpMallUrl}/admin/goodListForQuick?page=1&per_page=50" #商品
url14: "${liquidnet.client.admin.phpMallUrl}/admin/good/collective/quick?page=1&per_page=50" #商品集合 url14: "${liquidnet.client.admin.phpMallUrl}/admin/good/collective/quick?page=1&per_page=50" #商品集合
# 开发环境配置 # 开发环境配置
server: server:
...@@ -38,7 +38,7 @@ server: ...@@ -38,7 +38,7 @@ server:
# 日志配置------------------------------------------------------- # 日志配置-------------------------------------------------------
logging: logging:
level: level:
com.ruoyi: debug com.ruoyi: info
org.springframework: warn org.springframework: warn
#logging: #logging:
# # config: ${liquidnet.logfile.config} # # config: ${liquidnet.logfile.config}
......
...@@ -3,10 +3,10 @@ server: ...@@ -3,10 +3,10 @@ server:
tomcat: tomcat:
uri-encoding: UTF-8 uri-encoding: UTF-8
maxThreads: 2000 #默认200 maxThreads: 2000 #默认200
minSpareThreads: 2000 #默认10 minSpareThreads: 200 #默认10
maxConnections: 20000 #默认10000 maxConnections: 20000 #默认10000
acceptCount: 5000 #默认100 acceptCount: 5000 #默认100
processorCache: 5000 #默认200 processorCache: -1 #默认200
servlet: servlet:
context-path: ${liquidnet.info.context} context-path: ${liquidnet.info.context}
# ----------------------------------------------------------- # -----------------------------------------------------------
...@@ -82,22 +82,21 @@ spring: ...@@ -82,22 +82,21 @@ spring:
password: ${liquidnet.redis.adam.password} password: ${liquidnet.redis.adam.password}
lettuce: lettuce:
pool: pool:
max-active: 5 max-active: 16
max-wait: -1 max-wait: -1
max-idle: 8 max-idle: 8
min-idle: 0 min-idle: 4
# ----------------------------------------------------------- # -----------------------------------------------------------
# ----------------------------------------------------------- # -----------------------------------------------------------
global-auth: global-auth:
exclude-url-pattern: # 模式I(与模式II互斥) exclude-url-pattern: # 模式I(与模式II互斥)
- ${liquidnet.info.context}/doc.html # - ${liquidnet.info.context}/doc.html
- ${liquidnet.info.context}/webjars/** # - ${liquidnet.info.context}/webjars/**
- ${liquidnet.info.context}/swagger-resources/** # - ${liquidnet.info.context}/swagger-resources/**
- ${liquidnet.info.context}/v2/api-docs* # - ${liquidnet.info.context}/v2/api-docs*
- ${liquidnet.info.context}/ath/check - ${liquidnet.info.context}/ath/check
- ${liquidnet.info.context}/login/* - ${liquidnet.info.context}/login/*
- ${liquidnet.info.context}/gen
- ${liquidnet.info.context}/ts - ${liquidnet.info.context}/ts
- ${liquidnet.info.context}/send - ${liquidnet.info.context}/send
- ${liquidnet.info.context}/member/info - ${liquidnet.info.context}/member/info
...@@ -110,8 +109,8 @@ global-auth: ...@@ -110,8 +109,8 @@ global-auth:
- ${liquidnet.info.context}/enters/query/depth - ${liquidnet.info.context}/enters/query/depth
- ${liquidnet.info.context}/addr/query/depth - ${liquidnet.info.context}/addr/query/depth
- ${liquidnet.info.context}/plz/ad - ${liquidnet.info.context}/plz/ad
- ${liquidnet.info.context}/wxa/code2session # - ${liquidnet.info.context}/wxa/code2session
- ${liquidnet.info.context}/wx/oauth2/access_token # - ${liquidnet.info.context}/wx/oauth2/access_token
- ${liquidnet.info.context}/rsc/** - ${liquidnet.info.context}/rsc/**
include-url-pattern: # 模式II(与模式I互斥) include-url-pattern: # 模式II(与模式I互斥)
# - ${liquidnet.info.context}/** # - ${liquidnet.info.context}/**
......
...@@ -3,7 +3,7 @@ server: ...@@ -3,7 +3,7 @@ server:
tomcat: tomcat:
uri-encoding: UTF-8 uri-encoding: UTF-8
maxThreads: 2000 #默认200 maxThreads: 2000 #默认200
minSpareThreads: 2000 #默认10 minSpareThreads: 200 #默认10
maxConnections: 20000 #默认10000 maxConnections: 20000 #默认10000
acceptCount: 5000 #默认100 acceptCount: 5000 #默认100
processorCache: -1 #默认200 processorCache: -1 #默认200
...@@ -81,19 +81,19 @@ spring: ...@@ -81,19 +81,19 @@ spring:
password: ${liquidnet.redis.candy.password} password: ${liquidnet.redis.candy.password}
lettuce: lettuce:
pool: pool:
max-active: 8 max-active: 16
max-wait: -1 max-wait: -1
max-idle: 8 max-idle: 8
min-idle: 0 min-idle: 4
# ----------------------------------------------------------- # -----------------------------------------------------------
# ----------------------------------------------------------- # -----------------------------------------------------------
global-auth: global-auth:
exclude-url-pattern: # 模式I(与模式II互斥) exclude-url-pattern: # 模式I(与模式II互斥)
- ${liquidnet.info.context}/doc.html # - ${liquidnet.info.context}/doc.html
- ${liquidnet.info.context}/webjars/** # - ${liquidnet.info.context}/webjars/**
- ${liquidnet.info.context}/swagger-resources/** # - ${liquidnet.info.context}/swagger-resources/**
- ${liquidnet.info.context}/v2/api-docs* # - ${liquidnet.info.context}/v2/api-docs*
- ${liquidnet.info.context}/candy-coupon/useBack - ${liquidnet.info.context}/candy-coupon/useBack
- ${liquidnet.info.context}/candy-coupon/useBackJxl - ${liquidnet.info.context}/candy-coupon/useBackJxl
oncheck-url-pattern: oncheck-url-pattern:
......
...@@ -2,11 +2,11 @@ server: ...@@ -2,11 +2,11 @@ server:
port: ${liquidnet.info.port} port: ${liquidnet.info.port}
tomcat: tomcat:
uri-encoding: UTF-8 uri-encoding: UTF-8
maxThreads: 200 #默认200 maxThreads: 2000 #默认200
minSpareThreads: 30 #默认10 minSpareThreads: 200 #默认10
maxConnections: 12000 #默认10000 maxConnections: 20000 #默认10000
acceptCount: 5000 #默认100 acceptCount: 5000 #默认100
processorCache: 200 #默认200 processorCache: -1 #默认200
servlet: servlet:
context-path: ${liquidnet.info.context} context-path: ${liquidnet.info.context}
# ----------------------------------------------------------- # -----------------------------------------------------------
...@@ -69,25 +69,13 @@ spring: ...@@ -69,25 +69,13 @@ spring:
max-request-size: 10MB max-request-size: 10MB
profiles: profiles:
include: common-service #这里加载management相关公共配置 include: common-service #这里加载management相关公共配置
redis:
database: ${liquidnet.redis.sweet.database}
dbs: ${liquidnet.redis.sweet.dbs}
port: ${liquidnet.redis.sweet.port}
host: ${liquidnet.redis.sweet.host}
password: ${liquidnet.redis.sweet.password}
lettuce:
pool:
max-active: 8
max-wait: -1
max-idle: 8
min-idle: 0
autoconfigure: autoconfigure:
exclude: exclude:
- org.springframework.cloud.bus.BusAutoConfiguration - org.springframework.cloud.bus.BusAutoConfiguration
- org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration - org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
data: data:
mongodb: mongodb:
uri: mongodb://${liquidnet.mongodb.user}:${liquidnet.mongodb.pwd}@${liquidnet.mongodb.host}/?authSource=admin&maxPoolSize=2000&waitQueueMultiple=100 uri: mongodb://${liquidnet.mongodb.user}:${liquidnet.mongodb.pwd}@${liquidnet.mongodb.host}/?authSource=admin&maxPoolSize=200&waitQueueMultiple=100
sslEnabled: ${liquidnet.mongodb.sslEnabled} sslEnabled: ${liquidnet.mongodb.sslEnabled}
database: ${liquidnet.mongodb.database} database: ${liquidnet.mongodb.database}
# ----------------------------------------------------------- # -----------------------------------------------------------
...@@ -95,10 +83,10 @@ spring: ...@@ -95,10 +83,10 @@ spring:
# ----------------------------------------------------------- # -----------------------------------------------------------
global-auth: global-auth:
exclude-url-pattern: # 模式I(与模式II互斥) exclude-url-pattern: # 模式I(与模式II互斥)
- ${liquidnet.info.context}/doc.html # - ${liquidnet.info.context}/doc.html
- ${liquidnet.info.context}/webjars/** # - ${liquidnet.info.context}/webjars/**
- ${liquidnet.info.context}/swagger-resources/** # - ${liquidnet.info.context}/swagger-resources/**
- ${liquidnet.info.context}/v2/api-docs* # - ${liquidnet.info.context}/v2/api-docs*
- ${liquidnet.info.context}/user/register - ${liquidnet.info.context}/user/register
- ${liquidnet.info.context}/user/userLikeOperation - ${liquidnet.info.context}/user/userLikeOperation
- ${liquidnet.info.context}/user/userDislikeOperation - ${liquidnet.info.context}/user/userDislikeOperation
......
...@@ -18,8 +18,8 @@ logging: ...@@ -18,8 +18,8 @@ logging:
name: ${liquidnet.logfile.path}/${liquidnet.logfile.name}.log name: ${liquidnet.logfile.path}/${liquidnet.logfile.name}.log
max-size: 200MB max-size: 200MB
pattern: pattern:
file: '%d{yyyy-MM-dd HH:mm:ss.SSS} [ %-5level] %thread [%logger{26}:%line] - %msg%n' file: '%d{yyyy-MM-dd HH:mm:ss.SSS} [ %-5level] %thread [%logger{96}:%line] - %msg%n'
console: '%d{yyyy-MM-dd HH:mm:ss.SSS} [ %-5level] %thread [%logger{26}:%line] - %msg%n' console: '%d{yyyy-MM-dd HH:mm:ss.SSS} [ %-5level] %thread [%logger{96}:%line] - %msg%n'
rolling-file-name: ${liquidnet.logfile.path}/${liquidnet.logfile.name}-%d{yyyy-MM-dd}.%i.log rolling-file-name: ${liquidnet.logfile.path}/${liquidnet.logfile.name}-%d{yyyy-MM-dd}.%i.log
level: level:
root: error root: error
...@@ -57,7 +57,6 @@ spring: ...@@ -57,7 +57,6 @@ spring:
include: common-service #这里加载management相关公共配置 include: common-service #这里加载management相关公共配置
redis: redis:
database: ${liquidnet.redis.adam.database} database: ${liquidnet.redis.adam.database}
dbs: ${liquidnet.redis.adam.dbs}
port: ${liquidnet.redis.adam.port} port: ${liquidnet.redis.adam.port}
host: ${liquidnet.redis.adam.host} host: ${liquidnet.redis.adam.host}
password: ${liquidnet.redis.adam.password} password: ${liquidnet.redis.adam.password}
...@@ -80,7 +79,7 @@ spring: ...@@ -80,7 +79,7 @@ spring:
connection-test-query: SELECT 1 connection-test-query: SELECT 1
data: data:
mongodb: mongodb:
uri: mongodb://${liquidnet.mongodb.user}:${liquidnet.mongodb.pwd}@${liquidnet.mongodb.host}/?authSource=admin&maxPoolSize=2000&waitQueueMultiple=100 uri: mongodb://${liquidnet.mongodb.user}:${liquidnet.mongodb.pwd}@${liquidnet.mongodb.host}/?authSource=admin&maxPoolSize=200&waitQueueMultiple=100
sslEnabled: ${liquidnet.mongodb.sslEnabled} sslEnabled: ${liquidnet.mongodb.sslEnabled}
database: ${liquidnet.mongodb.database} database: ${liquidnet.mongodb.database}
# ----------------------------------------------------------- # -----------------------------------------------------------
......
...@@ -69,7 +69,7 @@ spring: ...@@ -69,7 +69,7 @@ spring:
min-idle: 0 min-idle: 0
data: data:
mongodb: mongodb:
uri: mongodb://${liquidnet.mongodb.user}:${liquidnet.mongodb.pwd}@${liquidnet.mongodb.host}/?authSource=admin&maxPoolSize=2000&waitQueueMultiple=100 uri: mongodb://${liquidnet.mongodb.user}:${liquidnet.mongodb.pwd}@${liquidnet.mongodb.host}/?authSource=admin&maxPoolSize=200&waitQueueMultiple=100
sslEnabled: ${liquidnet.mongodb.sslEnabled} sslEnabled: ${liquidnet.mongodb.sslEnabled}
database: ${liquidnet.mongodb.database} database: ${liquidnet.mongodb.database}
datasource: datasource:
......
...@@ -91,7 +91,7 @@ spring: ...@@ -91,7 +91,7 @@ spring:
transportMode: "NIO" transportMode: "NIO"
data: data:
mongodb: mongodb:
uri: mongodb://${liquidnet.mongodb.user}:${liquidnet.mongodb.pwd}@${liquidnet.mongodb.host}/?authSource=admin&maxPoolSize=2000&waitQueueMultiple=100 uri: mongodb://${liquidnet.mongodb.user}:${liquidnet.mongodb.pwd}@${liquidnet.mongodb.host}/?authSource=admin&maxPoolSize=200&waitQueueMultiple=100
sslEnabled: ${liquidnet.mongodb.sslEnabled} sslEnabled: ${liquidnet.mongodb.sslEnabled}
database: ${liquidnet.mongodb.database} database: ${liquidnet.mongodb.database}
datasource: datasource:
......
...@@ -3,7 +3,7 @@ server: ...@@ -3,7 +3,7 @@ server:
tomcat: tomcat:
uri-encoding: UTF-8 uri-encoding: UTF-8
maxThreads: 2000 #默认200 maxThreads: 2000 #默认200
minSpareThreads: 2000 #默认10 minSpareThreads: 200 #默认10
maxConnections: 20000 #默认10000 maxConnections: 20000 #默认10000
acceptCount: 5000 #默认100 acceptCount: 5000 #默认100
processorCache: -1 #默认200 processorCache: -1 #默认200
...@@ -83,10 +83,10 @@ spring: ...@@ -83,10 +83,10 @@ spring:
password: ${liquidnet.redis.dragon.password} password: ${liquidnet.redis.dragon.password}
lettuce: lettuce:
pool: pool:
max-active: 8 max-active: 16
max-wait: -1 max-wait: -1
max-idle: 8 max-idle: 8
min-idle: 0 min-idle: 4
# ----------------------------------------------------------- # -----------------------------------------------------------
# ----------------------------------------------------------- # -----------------------------------------------------------
......
...@@ -49,10 +49,10 @@ spring: ...@@ -49,10 +49,10 @@ spring:
password: ${liquidnet.redis.password} password: ${liquidnet.redis.password}
lettuce: lettuce:
pool: pool:
max-active: 5 max-active: 16
max-wait: -1 max-wait: -1
max-idle: 8 max-idle: 8
min-idle: 0 min-idle: 4
# ----------------------------------------------------------- # -----------------------------------------------------------
knife4j: knife4j:
enable: true enable: true
......
...@@ -3,7 +3,7 @@ server: ...@@ -3,7 +3,7 @@ server:
tomcat: tomcat:
uri-encoding: UTF-8 uri-encoding: UTF-8
maxThreads: 2000 #默认200 maxThreads: 2000 #默认200
minSpareThreads: 2000 #默认10 minSpareThreads: 200 #默认10
maxConnections: 20000 #默认10000 maxConnections: 20000 #默认10000
acceptCount: 5000 #默认100 acceptCount: 5000 #默认100
processorCache: -1 #默认200 processorCache: -1 #默认200
...@@ -81,13 +81,13 @@ spring: ...@@ -81,13 +81,13 @@ spring:
password: ${liquidnet.redis.goblin.password} password: ${liquidnet.redis.goblin.password}
lettuce: lettuce:
pool: pool:
max-active: 8 max-active: 16
max-wait: -1 max-wait: -1
max-idle: 8 max-idle: 8
min-idle: 0 min-idle: 4
data: data:
mongodb: mongodb:
uri: mongodb://${liquidnet.mongodb.user}:${liquidnet.mongodb.pwd}@${liquidnet.mongodb.host}/?authSource=admin&maxPoolSize=2000&waitQueueMultiple=100 uri: mongodb://${liquidnet.mongodb.user}:${liquidnet.mongodb.pwd}@${liquidnet.mongodb.host}/?authSource=admin&maxPoolSize=200&waitQueueMultiple=100
sslEnabled: ${liquidnet.mongodb.sslEnabled} sslEnabled: ${liquidnet.mongodb.sslEnabled}
database: ${liquidnet.mongodb.database} database: ${liquidnet.mongodb.database}
# ----------------------------------------------------------- # -----------------------------------------------------------
......
...@@ -3,7 +3,7 @@ server: ...@@ -3,7 +3,7 @@ server:
tomcat: tomcat:
uri-encoding: UTF-8 uri-encoding: UTF-8
maxThreads: 2000 #默认200 maxThreads: 2000 #默认200
minSpareThreads: 2000 #默认10 minSpareThreads: 200 #默认10
maxConnections: 20000 #默认10000 maxConnections: 20000 #默认10000
acceptCount: 5000 #默认100 acceptCount: 5000 #默认100
processorCache: -1 #默认200 processorCache: -1 #默认200
...@@ -19,7 +19,7 @@ knife4j: ...@@ -19,7 +19,7 @@ knife4j:
password: ${liquidnet.security.password} password: ${liquidnet.security.password}
# ----------------------------------------------------------- # -----------------------------------------------------------
logging: logging:
# config: ${liquidnet.logfile.config} # config: ${liquidnet.logfile.config}
file: file:
name: ${liquidnet.logfile.path}/${liquidnet.logfile.name}.log name: ${liquidnet.logfile.path}/${liquidnet.logfile.name}.log
max-size: ${liquidnet.logfile.file-max-size} max-size: ${liquidnet.logfile.file-max-size}
...@@ -34,11 +34,11 @@ logging: ...@@ -34,11 +34,11 @@ logging:
com.liquidnet: ${liquidnet.logfile.level} com.liquidnet: ${liquidnet.logfile.level}
# ----------------------------------------------------------- # -----------------------------------------------------------
eureka: eureka:
# client: # client:
# register-with-eureka: true # register-with-eureka: true
# fetch-registry: true # fetch-registry: true
# serviceUrl: # serviceUrl:
# defaultZone: http://${liquidnet.security.username}:${liquidnet.security.password}@${liquidnet.eureka.host}/eureka-server/eureka # defaultZone: http://${liquidnet.security.username}:${liquidnet.security.password}@${liquidnet.eureka.host}/eureka-server/eureka
instance: instance:
hostname: ${spring.cloud.client.ip-address} hostname: ${spring.cloud.client.ip-address}
lease-expiration-duration-in-seconds: 15 #服务过期时间配置,超过这个时间没有接收到心跳EurekaServer就会将这个实例剔除 lease-expiration-duration-in-seconds: 15 #服务过期时间配置,超过这个时间没有接收到心跳EurekaServer就会将这个实例剔除
...@@ -81,35 +81,13 @@ spring: ...@@ -81,35 +81,13 @@ spring:
password: ${liquidnet.redis.kylin.password} password: ${liquidnet.redis.kylin.password}
lettuce: lettuce:
pool: pool:
max-active: 8 max-active: 16
max-wait: -1 max-wait: -1
max-idle: 8 max-idle: 8
min-idle: 0 min-idle: 4
# redisson:
# singleServerConfig:
# address: redis://${liquidnet.redis.host}:${liquidnet.redis.port}
# password: ${liquidnet.redis.password}
# clientName: null
# database: 7 #选择使用哪个数据库0~15
# idleConnectionTimeout: 10000
# connectTimeout: 10000
# timeout: 3000
# retryAttempts: 3
# retryInterval: 1500
# subscriptionsPerConnection: 5
# subscriptionConnectionMinimumIdleSize: 1
# subscriptionConnectionPoolSize: 50
# connectionMinimumIdleSize: 32
# connectionPoolSize: 64
# dnsMonitoringInterval: 5000
# threads: 16
# nettyThreads: 32
# codec:
# class: "org.redisson.codec.JsonJacksonCodec"
# transportMode: "NIO"
data: data:
mongodb: mongodb:
uri: mongodb://${liquidnet.mongodb.user}:${liquidnet.mongodb.pwd}@${liquidnet.mongodb.host}/?authSource=admin&maxPoolSize=2000&waitQueueMultiple=100 uri: mongodb://${liquidnet.mongodb.user}:${liquidnet.mongodb.pwd}@${liquidnet.mongodb.host}/?authSource=admin&maxPoolSize=200&waitQueueMultiple=100
sslEnabled: ${liquidnet.mongodb.sslEnabled} sslEnabled: ${liquidnet.mongodb.sslEnabled}
database: ${liquidnet.mongodb.database} database: ${liquidnet.mongodb.database}
# ----------------------------------------------------------- # -----------------------------------------------------------
...@@ -117,10 +95,10 @@ spring: ...@@ -117,10 +95,10 @@ spring:
# ----------------------------------------------------------- # -----------------------------------------------------------
global-auth: global-auth:
exclude-url-pattern: exclude-url-pattern:
- ${liquidnet.info.context}/doc.html # - ${liquidnet.info.context}/doc.html
- ${liquidnet.info.context}/webjars/** # - ${liquidnet.info.context}/webjars/**
- ${liquidnet.info.context}/swagger-resources/** # - ${liquidnet.info.context}/swagger-resources/**
- ${liquidnet.info.context}/v2/api-docs* # - ${liquidnet.info.context}/v2/api-docs*
- ${liquidnet.info.context}/station/login - ${liquidnet.info.context}/station/login
- ${liquidnet.info.context}/station/login/sms - ${liquidnet.info.context}/station/login/sms
# - # -
......
...@@ -3,7 +3,7 @@ server: ...@@ -3,7 +3,7 @@ server:
tomcat: tomcat:
uri-encoding: UTF-8 uri-encoding: UTF-8
maxThreads: 2000 #默认200 maxThreads: 2000 #默认200
minSpareThreads: 2000 #默认10 minSpareThreads: 200 #默认10
maxConnections: 20000 #默认10000 maxConnections: 20000 #默认10000
acceptCount: 5000 #默认100 acceptCount: 5000 #默认100
processorCache: -1 #默认200 processorCache: -1 #默认200
...@@ -90,10 +90,10 @@ spring: ...@@ -90,10 +90,10 @@ spring:
password: ${liquidnet.redis.dragon.password} password: ${liquidnet.redis.dragon.password}
lettuce: lettuce:
pool: pool:
max-active: 8 max-active: 16
max-wait: -1 max-wait: -1
max-idle: 8 max-idle: 8
min-idle: 0 min-idle: 4
# ----------------------------------------------------------- # -----------------------------------------------------------
# ----------------------------------------------------------- # -----------------------------------------------------------
...@@ -104,7 +104,6 @@ global-auth: ...@@ -104,7 +104,6 @@ global-auth:
# - ${liquidnet.info.context}/** # - ${liquidnet.info.context}/**
# ----------------------------------------------------------- # -----------------------------------------------------------
# -----------------------------------------------------------
# ----------------------------------------------------------- # -----------------------------------------------------------
# ---------------------以下为银联支付-------------------------------------- # ---------------------以下为银联支付--------------------------------------
##交易请求地址 ##交易请求地址
......
...@@ -3,10 +3,10 @@ server: ...@@ -3,10 +3,10 @@ server:
tomcat: tomcat:
uri-encoding: UTF-8 uri-encoding: UTF-8
maxThreads: 2000 #默认200 maxThreads: 2000 #默认200
minSpareThreads: 2000 #默认10 minSpareThreads: 200 #默认10
maxConnections: 12000 #默认10000 maxConnections: 20000 #默认10000
acceptCount: 5000 #默认100 acceptCount: 5000 #默认100
processorCache: 200 #默认200 processorCache: -1 #默认200
servlet: servlet:
context-path: ${liquidnet.info.context} context-path: ${liquidnet.info.context}
# ----------------------------------------------------------- # -----------------------------------------------------------
...@@ -81,35 +81,13 @@ spring: ...@@ -81,35 +81,13 @@ spring:
password: ${liquidnet.redis.kylin.password} password: ${liquidnet.redis.kylin.password}
lettuce: lettuce:
pool: pool:
max-active: 8 max-active: 16
max-wait: -1 max-wait: -1
max-idle: 8 max-idle: 8
min-idle: 0 min-idle: 4
# redisson:
# singleServerConfig:
# address: redis://${liquidnet.redis.host}:${liquidnet.redis.port}
# password: ${liquidnet.redis.password}
# clientName: null
# database: 7 #选择使用哪个数据库0~15
# idleConnectionTimeout: 10000
# connectTimeout: 10000
# timeout: 3000
# retryAttempts: 3
# retryInterval: 1500
# subscriptionsPerConnection: 5
# subscriptionConnectionMinimumIdleSize: 1
# subscriptionConnectionPoolSize: 50
# connectionMinimumIdleSize: 32
# connectionPoolSize: 64
# dnsMonitoringInterval: 5000
# threads: 16
# nettyThreads: 32
# codec:
# class: "org.redisson.codec.JsonJacksonCodec"
# transportMode: "NIO"
data: data:
mongodb: mongodb:
uri: mongodb://${liquidnet.mongodb.user}:${liquidnet.mongodb.pwd}@${liquidnet.mongodb.host}/?authSource=admin&maxPoolSize=2000&waitQueueMultiple=100 uri: mongodb://${liquidnet.mongodb.user}:${liquidnet.mongodb.pwd}@${liquidnet.mongodb.host}/?authSource=admin&maxPoolSize=200&waitQueueMultiple=100
sslEnabled: ${liquidnet.mongodb.sslEnabled} sslEnabled: ${liquidnet.mongodb.sslEnabled}
database: ${liquidnet.mongodb.database} database: ${liquidnet.mongodb.database}
# ----------------------------------------------------------- # -----------------------------------------------------------
...@@ -117,10 +95,10 @@ spring: ...@@ -117,10 +95,10 @@ spring:
# ----------------------------------------------------------- # -----------------------------------------------------------
global-auth: global-auth:
exclude-url-pattern: exclude-url-pattern:
- ${liquidnet.info.context}/doc.html # - ${liquidnet.info.context}/doc.html
- ${liquidnet.info.context}/webjars/** # - ${liquidnet.info.context}/webjars/**
- ${liquidnet.info.context}/swagger-resources/** # - ${liquidnet.info.context}/swagger-resources/**
- ${liquidnet.info.context}/v2/api-docs* # - ${liquidnet.info.context}/v2/api-docs*
- ${liquidnet.info.context}/order/syncOrder - ${liquidnet.info.context}/order/syncOrder
# ----------------------------------------------------------- # -----------------------------------------------------------
......
...@@ -6,7 +6,7 @@ server: ...@@ -6,7 +6,7 @@ server:
minSpareThreads: 200 #默认10 minSpareThreads: 200 #默认10
maxConnections: 20000 #默认10000 maxConnections: 20000 #默认10000
acceptCount: 5000 #默认100 acceptCount: 5000 #默认100
processorCache: 5000 #默认200 processorCache: -1 #默认200
servlet: servlet:
context-path: ${liquidnet.info.context} context-path: ${liquidnet.info.context}
# ----------------------------------------------------------- # -----------------------------------------------------------
...@@ -87,7 +87,7 @@ spring: ...@@ -87,7 +87,7 @@ spring:
pool: pool:
max-active: 8 max-active: 8
max-wait: -1 max-wait: -1
max-idle: 8 max-idle: 2
min-idle: 0 min-idle: 0
dragon: dragon:
database: 15 database: 15
...@@ -99,7 +99,7 @@ spring: ...@@ -99,7 +99,7 @@ spring:
pool: pool:
max-active: 8 max-active: 8
max-wait: -1 max-wait: -1
max-idle: 8 max-idle: 2
min-idle: 0 min-idle: 0
sweet: sweet:
database: 15 database: 15
...@@ -111,7 +111,7 @@ spring: ...@@ -111,7 +111,7 @@ spring:
pool: pool:
max-active: 8 max-active: 8
max-wait: -1 max-wait: -1
max-idle: 8 max-idle: 2
min-idle: 0 min-idle: 0
adam: adam:
database: 15 database: 15
...@@ -123,7 +123,7 @@ spring: ...@@ -123,7 +123,7 @@ spring:
pool: pool:
max-active: 8 max-active: 8
max-wait: -1 max-wait: -1
max-idle: 8 max-idle: 2
min-idle: 0 min-idle: 0
candy: candy:
database: 15 database: 15
...@@ -135,7 +135,7 @@ spring: ...@@ -135,7 +135,7 @@ spring:
pool: pool:
max-active: 8 max-active: 8
max-wait: -1 max-wait: -1
max-idle: 8 max-idle: 2
min-idle: 0 min-idle: 0
stone: stone:
database: 15 database: 15
...@@ -147,7 +147,7 @@ spring: ...@@ -147,7 +147,7 @@ spring:
pool: pool:
max-active: 8 max-active: 8
max-wait: -1 max-wait: -1
max-idle: 8 max-idle: 2
min-idle: 0 min-idle: 0
goblin: goblin:
database: 15 database: 15
...@@ -159,7 +159,7 @@ spring: ...@@ -159,7 +159,7 @@ spring:
pool: pool:
max-active: 8 max-active: 8
max-wait: -1 max-wait: -1
max-idle: 8 max-idle: 2
min-idle: 0 min-idle: 0
data: data:
mongodb: mongodb:
......
...@@ -52,10 +52,10 @@ spring: ...@@ -52,10 +52,10 @@ spring:
host: ${liquidnet.redis.host} host: ${liquidnet.redis.host}
lettuce: lettuce:
pool: pool:
max-active: 8 max-active: 16
max-wait: -1 max-wait: -1
max-idle: 8 max-idle: 8
min-idle: 0 min-idle: 4
password: ${liquidnet.redis.password} password: ${liquidnet.redis.password}
mvc: mvc:
static-path-pattern: /templates/** static-path-pattern: /templates/**
......
...@@ -3,7 +3,7 @@ server: ...@@ -3,7 +3,7 @@ server:
tomcat: tomcat:
uri-encoding: UTF-8 uri-encoding: UTF-8
maxThreads: 2000 #默认200 maxThreads: 2000 #默认200
minSpareThreads: 2000 #默认10 minSpareThreads: 200 #默认10
maxConnections: 20000 #默认10000 maxConnections: 20000 #默认10000
acceptCount: 5000 #默认100 acceptCount: 5000 #默认100
processorCache: -1 #默认200 processorCache: -1 #默认200
...@@ -81,13 +81,13 @@ spring: ...@@ -81,13 +81,13 @@ spring:
password: ${liquidnet.redis.slime.password} password: ${liquidnet.redis.slime.password}
lettuce: lettuce:
pool: pool:
max-active: 8 max-active: 16
max-wait: -1 max-wait: -1
max-idle: 8 max-idle: 8
min-idle: 0 min-idle: 4
data: data:
mongodb: mongodb:
uri: mongodb://${liquidnet.mongodb.user}:${liquidnet.mongodb.pwd}@${liquidnet.mongodb.host}/?authSource=admin&maxPoolSize=2000&waitQueueMultiple=100 uri: mongodb://${liquidnet.mongodb.user}:${liquidnet.mongodb.pwd}@${liquidnet.mongodb.host}/?authSource=admin&maxPoolSize=200&waitQueueMultiple=100
sslEnabled: ${liquidnet.mongodb.sslEnabled} sslEnabled: ${liquidnet.mongodb.sslEnabled}
database: ${liquidnet.mongodb.database} database: ${liquidnet.mongodb.database}
# ----------------------------------------------------------- # -----------------------------------------------------------
...@@ -95,8 +95,11 @@ spring: ...@@ -95,8 +95,11 @@ spring:
# ----------------------------------------------------------- # -----------------------------------------------------------
global-auth: global-auth:
exclude-url-pattern: exclude-url-pattern:
- ${liquidnet.info.context}/doc.html # - ${liquidnet.info.context}/doc.html
- ${liquidnet.info.context}/webjars/** # - ${liquidnet.info.context}/webjars/**
- ${liquidnet.info.context}/swagger-resources/** # - ${liquidnet.info.context}/swagger-resources/**
- ${liquidnet.info.context}/v2/api-docs* # - ${liquidnet.info.context}/v2/api-docs*
- ${liquidnet.info.context}/fields/app/details - ${liquidnet.info.context}/fields/app/details
# -----------------------------------------------------------
# -----------------------------------------------------------
...@@ -2,11 +2,11 @@ server: ...@@ -2,11 +2,11 @@ server:
port: ${liquidnet.info.port} port: ${liquidnet.info.port}
tomcat: tomcat:
uri-encoding: UTF-8 uri-encoding: UTF-8
maxThreads: 200 #默认200 maxThreads: 2000 #默认200
minSpareThreads: 30 #默认10 minSpareThreads: 200 #默认10
maxConnections: 12000 #默认10000 maxConnections: 20000 #默认10000
acceptCount: 5000 #默认100 acceptCount: 5000 #默认100
processorCache: 200 #默认200 processorCache: -1 #默认200
servlet: servlet:
context-path: ${liquidnet.info.context} context-path: ${liquidnet.info.context}
# ----------------------------------------------------------- # -----------------------------------------------------------
...@@ -81,35 +81,13 @@ spring: ...@@ -81,35 +81,13 @@ spring:
password: ${liquidnet.redis.sweet.password} password: ${liquidnet.redis.sweet.password}
lettuce: lettuce:
pool: pool:
max-active: 8 max-active: 16
max-wait: -1 max-wait: -1
max-idle: 8 max-idle: 8
min-idle: 0 min-idle: 4
redisson:
singleServerConfig:
address: redis://${liquidnet.redis.sweet.host}:${liquidnet.redis.sweet.port}
password: ${liquidnet.redis.sweet.password}
clientName: null
database: 7 #选择使用哪个数据库0~15
idleConnectionTimeout: 10000
connectTimeout: 10000
timeout: 3000
retryAttempts: 3
retryInterval: 1500
subscriptionsPerConnection: 5
subscriptionConnectionMinimumIdleSize: 1
subscriptionConnectionPoolSize: 50
connectionMinimumIdleSize: 32
connectionPoolSize: 64
dnsMonitoringInterval: 5000
threads: 16
nettyThreads: 32
codec:
class: "org.redisson.codec.JsonJacksonCodec"
transportMode: "NIO"
data: data:
mongodb: mongodb:
uri: mongodb://${liquidnet.mongodb.user}:${liquidnet.mongodb.pwd}@${liquidnet.mongodb.host}/?authSource=admin&maxPoolSize=2000&waitQueueMultiple=100 uri: mongodb://${liquidnet.mongodb.user}:${liquidnet.mongodb.pwd}@${liquidnet.mongodb.host}/?authSource=admin&maxPoolSize=200&waitQueueMultiple=100
sslEnabled: ${liquidnet.mongodb.sslEnabled} sslEnabled: ${liquidnet.mongodb.sslEnabled}
database: ${liquidnet.mongodb.database} database: ${liquidnet.mongodb.database}
# ----------------------------------------------------------- # -----------------------------------------------------------
...@@ -117,10 +95,10 @@ spring: ...@@ -117,10 +95,10 @@ spring:
# ----------------------------------------------------------- # -----------------------------------------------------------
global-auth: global-auth:
exclude-url-pattern: exclude-url-pattern:
- ${liquidnet.info.context}/doc.html # - ${liquidnet.info.context}/doc.html
- ${liquidnet.info.context}/webjars/** # - ${liquidnet.info.context}/webjars/**
- ${liquidnet.info.context}/swagger-resources/** # - ${liquidnet.info.context}/swagger-resources/**
- ${liquidnet.info.context}/v2/api-docs* # - ${liquidnet.info.context}/v2/api-docs*
- ${liquidnet.info.context}/item/** - ${liquidnet.info.context}/item/**
- ${liquidnet.info.context}/user/inner/** - ${liquidnet.info.context}/user/inner/**
- ${liquidnet.info.context}/user/logs/in2111 - ${liquidnet.info.context}/user/logs/in2111
......
...@@ -3,10 +3,10 @@ server: ...@@ -3,10 +3,10 @@ server:
tomcat: tomcat:
uri-encoding: UTF-8 uri-encoding: UTF-8
maxThreads: 2000 #默认200 maxThreads: 2000 #默认200
minSpareThreads: 2000 #默认10 minSpareThreads: 200 #默认10
maxConnections: 20000 #默认10000 maxConnections: 20000 #默认10000
acceptCount: 5000 #默认100 acceptCount: 5000 #默认100
processorCache: 5000 #默认200 processorCache: -1 #默认200
servlet: servlet:
context-path: ${liquidnet.info.context} context-path: ${liquidnet.info.context}
# ----------------------------------------------------------- # -----------------------------------------------------------
...@@ -77,10 +77,10 @@ spring: ...@@ -77,10 +77,10 @@ spring:
password: ${liquidnet.redis.sweet.password} password: ${liquidnet.redis.sweet.password}
lettuce: lettuce:
pool: pool:
max-active: 8 max-active: 16
max-wait: -1 max-wait: -1
max-idle: 8 max-idle: 8
min-idle: 0 min-idle: 4
data: data:
mongodb: mongodb:
uri: mongodb://${liquidnet.mongodb.user}:${liquidnet.mongodb.pwd}@${liquidnet.mongodb.host}/?authSource=admin&maxPoolSize=200&waitQueueMultiple=100 uri: mongodb://${liquidnet.mongodb.user}:${liquidnet.mongodb.pwd}@${liquidnet.mongodb.host}/?authSource=admin&maxPoolSize=200&waitQueueMultiple=100
...@@ -94,11 +94,9 @@ spring: ...@@ -94,11 +94,9 @@ spring:
# type: org.apache.tomcat.jdbc.pool.DataSource # type: org.apache.tomcat.jdbc.pool.DataSource
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
hikari: hikari:
# 迁移数据暂设500 maximum-pool-size: 50
maximum-pool-size: 500 connection-timeout: 60000
# 迁移数据暂设10分钟 minimum-idle: 10
connection-timeout: 600000
minimum-idle: 8
connection-test-query: SELECT 1 connection-test-query: SELECT 1
# ----------------------------------------------------------- # -----------------------------------------------------------
......
...@@ -25,4 +25,4 @@ turbine: ...@@ -25,4 +25,4 @@ turbine:
logging: logging:
level: level:
root: INFO root: INFO
com.netflix.turbine.monitor: DEBUG com.netflix.turbine.monitor: info
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment