Details
-
Bug
-
Resolution: Fixed
-
Major
-
7.1.1
-
Enterprise Edition 7.1.1 build 3135
-
Untriaged
-
1
-
Unknown
Description
STEPS
- Host VM consists of 4 cpu cores.
lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 1
Core(s) per socket: 4
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 158
Model name: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Stepping: 10
CPU MHz: 2592.136
BogoMIPS: 5184.27
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 12288K
NUMA node0 CPU(s): 0-3
curl -XGET -k http://Administrator:password@10.112.190.101:8091/pools/default/stats/range/sys_cpu_host_cores_available
{"data":[{"metric":{"nodes":["172.17.0.2:8091"],"category":"system","instance":"ns_server","name":"sys_cpu_host_cores_available"},"values":[[1655979353,"4"],[1655979363,"4"],[1655979373,"4"],[1655979383,"4"],[1655979393,"4"],[1655979403,"4"],[1655979413,"4"]]}],"errors":[],"startTimestamp":1655979353,"endTimestamp":1655979413}
- Run Couchbase Server on a docker container inside the VM and make 2 out of the 4 cores available to this particular container.
sudo docker run -it --cpus=2 -p 8091-8096:8091-8096 -p 9102:9102 -p 11210:11210 build-docker.couchbase.com/couchbase/server-internal:7.1.1-3135
curl -XGET -k http://Administrator:password@10.112.190.101:8091/pools/default/stats/range/sys_cpu_cores_available
{"data":[{"metric":{"nodes":["172.17.0.2:8091"],"category":"system","instance":"ns_server","name":"sys_cpu_cores_available"},"values":[[1655979356,"2"],[1655979366,"2"],[1655979376,"2"],[1655979386,"2"],[1655979396,"2"],[1655979406,"2"],[1655979416,"2"]]}],"errors":[],"startTimestamp":1655979356,"endTimestamp":1655979416}
OBSERVATION
Following UI warning displays incorrect value for number of cores.
Attachments
Issue Links
- is a backport of
-
MB-52671 Eventing: Number of cpu cores mentioned in UI warning does not take into account container limits
-
- Resolved
-