| | |
| | | --- # 监控配置 |
| | | spring: |
| | | boot: |
| | | admin: |
| | | # Spring Boot Admin Client 客户端的相关配置 |
| | | client: |
| | | --- # 监控中心配置 |
| | | spring.boot.admin.client: |
| | | # 增加客户端开关 |
| | | enabled: true |
| | | # 设置 Spring Boot Admin Server 地址 |
| | | url: http://localhost:9090/admin |
| | | instance: |
| | | service-host-type: IP |
| | |
| | | password: 123456 |
| | | |
| | | --- # xxl-job 配置 |
| | | xxl: |
| | | job: |
| | | xxl.job: |
| | | # 执行器开关 |
| | | enabled: true |
| | | # 调度中心地址:如调度中心集群部署存在多个地址则用逗号分隔。 |
| | | admin-addresses: http://localhost:9100/xxl-job-admin |
| | | # 执行器通讯TOKEN:非空时启用 |
| | | access-token: xxl-job |
| | | # 执行器配置 |
| | | executor: |
| | | # 执行器AppName:执行器心跳注册分组依据;为空则关闭自动注册 |
| | | appname: xxl-job-executor |
| | |
| | | filters: stat |
| | | |
| | | --- # druid 配置 |
| | | spring: |
| | | datasource: |
| | | druid: |
| | | spring.datasource.druid: |
| | | webStatFilter: |
| | | enabled: true |
| | | statViewServlet: |
| | |
| | | threads: 4 |
| | | # Netty线程池数量 |
| | | nettyThreads: 8 |
| | | # 传输模式 |
| | | transportMode: "NIO" |
| | | # 单节点配置 |
| | | singleServerConfig: |
| | | # 客户端名称 |
| | |
| | | idleConnectionTimeout: 10000 |
| | | # 命令等待超时,单位:毫秒 |
| | | timeout: 3000 |
| | | # 如果尝试在此限制之内发送成功,则开始启用 timeout 计时。 |
| | | retryAttempts: 3 |
| | | # 命令重试发送时间间隔,单位:毫秒 |
| | | retryInterval: 1500 |
| | | # 发布和订阅连接池大小 |
| | | subscriptionConnectionPoolSize: 50 |