Search:

Search all manuals
Search this manual
Manual
Couchbase Server Manual 1.8
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
8.8 Provisioning a Node
Chapter Sections
Chapters

8.8.2. Configuring Memory Quota for a Cluster

When you specify a memory quota for a cluster, that minimum will apply to each and every node in the cluster. If you do not have this specified for a cluster, you must do so before you add nodes to the cluster. The minimum size you can specify for is 256MB, or Couchbase Server will return an error. Here we set the memory quota for a cluster at 400MB:

shell> curl -u admin:password -d memoryQuota=400 http://localhost:8091/pools/default
POST /pools/default HTTP/1.1
Host: node.in.your.cluster:8091
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Authorization: Basic YWRtaW46YWRtaW4=
Content-Length: xx memoryQuota=400

Response

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