You can create a new bucket with a POST command sent to the URI for buckets in a cluster. This can be used to create either a couchbase or a memcached type bucket. The bucket name cannot have a leading underscore.
When you create a bucket you must provide the
If you set
authType to "none", then
you must specify a proxyPort number.
If you set
authType to "sasl", then
you may optionally provide a "saslPassword" parameter. For
Couchbase Sever 1.6.0, any SASL authentication-based access
must go through a proxy at port 11211.
ramQuotaMB specifies how much memory, in
megabytes, you want to allocate to each node for the bucket. The
minimum supported value is 100MB.
If the items stored in a memcached bucket take space beyond
ramQuotaMB, Couchbase Sever
typically will evict items on least-requested-item basis.
Couchbase Server may evict other infrequently used items
depending on object size, or whether or not an item is being
In the case of Couchbase buckets, the system may return
temporary failures if the
is reached. The system will try to keep 25% of the available
ramQuotaMB free for new items by ejecting old items from
occupying memory. In the event these items are later
requested, they will be retrieved from disk.