From 3de774517e26626d8a5c31670355339075402894 Mon Sep 17 00:00:00 2001 From: Iamasoldier <1272745473@qq.com> Date: Wed, 15 Oct 2025 12:32:45 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=96=87=E4=BB=B6=E4=B8=AD=E5=BF=83)?= =?UTF-8?q?=EF=BC=9A=E5=86=B7=E7=83=AD=E6=95=B0=E6=8D=AE=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E5=AE=8C=E5=96=84=EF=BC=8C=E5=B7=B2=E5=AE=9E?= =?UTF-8?q?=E7=8E=B0=E6=97=B6=E9=97=B4=E7=AA=97=E5=8F=A3=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E5=90=84=E8=87=AA=E7=9A=84=E5=AD=98=E5=82=A8=E6=9C=8D=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/TimeWindowStorageService.java | 4 +-- .../src/main/resources/application-sync.yml | 36 ------------------- .../src/main/resources/application.yml | 18 ---------- .../resources/application-prod.properties | 2 +- 4 files changed, 3 insertions(+), 57 deletions(-) delete mode 100644 zlt-business/file-center/src/main/resources/application-sync.yml diff --git a/zlt-business/file-center/src/main/java/com/central/file/service/TimeWindowStorageService.java b/zlt-business/file-center/src/main/java/com/central/file/service/TimeWindowStorageService.java index a25c910d..228bd379 100644 --- a/zlt-business/file-center/src/main/java/com/central/file/service/TimeWindowStorageService.java +++ b/zlt-business/file-center/src/main/java/com/central/file/service/TimeWindowStorageService.java @@ -44,8 +44,8 @@ public class TimeWindowStorageService { private FileMapper fileMapper; // 配置参数 - @Value("${zlt.storage.hot-data-days:30}") - private int hotDataDays; // 热数据保留天数,默认30天 +// @Value("${zlt.storage.hot-data-days}") + private int hotDataDays = 30; // 热数据保留天数,默认30天 // @Value("${zlt.storage.enable-time-window:true}") private boolean enableTimeWindow = true; // 是否启用时间窗口存储 diff --git a/zlt-business/file-center/src/main/resources/application-sync.yml b/zlt-business/file-center/src/main/resources/application-sync.yml deleted file mode 100644 index 8db55cfa..00000000 --- a/zlt-business/file-center/src/main/resources/application-sync.yml +++ /dev/null @@ -1,36 +0,0 @@ -# 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 \ No newline at end of file diff --git a/zlt-business/file-center/src/main/resources/application.yml b/zlt-business/file-center/src/main/resources/application.yml index 2612dd7d..ace8c5d9 100644 --- a/zlt-business/file-center/src/main/resources/application.yml +++ b/zlt-business/file-center/src/main/resources/application.yml @@ -47,25 +47,7 @@ zlt: bucketName: ${zlt.oss.bucketName} # 时间窗口存储配置 storage: - enable-time-window: true # 启用时间窗口智能存储 hot-data-days: 30 # 热数据保留天数 - migration: - enable-verification: true # 启用迁移验证 - delete-source: false # 迁移后是否删除源文件 - batch-size: 100 # 迁移批次大小 - hot-sync: - enabled: true # 启用热数据同步 - batch-size: 100 # 批次大小 - interval-minutes: 30 # 同步间隔 - access-threshold: 10 # 访问次数阈值 - max-threads: 5 # 最大线程数 - - sync: - schedule: - enabled: true # 启用定时任务 - cron: "0 0 2 * * ?" # 每日同步时间 - status-check: - cron: "0 0 * * * ?" # 状态检查时间 #多租户配置 tenant: enable: false diff --git a/zlt-config/src/main/resources/application-prod.properties b/zlt-config/src/main/resources/application-prod.properties index db2d4ea6..f8492997 100644 --- a/zlt-config/src/main/resources/application-prod.properties +++ b/zlt-config/src/main/resources/application-prod.properties @@ -28,7 +28,7 @@ zlt.fdfs.trackerList=${zlt.fdfs.web-url}:22122 ##### s3配置 zlt.s3.access-key=Hq78CaYg2BI6ZfxCRMKI zlt.s3.accessKeySecret=DJCt5q9K7GQ2zcBEfr3twb1vQ6BgUW1LKFlI5NSw -zlt.s3.endpoint=http://220.205.16.27:9000 +zlt.s3.endpoint=https://local.goflytec.com:9194 zlt.s3.bucketName=goflymedia zlt.s3.region=us-east-1