Details
-
Improvement
-
Resolution: Done
-
Major
-
7.1.1
-
1
-
CX Sprint 285
Description
As part of MB-47591 ns_server reads cgroups CPU limits using sigar and sets COUCHBASE_CPU_COUNT to the approximate number of available cores on the machine (rounded up). Cbas should use this value to set the limit for the number of threads for JVM.
Note that ns_server will set GOMAXPROCS for the cbas go process, but cbas needs to set all the necessary flags for JVM.
We can't fully rely on JVM's internals to determine cgroups CPU limits because we need a way to override it. In other words, COUCHBASE_CPU_COUNT can be set not only by ns_server but also by admin, which would mean that admin wants to override cgroups cpu settings.
Attachments
Issue Links
- blocks
-
MB-47591 Incorrect cgroup resource detection (core/memory) when running in Container / K8S
- Closed