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

Cluster quota setup fails with total quota (2608MB) exceeds the maximum allowed quota inspite of surplus memory



    • Bug
    • Resolution: Not a Bug
    • Major
    • 7.6.0
    • 7.6.0
    • ns_server
    • Operating System : Debian GNU/Linux 11 (bullseye)
      Couchbase Enterprise Edition build 7.6.0-2054


      Installed Couchbase Enterprise Edition build 7.6.0-2054 on one node

      Cluster setup on UI shows "Max Allowed Quota 1600MiB"

      The REST API for setting quota on the node shows the same

      curl -X POST -u Administrator:password \
        -d memoryQuota=3000 \
        -d indexMemoryQuota=512 \
        -d ftsMemoryQuota=512 \
        -d cbasMemoryQuota=1024 \
        -d eventingMemoryQuota=512 \
      {"errors":{"_":"Total quota (3000MB) exceeds the maximum allowed quota (1600MB) on node 'ns_1@cb.local'"}} 

      The CLI initialization also fails with the same errors

      /couchbase-cli cluster-init -c --cluster-username Administrator --cluster-password password --services data,index,query --cluster-ramsize 2048 --cluster-index-ramsize 256 ERROR: Total quota (2048MB) exceeds the maximum allowed quota (1600MB) on node 'ns_1@cb.local'


      The node itself has enough memory

      This is seen in /proc/meminfo which says 15GB available

      cat /proc/meminfo | grep 'MemFree\|MemAvailable\|MemTotal\|^Cached'
      MemTotal:       16355384 kB
      MemFree:        11083312 kB
      MemAvailable:   15242788 kB
      Cached:          3881752 kB 

      The free command returns the same

      free -h
                     total        used        free      shared  buff/cache   available
      Mem:            15Gi       729Mi        10Gi        34Mi       4.3Gi        14Gi
      Swap:          979Mi       168Mi       811Mi 

      The nodes/self endpoint returns 15.611162624 GB

      curl -u Administrator:password | jq | grep memoryFree
        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                       Dload  Upload   Total   Spent    Left  Speed
      100  2269  100  2269    0     0   3522      0 --:--:-- --:--:-- --:--:--  3573
        "memoryFree": 15611162624, 

      Also seen in the debug logs on the node

      [ns_server:info,2024-02-01T01:05:40.833-08:00,ns_1@cb.local:ns_server_cluster_sup<0.235.0>:log_os_info:start_link:19]OS type: {unix,linux} Version: {5,10,0}
      Runtime info: [{otp_release,"25"},
                         "Erlang/OTP 25 [erts-] [source-15104f9619] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:16] [jit:ns]\n"},

      The total here mentioned do not seem to match with any of the above mentioned total memory count



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



            Abhijeeth.Nuthan Abhijeeth Nuthan
            raghav.sk Raghav S K
            0 Vote for this issue
            2 Start watching this issue



              Gerrit Reviews

                There are no open Gerrit changes