fix: 提升到80并发
This commit is contained in:
parent
176ad61ac0
commit
24d32825cd
|
|
@ -89,7 +89,7 @@ impl VideoClassificationQueue {
|
|||
|
||||
// 考虑到AI分类任务主要是I/O密集型(网络请求),可以设置更高的并发数
|
||||
// 但限制在10以内以避免过度消耗资源
|
||||
let optimal = std::cmp::min(cpu_cores * 2, 20);
|
||||
let optimal = std::cmp::min(cpu_cores * 2, 80);
|
||||
|
||||
println!("🔧 检测到 {} 个CPU核心,设置AI视频分类并发数为: {}", cpu_cores, optimal);
|
||||
optimal
|
||||
|
|
|
|||
Loading…
Reference in New Issue