Commit 1d3fde9
feat: add configurable worker_count for KBS HTTP server
The KBS uses actix-web, which defaults to one HTTP worker thread per
logical CPU core (std::thread::available_parallelism). On high-core-
count systems (e.g., 160-core AMD EPYC 9845 with 320 threads), this
creates hundreds of workers that exceed the container's default nofile
ulimit (1024/2048 in CRI-O), causing the KBS to crash on startup with
"Too many open files".
Add an optional kbs.workerCount Helm value that maps to the
worker_count field in the KBS [http_server] config section. When set,
the KBS uses the specified number of workers instead of auto-detecting.
When unset, the existing behavior is preserved.
The KBS binary already supports worker_count in its config
(kbs/src/config.rs:41, kbs/src/api_server.rs:145-147 in openshift/
trustee v1.1.0) but the Helm chart did not expose it.
Signed-off-by: Jens Freimann <jfreiman@redhat.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent ebde8b7 commit 1d3fde9
2 files changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
51 | 58 | | |
52 | 59 | | |
53 | 60 | | |
| |||
0 commit comments