Skip to content

Commit

Permalink
fixup api thread count comment
Browse files Browse the repository at this point in the history
  • Loading branch information
wiedehopf committed Oct 10, 2024
1 parent 6ee23d7 commit 9ef77b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api.c
Original file line number Diff line number Diff line change
Expand Up @@ -1916,7 +1916,7 @@ static void *apiUpdateEntryPoint(void *arg) {
}

void apiBufferInit() {
// 1 api thread per 2 cores as we assume nginx running on the same box, better chances not swamping the CPU under high API load scenarios
// if --devel=apiThreads,<n> isn't given, use nproc - 1 api threads (nproc - 2 for nproc > 6)
if (Modes.apiThreadCount <= 0) {
Modes.apiThreadCount = imax(1, Modes.num_procs - (Modes.num_procs > 6 ? 2 : 1));
}
Expand Down

0 comments on commit 9ef77b3

Please sign in to comment.