Files
gofly-platform-services/zlt-business/file-center/src/main/resources/application-sync.yml
T

36 lines
825 B
YAML

# OSS到MinIO同步配置
zlt:
storage:
# 热数据保留天数
hot-data-days: 30
# 同步功能配置
sync:
# 是否启用同步
enabled: true
# 夜间同步配置
night-start: "0 0 0 * * ?" # 每天晚上00:00启动
night-stop: "0 0 6 * * ?" # 每天早上6:00停止
# 同步间隔(毫秒)
interval: 180000 # 3分钟
# 批量同步大小
batch-size: 100
# 是否启用事件驱动同步
event-driven: true
# 同步线程池配置
thread-pool:
core-size: 2
max-size: 5
queue-size: 100
keep-alive: 60
# 日志配置
logging:
level:
com.central.file.service.OssToMinioSyncScheduler: INFO
com.central.file.service.OssToS3SyncService: DEBUG