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

[ALL SERVICES] default memory quota calculation policy

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 4.5.0
    • Fix Version/s: Mad-Hatter
    • Component/s: ns_server
    • Security Level: Public
    • Labels:
    • Triage:
      Triaged
    • Flagged:
      Release Note
    • Is this a Regression?:
      Unknown

      Description

      See: http://review.couchbase.org/#/c/58983/1

      The code to calculate default memory allocations looks wrong, and FTS needs a part of that memory allocation...

      Handwaving the (current) algorithm...

      Memory is divided into 5 portions.

      A) 3 portions of the 5 are defaulted to KV.
      B) Another 3 more portions of the 5 are defaulted to Index (GSI).

      So... 3 + 3 == 6, and 6 portions > 5 portions already, so something already feels odd here.

      C) 1 more portion of the 5 is defaulted to FTS.

      So 3 + 3 + 1 == 7, and 7 > 5, so it's even more fishy. This issue is to figure out the right default memory pro-portion'ing policy across services.

        Attachments

          Issue Links

          For Gerrit Dashboard: MB-17571
          # Subject Branch Project Status CR V

            Activity

            Hide
            ajit.yagaty Ajit Yagaty added a comment - - edited

            Description for release notes :

            Summary: On an undersized node, the default memory quota assigned to all the selected services by the server might result in a failure.

            Workaround: Manually adjust the memory allocations appropriately.

            Show
            ajit.yagaty Ajit Yagaty added a comment - - edited Description for release notes : Summary : On an undersized node, the default memory quota assigned to all the selected services by the server might result in a failure. Workaround : Manually adjust the memory allocations appropriately.
            Hide
            perry Perry Krug added a comment -

            Dave Finlay Is there anything we can do as a small step in Vulcan to just reduce the per-service default memory quotas?  It's actually somewhat painful to always get this failure when setting up a new cluster and have to click into changing the values...

            Show
            perry Perry Krug added a comment - Dave Finlay Is there anything we can do as a small step in Vulcan to just reduce the per-service default memory quotas?  It's actually somewhat painful to always get this failure when setting up a new cluster and have to click into changing the values...
            Hide
            artem Artem Stemkovski added a comment -

            Perry Krug you are getting the failure because of this bug: MB-27849. The fix is under review currently.
            The issue at hand was filed to track the discussion about default quota redistribution between services.

            Show
            artem Artem Stemkovski added a comment - Perry Krug you are getting the failure because of this bug: MB-27849 . The fix is under review currently. The issue at hand was filed to track the discussion about default quota redistribution between services.
            Hide
            sachin.smotra Sachin Smotra added a comment - - edited

            For Alice, we need minimum memory quota of 1024 MB for Analytics.

            cc - Anil Kumar, Till Westmann

            Show
            sachin.smotra Sachin Smotra added a comment - - edited For Alice, we need minimum memory quota of 1024 MB for Analytics. cc - Anil Kumar , Till Westmann
            Hide
            anil Anil Kumar added a comment -

            Talking to Till and Sachin the min RAM Quota required to start Analytics Service is 1024MB. 

            Data RAM Quota: 0.6 * (RAM Available) (min is 256)
            Index RAM Quota: 512
            FTS RAM Quota: 0.2 * (RAM Available) (with a max of 512 and a min of 256)
            Must be less than: max(0.8 * (RAM Available), (RAM Available) - 1GB)
            Analytics RAM Quota: 1024 
            Show
            anil Anil Kumar added a comment - Talking to Till and Sachin the min RAM Quota required to start Analytics Service is 1024MB.  Data RAM Quota: 0.6 * (RAM Available) (min is 256) Index RAM Quota: 512 FTS RAM Quota: 0.2 * (RAM Available) (with a max of 512 and a min of 256) Must be less than: max(0.8 * (RAM Available), (RAM Available) - 1GB) Analytics RAM Quota: 1024 

              People

              • Assignee:
                dfinlay Dave Finlay
                Reporter:
                steve Steve Yen
              • Votes:
                0 Vote for this issue
                Watchers:
                16 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.