Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-52746

[BP 7.1.2 MB-52671] - Eventing: Number of cpu cores mentioned in UI warning does not take into account container limits

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 7.1.1
    • 7.1.2
    • eventing, UI
    • 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}
        

      1. 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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            Build couchbase-server-7.1.2-3338 contains eventing commit f46c7c7 with commit message:
            MB-52746: Return GOMAXPROCS value for get cpu

            build-team Couchbase Build Team added a comment - Build couchbase-server-7.1.2-3338 contains eventing commit f46c7c7 with commit message: MB-52746 : Return GOMAXPROCS value for get cpu
            sujay.gad Sujay Gad added a comment -

            Validated the fix on Enterprise Edition 7.1.2 build 3340.

            sujay.gad Sujay Gad added a comment - Validated the fix on Enterprise Edition 7.1.2 build 3340.

            Build couchbase-server-7.2.0-5000 contains eventing commit f46c7c7 with commit message:
            MB-52746: Return GOMAXPROCS value for get cpu

            build-team Couchbase Build Team added a comment - Build couchbase-server-7.2.0-5000 contains eventing commit f46c7c7 with commit message: MB-52746 : Return GOMAXPROCS value for get cpu

            People

              sujay.gad Sujay Gad
              jeelan.poola Jeelan Poola
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty