From 7e699fb80ed14a9da210adaa35db468fddf2dda0 Mon Sep 17 00:00:00 2001 From: wuweihua <88888888> Date: Sat, 14 Nov 2026 19:00:26 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4UUID=E5=88=B0=E6=96=B0?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E7=9A=84=E7=BA=BF=E7=A8=8B=E6=95=B0=E8=8C=83?= =?UTF-8?q?=E5=9B=B4=E5=92=8C=E6=B3=A8=E9=87=8A=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bms-back/bms-admin/src/main/resources/application.yml | 2 +- .../java/com/bms/price/config/UuidToNewProperties.java | 10 +++++----- .../service/impl/UuidToNewMonitorServiceImpl.java | 4 ++-- bms-front/src/views/monitor/uuidToNew/index.vue | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/bms-back/bms-admin/src/main/resources/application.yml b/bms-back/bms-admin/src/main/resources/application.yml index afde0d08..6b223520 100644 --- a/bms-back/bms-admin/src/main/resources/application.yml +++ b/bms-back/bms-admin/src/main/resources/application.yml @@ -30,7 +30,7 @@ bms: mig: uuid-to-new: batch-size: 200 - # 1=single thread; sprint on 4c8g use 2~3 (max 4) + # 1~16 (same ceiling as local-rebill default); 4c8g often 2~4 thread-count: 2 # sleep when no pending orders while switch is ON idle-sleep-ms: 3000 diff --git a/bms-back/bms-system/src/main/java/com/bms/price/config/UuidToNewProperties.java b/bms-back/bms-system/src/main/java/com/bms/price/config/UuidToNewProperties.java index 21989435..72376bb2 100644 --- a/bms-back/bms-system/src/main/java/com/bms/price/config/UuidToNewProperties.java +++ b/bms-back/bms-system/src/main/java/com/bms/price/config/UuidToNewProperties.java @@ -14,8 +14,8 @@ public class UuidToNewProperties /** 每轮抓取订单数(1~1000) */ private int batchSize = 200; /** - * 批内工作线程数(1~4)。 - * 默认1;冲刺追数可设2~3(生产4核谨慎)。 + * 批内工作线程数(1~16)。 + * 默认1;冲刺可上到与本地重计费相近的16,4核机器需盯CPU/连接池。 */ private int threadCount = 1; /** 无待处理订单时空转睡眠毫秒(开关仍为开时) */ @@ -56,7 +56,7 @@ public class UuidToNewProperties this.threadCount = threadCount; } - /** 限定在1~4 */ + /** 限定在1~16 */ public int resolvedThreadCount() { int n = threadCount; @@ -64,9 +64,9 @@ public class UuidToNewProperties { return 1; } - if (n > 4) + if (n > 16) { - return 4; + return 16; } return n; } diff --git a/bms-back/bms-system/src/main/java/com/bms/price/migration/service/impl/UuidToNewMonitorServiceImpl.java b/bms-back/bms-system/src/main/java/com/bms/price/migration/service/impl/UuidToNewMonitorServiceImpl.java index 3404744a..9baee091 100644 --- a/bms-back/bms-system/src/main/java/com/bms/price/migration/service/impl/UuidToNewMonitorServiceImpl.java +++ b/bms-back/bms-system/src/main/java/com/bms/price/migration/service/impl/UuidToNewMonitorServiceImpl.java @@ -97,9 +97,9 @@ public class UuidToNewMonitorServiceImpl implements IUuidToNewMonitorService { n = 1; } - if (n > 4) + if (n > 16) { - n = 4; + n = 16; } properties.setThreadCount(n); } diff --git a/bms-front/src/views/monitor/uuidToNew/index.vue b/bms-front/src/views/monitor/uuidToNew/index.vue index c52247c5..2d215dff 100644 --- a/bms-front/src/views/monitor/uuidToNew/index.vue +++ b/bms-front/src/views/monitor/uuidToNew/index.vue @@ -124,7 +124,7 @@ const configLoading = ref(false) const switchOn = ref(false) const threadCount = ref(2) const batchSize = ref(200) -const threadOptions = [1, 2, 3, 4] +const threadOptions = [2, 4, 6, 8, 10, 12, 14, 16] const batchOptions = [50, 100, 200, 300, 500, 1000] const progress = reactive({