The node memory quota configures how much RAM to be allocated to Couchbase for every node within the cluster.
| Method | POST /pools/default |
| Request Data | Payload with memory quota setting |
| Response Data | Empty |
| Authentication Required | yes |
| Return Codes | |
| 200 | OK |
| 400 | Bad Request JSON: The RAM Quota value is too small. |
| 401 | Unauthorized |
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/defaultAs a raw 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/1.1 200 OK Content-Type: application/json Content-Length: 0