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

"memoryTotal": 0, "memoryFree": 0 - Both are not getting populated in /nodes/self

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Minor
    • backlog
    • 7.1.0
    • ns_server
    • 7.1.0-1013-enterprise
    • Untriaged
    • 1
    • Unknown

    Description

      Install server and check /nodes/self api. Here is the sample output:

      7.1.0-1013

      {
      "availableStorage": {
      "hdd": [
      {
      "path": "/dev",
      "sizeKBytes": 5991472,
      "usagePercent": 0
      },
      {
      "path": "/dev/shm",
      "sizeKBytes": 6003192,
      "usagePercent": 0
      },
      {
      "path": "/run",
      "sizeKBytes": 6003192,
      "usagePercent": 10
      },
      {
      "path": "/sys/fs/cgroup",
      "sizeKBytes": 6003192,
      "usagePercent": 0
      },
      {
      "path": "/",
      "sizeKBytes": 32498172,
      "usagePercent": 18
      },
      {
      "path": "/data",
      "sizeKBytes": 94324740,
      "usagePercent": 1
      },
      {
      "path": "/boot",
      "sizeKBytes": 508588,
      "usagePercent": 57
      },
      {
      "path": "/run/user/0",
      "sizeKBytes": 1200640,
      "usagePercent": 0
      }
      ]
      },
      "storageTotals": {
      "ram": {
      "total": 12294115328,
      "quotaTotal": 8236564480,
      "quotaUsed": 0,
      "used": 3074932736,
      "usedByData": 0,
      "quotaUsedPerNode": 0,
      "quotaTotalPerNode": 8236564480
      },
      "hdd": {
      "total": 129866661888,
      "quotaTotal": 129866661888,
      "used": 6955948400,
      "usedByData": 0,
      "free": 122910713488
      }
      },
      "storage": {
      "ssd": [],
      "hdd": [
      {
      "path": "/data",
      "index_path": "/opt/couchbase/var/lib/couchbase/data",
      "cbas_dirs": [
      "/opt/couchbase/var/lib/couchbase/data"
      ],
      "eventing_path": "/opt/couchbase/var/lib/couchbase/data",
      "java_home": "",
      "quotaMb": "none",
      "state": "ok"
      }
      ]
      },
      "clusterMembership": "active",
      "recoveryType": "none",
      "status": "healthy",
      "otpNode": "ns_1@cb.local",
      "thisNode": true,
      "hostname": "172.23.120.170:8091",
      "nodeUUID": "b853144634fcd213d7a019611dfc8de8",
      "clusterCompatibility": 458753,
      "version": "7.1.0-1013-enterprise",
      "os": "x86_64-unknown-linux-gnu",
      "cpuCount": 8,
      "ports": {
      "direct": 11210,
      "httpsCAPI": 18092,
      "httpsMgmt": 18091,
      "distTCP": 21100,
      "distTLS": 21150
      },
      "services": [
      "kv"
      ],
      "nodeEncryption": false,
      "addressFamilyOnly": false,
      "configuredHostname": "127.0.0.1:8091",
      "addressFamily": "inet",
      "externalListeners": [
      {
      "afamily": "inet",
      "nodeEncryption": false
      }
      ],
      "otpCookie": "3b621d126d22723840744cde524b4f732944119f90e5d3e85925630426908e9d",
      "couchApiBase": "http://172.23.120.170:8092/",
      "couchApiBaseHTTPS": "https://172.23.120.170:18092/",
      "systemStats": {
      "cpu_utilization_rate": 0,
      "cpu_stolen_rate": 0,
      "swap_total": 0,
      "swap_used": 0,
      "mem_total": 0,
      "mem_free": 0,
      "mem_limit": 0,
      "cpu_cores_available": 0,
      "allocstall": 0
      },
      "interestingStats": {},
      "uptime": "2891",
      "memoryTotal": 0, ==============> Not populated
      "memoryFree": 0, ==============> Not populated
      "mcdMemoryReserved": 0,
      "mcdMemoryAllocated": 0,
      "memoryQuota": 7855,
      "indexMemoryQuota": 512,
      "ftsMemoryQuota": 512,
      "cbasMemoryQuota": 1839,
      "eventingMemoryQuota": 256
      }
      

      7.0.0-5294

      {
      "availableStorage": {
      "hdd": [
      {
      "path": "/dev",
      "sizeKBytes": 5991472,
      "usagePercent": 0
      },
      {
      "path": "/dev/shm",
      "sizeKBytes": 6003192,
      "usagePercent": 0
      },
      {
      "path": "/run",
      "sizeKBytes": 6003192,
      "usagePercent": 10
      },
      {
      "path": "/sys/fs/cgroup",
      "sizeKBytes": 6003192,
      "usagePercent": 0
      },
      {
      "path": "/",
      "sizeKBytes": 32498172,
      "usagePercent": 18
      },
      {
      "path": "/data",
      "sizeKBytes": 94324740,
      "usagePercent": 1
      },
      {
      "path": "/boot",
      "sizeKBytes": 508588,
      "usagePercent": 57
      },
      {
      "path": "/run/user/0",
      "sizeKBytes": 1200640,
      "usagePercent": 0
      }
      ]
      },
      "storageTotals": {
      "ram": {
      "total": 12294115328,
      "quotaTotal": 6677331968,
      "quotaUsed": 0,
      "used": 3502870528,
      "usedByData": 0,
      "quotaUsedPerNode": 0,
      "quotaTotalPerNode": 6677331968
      },
      "hdd": {
      "total": 33278128128,
      "quotaTotal": 33278128128,
      "used": 5990063063,
      "usedByData": 0,
      "free": 27288065065
      }
      },
      "storage": {
      "ssd": [],
      "hdd": [
      {
      "path": "/opt/couchbase/var/lib/couchbase/data",
      "index_path": "/opt/couchbase/var/lib/couchbase/data",
      "cbas_dirs": [
      "/opt/couchbase/var/lib/couchbase/data"
      ],
      "eventing_path": "/opt/couchbase/var/lib/couchbase/data",
      "java_home": "",
      "quotaMb": "none",
      "state": "ok"
      }
      ]
      },
      "clusterMembership": "active",
      "recoveryType": "none",
      "status": "healthy",
      "otpNode": "ns_1@cb.local",
      "thisNode": true,
      "hostname": "172.23.120.170:8091",
      "nodeUUID": "0cd1cfd0d2b0c4374d35c6f4dbcb1629",
      "clusterCompatibility": 458752,
      "version": "7.0.0-5294-enterprise",
      "os": "x86_64-unknown-linux-gnu",
      "cpuCount": 8,
      "ports": {
      "direct": 11210,
      "httpsCAPI": 18092,
      "httpsMgmt": 18091,
      "distTCP": 21100,
      "distTLS": 21150
      },
      "services": [
      "kv"
      ],
      "nodeEncryption": false,
      "addressFamilyOnly": false,
      "configuredHostname": "127.0.0.1:8091",
      "addressFamily": "inet",
      "externalListeners": [
      {
      "afamily": "inet",
      "nodeEncryption": false
      }
      ],
      "otpCookie": "994dd962db2d6d89019da53d13d138302fa2b5885b8637f810bae1af29c2c37c",
      "couchApiBase": "http://172.23.120.170:8092/",
      "couchApiBaseHTTPS": "https://172.23.120.170:18092/",
      "systemStats": {
      "cpu_utilization_rate": 0.2377674884244775,
      "cpu_stolen_rate": 0.0125140783381304,
      "swap_total": 3758092288,
      "swap_used": 264503296,
      "mem_total": 12294115328,
      "mem_free": 11677175808,
      "mem_limit": 12294115328,
      "cpu_cores_available": 8,
      "allocstall": 2716381
      },
      "interestingStats": {},
      "uptime": "301",
      "memoryTotal": 12294115328, ==============> Rightly populated
      "memoryFree": 11677175808, ==============> Rightly populated
      "mcdMemoryReserved": 9379,
      "mcdMemoryAllocated": 9379,
      "memoryQuota": 6368,
      "indexMemoryQuota": 512,
      "ftsMemoryQuota": 512,
      "cbasMemoryQuota": 1839,
      "eventingMemoryQuota": 256
      }
      

      Attachments

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

        Activity

          People

            ritesh.agarwal Ritesh Agarwal
            ritesh.agarwal Ritesh Agarwal
            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