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

max number of buckets should be set to a default value but configurable using a RESTful API (max set to 10 by default)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0
    • Component/s: RESTful-APIs
    • Security Level: Public
    • Labels:
      None

      Description

      placeholder bug to limit max number of "supported" buckets that customer can create in a couchbase cluster

      default to be determined based on system testing

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

        Activity

        Hide
        dipti Dipti Borkar added a comment -

        on gerrit.

        We need to change this to 10 buckets not 6.

        Show
        dipti Dipti Borkar added a comment - on gerrit. We need to change this to 10 buckets not 6.
        Hide
        siri Sriram Melkote added a comment -

        Buckets now limited to 10 by default. Limit is configurable using the max_bucket_count setting.

        Show
        siri Sriram Melkote added a comment - Buckets now limited to 10 by default. Limit is configurable using the max_bucket_count setting.
        Show
        alkondratenko Aleksey Kondratenko (Inactive) added a comment - http://review.couchbase.org/21467
        Hide
        dipti Dipti Borkar added a comment -

        thank you !

        Show
        dipti Dipti Borkar added a comment - thank you !
        Hide
        kzeller kzeller added a comment -

        Added to RN and REST chapter:

        By default the maximum number of buckets recommended for a Couchbase Cluster is ten. This is a safety mechanism to ensure that a cluster does not have resource and CPU overuse due to too many buckets. This limit is configurable using the REST-API.
        The Couchbase REST-API has changed to enable you to change the default maximum number of buckets used in a Couchbase cluster. The maximum allowed buckets in this request is 128, however the suggested maximum number of buckets is ten per cluster. The following illustrates the endpoint and parameters used:

        shell> curl -X -u admin:password -d maxBucketCount=6 http://ip_address:8091/internalSettings

        For this request you need to provide administrative credentials for the cluster. The following HTTP request will be sent:

        About to connect() to 127.0.0.1 port 8091 (#0)
        Trying 127.0.0.1...
        connected
        Connected to 127.0.0.1 (127.0.0.1) port 8091 (#0)
        Server auth using Basic with user 'Administrator'
        POST /internalSettings HTTP/1.1

        If Couchbase Server successfully changes the bucket limit for the cluster, you will get a HTTP 200 response:

        HTTP/1.1 200 OK
        Server: Couchbase Server 2.0.0r_501_gb614829
        Pragma: no-cache
        Date: Wed, 31 Oct 2012 21:21:48 GMT
        Content-Type: application/json
        Content-Length: 2
        Cache-Control: no-cache

        If you provide an invalid number, such as 0, a negative number, or an amount over 128 buckets, you will get this error message:

        ["Unexpected server error, request logged."]

        Show
        kzeller kzeller added a comment - Added to RN and REST chapter: By default the maximum number of buckets recommended for a Couchbase Cluster is ten. This is a safety mechanism to ensure that a cluster does not have resource and CPU overuse due to too many buckets. This limit is configurable using the REST-API. The Couchbase REST-API has changed to enable you to change the default maximum number of buckets used in a Couchbase cluster. The maximum allowed buckets in this request is 128, however the suggested maximum number of buckets is ten per cluster. The following illustrates the endpoint and parameters used: shell> curl -X -u admin:password -d maxBucketCount=6 http://ip_address:8091/internalSettings For this request you need to provide administrative credentials for the cluster. The following HTTP request will be sent: About to connect() to 127.0.0.1 port 8091 (#0) Trying 127.0.0.1... connected Connected to 127.0.0.1 (127.0.0.1) port 8091 (#0) Server auth using Basic with user 'Administrator' POST /internalSettings HTTP/1.1 If Couchbase Server successfully changes the bucket limit for the cluster, you will get a HTTP 200 response: HTTP/1.1 200 OK Server: Couchbase Server 2.0.0r_501_gb614829 Pragma: no-cache Date: Wed, 31 Oct 2012 21:21:48 GMT Content-Type: application/json Content-Length: 2 Cache-Control: no-cache If you provide an invalid number, such as 0, a negative number, or an amount over 128 buckets, you will get this error message: ["Unexpected server error, request logged."]

          People

          • Assignee:
            siri Sriram Melkote
            Reporter:
            farshid Farshid Ghods (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes