2022-06-21 20:47:46 +08:00
|
|
|
|
#当前服务的基本信息
|
|
|
|
|
|
microservice:
|
|
|
|
|
|
ename: @artifactId@
|
|
|
|
|
|
name: '@name@'
|
|
|
|
|
|
version: @version@
|
|
|
|
|
|
server:
|
|
|
|
|
|
port: 10218
|
|
|
|
|
|
#feign接口开启服务熔断降级处理
|
|
|
|
|
|
feign:
|
|
|
|
|
|
sentinel:
|
|
|
|
|
|
enabled: true
|
|
|
|
|
|
spring:
|
|
|
|
|
|
application:
|
|
|
|
|
|
name: @artifactId@
|
|
|
|
|
|
#nacos注册中心以及配置中心的指定
|
|
|
|
|
|
cloud:
|
|
|
|
|
|
nacos:
|
|
|
|
|
|
discovery:
|
2022-08-04 14:05:45 +08:00
|
|
|
|
ip: @service.server.url@
|
2022-06-21 20:47:46 +08:00
|
|
|
|
server-addr: @nacos.url@
|
|
|
|
|
|
namespace: @nacos.namespace@
|
|
|
|
|
|
config:
|
|
|
|
|
|
server-addr: @nacos.url@
|
|
|
|
|
|
namespace: @nacos.namespace@
|
|
|
|
|
|
file-extension: yaml
|
|
|
|
|
|
shared-configs:
|
|
|
|
|
|
- data-id: share-config.yaml
|
|
|
|
|
|
refresh: true
|
|
|
|
|
|
- data-Id: share-config-datasource-db.yaml
|
|
|
|
|
|
refresh: true
|
|
|
|
|
|
main:
|
|
|
|
|
|
allow-bean-definition-overriding: true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#项目日志的配置
|
|
|
|
|
|
logging:
|
|
|
|
|
|
config: http://@nacos.url@/nacos/v1/cs/configs?tenant=@nacos.namespace@&group=DEFAULT_GROUP&dataId=logback.xml
|
|
|
|
|
|
level:
|
|
|
|
|
|
root: info
|
|
|
|
|
|
|
|
|
|
|
|
#调度中心部署跟地址 [选填]:如调度中心集群部署存在多个地址则用逗号分隔。执行器将会使用该地址进行"执行器心跳注册"和"任务结果回调";为空则关闭自动注册;
|
|
|
|
|
|
xxl:
|
|
|
|
|
|
job:
|
|
|
|
|
|
admin:
|
2022-08-04 14:05:45 +08:00
|
|
|
|
addresses: http://192.168.1.102:10217/job-admin
|
2022-06-21 20:47:46 +08:00
|
|
|
|
#执行器通讯TOKEN [选填]:非空时启用;
|
|
|
|
|
|
accessToken:
|
|
|
|
|
|
executor:
|
|
|
|
|
|
#执行器AppName [选填]:执行器心跳注册分组依据;为空则关闭自动注册
|
2022-08-04 14:05:45 +08:00
|
|
|
|
appname: executorCdf
|
2022-06-21 20:47:46 +08:00
|
|
|
|
#执行器注册 [选填]:优先使用该配置作为注册地址,为空时使用内嵌服务 ”IP:PORT“ 作为注册地址。从而更灵活的支持容器类型执行器动态IP和动态映射端口问题。
|
|
|
|
|
|
address:
|
|
|
|
|
|
#执行器IP [选填]:默认为空表示自动获取IP,多网卡时可手动设置指定IP,该IP不会绑定Host仅作为通讯实用;地址信息用于 "执行器注册" 和 "调度中心请求并触发任务";
|
2022-07-13 15:44:05 +08:00
|
|
|
|
ip: @service.server.url@
|
2022-06-21 20:47:46 +08:00
|
|
|
|
#执行器端口号 [选填]:小于等于0则自动获取;默认端口为9999,单机部署多个执行器时,注意要配置不同执行器端口;
|
|
|
|
|
|
port: 10219
|
|
|
|
|
|
#执行器运行日志文件存储磁盘路径 [选填] :需要对该路径拥有读写权限;为空则使用默认路径;
|
|
|
|
|
|
logpath: /data/applogs/xxl-job/jobhandler
|
|
|
|
|
|
#执行器日志文件保存天数 [选填] : 过期日志自动清理, 限制值大于等于3时生效; 否则, 如-1, 关闭自动清理功能;
|
|
|
|
|
|
logretentiondays: 30
|
|
|
|
|
|
|