A newer version of this documentation is available.

View Latest

Setting Index memory quota

Memory quota for the Index service is set with the POST /pools/nodes/ HTTP method and URI.

HTTP method and URI

The index memory quota configures how much RAM to be allocated to Couchbase Server index service for the specified node within the cluster. Minimum: 256 MB

POST /pools/default

Syntax

Curl request syntax:

curl -X POST -u [admin]:[password]
    http://[localhost]:[port]/pools/default
    -d indexMemoryQuota=[quota-number]

Example

Curl request example that sets the memory quota for a cluster at 512MB:

curl -X POST -u Administrator:password \
   http://127.0.0.1:8091/pools/default \
   -d 'indexMemoryQuota=512'

Response codes

The following is an example HTTP response code:

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 0
Response codes Description

200

OK

400

Bad Request JSON: The RAM Quota value is too small.

401

Unauthorized