调整UUID到新配置的线程数范围和注释说明

This commit is contained in:
wuweihua
2026-11-14 19:00:26 +08:00
parent 80d639d887
commit 7e699fb80e
4 changed files with 9 additions and 9 deletions
@@ -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
@@ -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;
}
@@ -97,9 +97,9 @@ public class UuidToNewMonitorServiceImpl implements IUuidToNewMonitorService
{
n = 1;
}
if (n > 4)
if (n > 16)
{
n = 4;
n = 16;
}
properties.setThreadCount(n);
}