hoe-recovery/hoe-admin/admin-boot/target/classes/bootstrap.yml

79 lines
3.6 KiB
YAML
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.

spring:
application:
name: hoe-admin
main:
allow-bean-definition-overriding: true
profiles:
active: dev
cloud:
nacos:
discovery:
# metadata:
# serviceGroup: ytChen
server-addr: localhost:8848
namespace: 11bfd099-10d6-4f2c-b969-58b76e435cce
config:
server-addr: localhost:8848
file-extension: yaml
prefix: hoe-admin
group: dev
namespace: 11bfd099-10d6-4f2c-b969-58b76e435cce
dynamic:
tp:
enabled: true
enabledBanner: true # 是否开启banner打印默认true
enabledCollect: true # 是否开启监控指标采集默认false
collectorTypes: micrometer,logging # 监控数据采集器类型logging | micrometer | internal_logging默认micrometer
logPath: /home/logs # 监控日志数据路径,默认 ${user.home}/logs采集类型非logging不用配置
monitorInterval: 5 # 监控时间间隔报警判断、指标采集默认5s
platforms: # 通知报警平台配置
- platform: email
receivers: 1650611030@qq.com
tomcatTp: # tomcat webserver线程池配置
corePoolSize: 100
maximumPoolSize: 200
keepAliveTime: 60
executors: # 动态线程池配置
- threadPoolName: dtpExecutor
# 线程池别名
executorType: common # 线程池类型common、eager适用于io密集型
corePoolSize: 5 # 核心线程数
maximumPoolSize: 18 # 最大线程数
queueCapacity: 400 # 任务队列容量
queueType: VariableLinkedBlockingQueue # 任务队列查看源码QueueTypeEnum枚举类
rejectedHandlerType: CallerRunsPolicy # 拒绝策略查看RejectedTypeEnum枚举类
keepAliveTime: 50
allowCoreThreadTimeOut: false # 是否允许核心线程池超时
threadNamePrefix: test # 线程名前缀
waitForTasksToCompleteOnShutdown: false # 参考spring线程池设计优雅关闭线程池
awaitTerminationSeconds: 5 # 单位s
preStartAllCoreThreads: false # 是否预热所有核心线程默认false
runTimeout: 200 # 任务执行超时阈值目前只做告警用单位ms
queueTimeout: 100 # 任务在队列等待超时阈值目前只做告警用单位ms
taskWrapperNames: [ "ttl" ] # 任务包装器名称集成TaskWrapper接口
notifyItems: # 报警项,不配置自动会按默认值配置(变更通知、容量报警、活性报警、拒绝报警、任务超时报警)
- type: capacity # 报警项类型,查看源码 NotifyTypeEnum枚举类
enabled: true
threshold: 80 # 报警阈值
platforms: [ ding,wechat ] # 可选配置不配置默认拿上层platforms配置的所以平台
interval: 120 # 报警间隔单位s
- type: change
enabled: true
- type: liveness
enabled: true
threshold: 80
- type: reject
enabled: true
threshold: 1
- type: run_timeout
enabled: true
threshold: 1
- type: queue_timeout
enabled: true
threshold: 1
server:
port: 9002