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

Couchbase-CLI: While initializing cluster if no memory info is passed and cluster initialization fails then proper default memory distribution should be shown to the user.

    XMLWordPrintable

Details

    • Untriaged
    • Unknown

    Description

      When trying to initialize the cluster:

      [root@localhost ~]# /opt/couchbase/bin/couchbase-cli cluster-init -c localhost:8091 --cluster-username Administrator --cluster-password password --services='data,index,query,fts'
      ERROR: insufficient memory to satisfy memory quota for the services (requested quota is 3178MB, maximum allowed quota for the node is 3022MB)
      

      If i do not pass any memory value, not sure how much is the default value it try to use here for each and every service. Here proper information should be provided to the user about memory usages so that user can make modifications in memory allotment accordingly. User doesn't know where he can do memory modifications.

      Now, if i simply change the index memory cluster gets initialized.

      [root@localhost ~]# /opt/couchbase/bin/couchbase-cli cluster-init -c localhost:8091 --cluster-username Administrator --cluster-password password --services='data,index,query,fts'  --cluster-index-ramsize=260
      SUCCESS: Cluster initialized
      

      When cluster initializes through UI proper distribution of memory is done. Same should be done of cli or default memory allotment should be shown to the user on failure so that user can make changes.

      Attachments

        Issue Links

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

          Activity

            People

              mikew Mike Wiederhold [X] (Inactive)
              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