1 Star 0 Fork 2

doo/config

forked from HTShop/config 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
pigx-daemon-elastic-job-dev.yml 4.99 KB
一键复制 编辑 原始数据 按行查看 历史
Leisure 提交于 2019-04-15 13:52 . 更新 pigx-daemon-elastic-job-dev.yml
## spring security 配置
security:
oauth2:
client:
client-id: ENC(tz2NM4GcmnE7sNJTYL8ZSg==)
client-secret: ENC(tz2NM4GcmnE7sNJTYL8ZSg==)
scope: server
## 定时任务
spring:
datasource:
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
username: root
password: taSDmyGfHBC9GdvvKw62
url: jdbc:mysql://47.110.125.220:3306/pigxx_job1.1?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8
data:
mongodb:
uri: mongodb://root:fdfgdfgsfgdTYTYJMHMDFD14545@47.110.125.220:27017/test
elasticjob:
# 分布式任务协调依赖zookeeper
zookeeper:
server-lists: 47.110.125.220:2181
namespace: pigx-daemon-elastic
# 普通任务
simples:
spring-simple-job:
job-class: com.pig4cloud.pigx.daemon.elastic.job.PigxSimpleJob
cron: 0 0 0/1 * * ?
sharding-total-count: 3
sharding-item-parameters: 0=service1,1=service2,2=service3
eventTraceRdbDataSource: 'dataSource'
listener:
listener-class: com.pig4cloud.pigx.daemon.elastic.listener.PigxElasticJobListener
spring-simple-job2:
job-class: com.pig4cloud.pigx.daemon.elastic.job.PigxSimpleJob2
cron: 0 0 0/1 * * ?
sharding-total-count: 3
sharding-item-parameters: 0=service1,1=service2,2=service3
eventTraceRdbDataSource: 'dataSource'
listener:
listener-class: com.pig4cloud.pigx.daemon.elastic.listener.PigxElasticJobListener
#每年删除旧库,创建新库
spring-simple-FaceGroupYearJob:
job-class: com.pig4cloud.pigx.daemon.elastic.job.FaceGroupYearJob
cron: 0 0 0 1 1 ? *
sharding-total-count: 3
sharding-item-parameters: 0=service1,1=service2,2=service3
eventTraceRdbDataSource: 'dataSource'
listener:
distributed-listener-class: com.pig4cloud.pigx.daemon.elastic.listener.PigxDistributeElasticJobListener
started-timeout-milliseconds: 50000
completed-timeout-milliseconds: 100000
#每月删除旧库,创建新库
spring-simple-FaceGroupMonthJob:
job-class: com.pig4cloud.pigx.daemon.elastic.job.FaceGroupMonthJob
cron: 0 0 0 1 1/1 ?
sharding-total-count: 3
sharding-item-parameters: 0=service1,1=service2,2=service3
eventTraceRdbDataSource: 'dataSource'
listener:
distributed-listener-class: com.pig4cloud.pigx.daemon.elastic.listener.PigxDistributeElasticJobListener
started-timeout-milliseconds: 50000
completed-timeout-milliseconds: 100000
#每周删除旧库,创建新库
spring-simple-FaceGroupWeekJob:
job-class: com.pig4cloud.pigx.daemon.elastic.job.FaceGroupWeekJob
cron: 0 0 0 ? * MON
sharding-total-count: 3
sharding-item-parameters: 0=service1,1=service2,2=service3
eventTraceRdbDataSource: 'dataSource'
listener:
distributed-listener-class: com.pig4cloud.pigx.daemon.elastic.listener.PigxDistributeElasticJobListener
started-timeout-milliseconds: 50000
completed-timeout-milliseconds: 100000
#每天删除旧库,创建新库
spring-simple-FaceGroupDayJob:
job-class: com.pig4cloud.pigx.daemon.elastic.job.FaceGroupDayJob
cron: 0 0 0 1/1 * ?
sharding-total-count: 3
sharding-item-parameters: 0=service1,1=service2,2=service3
eventTraceRdbDataSource: 'dataSource'
listener:
distributed-listener-class: com.pig4cloud.pigx.daemon.elastic.listener.PigxDistributeElasticJobListener
started-timeout-milliseconds: 50000
completed-timeout-milliseconds: 100000
#每小时删除旧库,创建新库
spring-simple-FaceGroupHourJob:
job-class: com.pig4cloud.pigx.daemon.elastic.job.FaceGroupHourJob
cron: 0 0 0/1 * * ?
sharding-total-count: 3
sharding-item-parameters: 0=service1,1=service2,2=service3
eventTraceRdbDataSource: 'dataSource'
listener:
distributed-listener-class: com.pig4cloud.pigx.daemon.elastic.listener.PigxDistributeElasticJobListener
started-timeout-milliseconds: 50000
completed-timeout-milliseconds: 100000
# 简单任务
dataflows:
spring-dataflow-job:
job-class: com.pig4cloud.pigx.daemon.elastic.job.PigxDataflowJob
cron: 0 0 0/1 * * ?
sharding-total-count: 3
sharding-item-parameters: 0=service1,1=service2,2=service3
streaming-process: true
eventTraceRdbDataSource: 'dataSource'
listener:
distributed-listener-class: com.pig4cloud.pigx.daemon.elastic.listener.PigxDistributeElasticJobListener
started-timeout-milliseconds: 50000
completed-timeout-milliseconds: 100000
face:
threadPool:
num: 3
maxNum: 3
queue: 3
##image:
##from: /home/images/face/from/
##to: /home/images/face/to/
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/dzh19951015/config.git
git@gitee.com:dzh19951015/config.git
dzh19951015
config
config
master

搜索帮助