Search:

Search all manuals
Search this manual
Manual
Couchbase Server Manual 2.0
Community Wiki and Resources
Download Couchbase Server 2.0
Couchbase Developer Guide 2.0
Client Libraries
Couchbase Server Forum
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
8.5 Managing Couchbase Nodes
Chapter Sections
Chapters

8.5.5. Configuring Node Memory Quota

The node memory quota configures how much RAM to be allocated to Couchbase for every node within the cluster.

MethodPOST /pools/default
Request DataPayload with memory quota setting
Response DataEmpty
Authentication Requiredyes
Return Codes 
200OK
400Bad Request JSON: The RAM Quota value is too small.
401Unauthorized

For example, to set the memory quota for a cluster at 400MB:

shell> curl -X POST -u admin:password -d memoryQuota=400 http://localhost:8091/pools/default

As a raw HTTP request:

HTTP Request
POST /pools/default HTTP/1.1
Host: localhost:8091
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Authorization: Basic YWRtaW46YWRtaW4=
Content-Length: xx 
memoryQuota=400

The HTTP response will contain the response code and optional error message:

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