Increase AI worker cap to twelve (#8794)

This commit is contained in:
2026-07-26 07:04:53 -07:00
committed by GitHub
parent 0f72494fef
commit 39a374fc42
2 changed files with 5 additions and 3 deletions
@@ -8,7 +8,7 @@ namespace {
// Keep the process responsive to gRPC and command handling while still giving lookahead enough
// parallelism to saturate typical production hosts.
constexpr size_t kMaximumAIWorkerCount = 8;
constexpr size_t kMaximumAIWorkerCount = 12;
} // namespace
@@ -11,8 +11,10 @@ TEST(AIThreadPoolTest, CalculatesBoundedWorkerCountAndLeavesOneHardwareThreadFre
EXPECT_EQ(1, AIWorkerCountForHardwareConcurrency(0));
EXPECT_EQ(1, AIWorkerCountForHardwareConcurrency(1));
EXPECT_EQ(3, AIWorkerCountForHardwareConcurrency(4));
EXPECT_EQ(8, AIWorkerCountForHardwareConcurrency(16));
EXPECT_EQ(8, AIWorkerCountForHardwareConcurrency(128));
EXPECT_EQ(11, AIWorkerCountForHardwareConcurrency(12));
EXPECT_EQ(12, AIWorkerCountForHardwareConcurrency(13));
EXPECT_EQ(12, AIWorkerCountForHardwareConcurrency(16));
EXPECT_EQ(12, AIWorkerCountForHardwareConcurrency(128));
}
TEST(AIThreadPoolTest, NormalizesZeroWorkersToOne) {