Commit 6abd2fb
authored
fix(maxprocs): treat ConfigureMaxProcs error as non-fatal (#7655)
When KEDA runs in environments where /sys/fs/cgroup/cpu.max is not
readable (e.g. EKS auto-mode, restricted SecurityContexts), maxprocs.Set()
returns a permission error and KEDA crashes on startup.
The Go runtime handles GOMAXPROCS sensibly without explicit configuration,
so this error should not be fatal. Log it as a warning and continue
startup.
Fixes #7653
Signed-off-by: ManvithaP-hub <62259625+ManvithaP-hub@users.noreply.github.com>1 parent 2efa0dd commit 6abd2fb
3 files changed
Lines changed: 6 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
| 291 | + | |
| 292 | + | |
295 | 293 | | |
296 | 294 | | |
297 | 295 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
| 127 | + | |
| 128 | + | |
131 | 129 | | |
132 | 130 | | |
133 | 131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
| 81 | + | |
| 82 | + | |
85 | 83 | | |
86 | | - | |
87 | 84 | | |
88 | 85 | | |
89 | 86 | | |
| |||
0 commit comments