gtsoft-snail-job-server/easy-retry-server/src/main/resources/application.yml

54 lines
1.5 KiB
YAML
Raw Normal View History

server:
port: 8080
2023-01-14 21:02:18 +08:00
spring:
2023-01-14 20:47:43 +08:00
profiles:
active: dev
2023-01-14 21:02:18 +08:00
datasource:
name: easy_retry
2023-05-01 23:16:01 +08:00
url: jdbc:mysql://localhost:3306/easy_retry?useSSL=false&characterEncoding=utf8&useUnicode=true
2023-01-14 21:02:18 +08:00
username: root
password: root
type: com.zaxxer.hikari.HikariDataSource
2023-04-20 09:00:54 +08:00
driver-class-name: com.mysql.cj.jdbc.Driver
2023-01-14 21:02:18 +08:00
hikari:
connection-timeout: 30000
minimum-idle: 5
maximum-pool-size: 20
auto-commit: true
idle-timeout: 30000
2023-04-20 09:00:54 +08:00
pool-name: easy_retry
2023-01-14 21:02:18 +08:00
max-lifetime: 1800000
connection-test-query: SELECT 1
web:
resources:
static-locations: classpath:admin/
2023-01-14 21:02:18 +08:00
mybatis-plus:
mapper-locations: classpath:/mapper/*.xml
typeAliasesPackage: com.aizuda.easy.retry.server.persistence.mybatis.po
2023-01-14 21:02:18 +08:00
global-config:
db-config:
field-strategy: NOT_EMPTY
capital-mode: false
logic-delete-value: 1
logic-not-delete-value: 0
configuration:
map-underscore-to-camel-case: true
cache-enabled: true
2023-04-20 09:00:54 +08:00
logging:
config: classpath:logback-boot.xml
easy-retry:
2023-05-01 23:16:01 +08:00
last-days: 30 # 拉取重试数据的天数
retry-pull-page-size: 100 # 拉取重试数据的每批次的大小
netty-port: 1788 # 服务端netty端口
total-partition: 2 # 重试和死信表的分区总数
limiter: 10 # 一个客户端每秒最多接收的重试数量指令
step: 100 # 号段模式下步长配置
log-storage: 90 # 日志保存时间(单位: day)
2023-06-17 18:55:55 +08:00
callback: # 回调配置
max-count: 288 #回调最大执行次数
trigger-interval: 900 #间隔时间
2023-01-14 21:02:18 +08:00