调整UUID到新配置的线程数范围和注释说明
This commit is contained in:
@@ -30,7 +30,7 @@ bms:
|
|||||||
mig:
|
mig:
|
||||||
uuid-to-new:
|
uuid-to-new:
|
||||||
batch-size: 200
|
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
|
thread-count: 2
|
||||||
# sleep when no pending orders while switch is ON
|
# sleep when no pending orders while switch is ON
|
||||||
idle-sleep-ms: 3000
|
idle-sleep-ms: 3000
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ public class UuidToNewProperties
|
|||||||
/** 每轮抓取订单数(1~1000) */
|
/** 每轮抓取订单数(1~1000) */
|
||||||
private int batchSize = 200;
|
private int batchSize = 200;
|
||||||
/**
|
/**
|
||||||
* 批内工作线程数(1~4)。
|
* 批内工作线程数(1~16)。
|
||||||
* 默认1;冲刺追数可设2~3(生产4核谨慎)。
|
* 默认1;冲刺可上到与本地重计费相近的16,4核机器需盯CPU/连接池。
|
||||||
*/
|
*/
|
||||||
private int threadCount = 1;
|
private int threadCount = 1;
|
||||||
/** 无待处理订单时空转睡眠毫秒(开关仍为开时) */
|
/** 无待处理订单时空转睡眠毫秒(开关仍为开时) */
|
||||||
@@ -56,7 +56,7 @@ public class UuidToNewProperties
|
|||||||
this.threadCount = threadCount;
|
this.threadCount = threadCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 限定在1~4 */
|
/** 限定在1~16 */
|
||||||
public int resolvedThreadCount()
|
public int resolvedThreadCount()
|
||||||
{
|
{
|
||||||
int n = threadCount;
|
int n = threadCount;
|
||||||
@@ -64,9 +64,9 @@ public class UuidToNewProperties
|
|||||||
{
|
{
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
if (n > 4)
|
if (n > 16)
|
||||||
{
|
{
|
||||||
return 4;
|
return 16;
|
||||||
}
|
}
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -97,9 +97,9 @@ public class UuidToNewMonitorServiceImpl implements IUuidToNewMonitorService
|
|||||||
{
|
{
|
||||||
n = 1;
|
n = 1;
|
||||||
}
|
}
|
||||||
if (n > 4)
|
if (n > 16)
|
||||||
{
|
{
|
||||||
n = 4;
|
n = 16;
|
||||||
}
|
}
|
||||||
properties.setThreadCount(n);
|
properties.setThreadCount(n);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ const configLoading = ref(false)
|
|||||||
const switchOn = ref(false)
|
const switchOn = ref(false)
|
||||||
const threadCount = ref(2)
|
const threadCount = ref(2)
|
||||||
const batchSize = ref(200)
|
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 batchOptions = [50, 100, 200, 300, 500, 1000]
|
||||||
|
|
||||||
const progress = reactive({
|
const progress = reactive({
|
||||||
|
|||||||
Reference in New Issue
Block a user