Details
-
Bug
-
Resolution: Won't Fix
-
None
-
None
-
*Location*: http://developer.couchbase.com/documentation/server/4.5/install/dp4-setup-cli-rest.html
*User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36
*Screen Resolution*: 1440 x 900
Description
These docs have an odd mix of IP addresses and with respect to 4.5 are missing some key details. A simple copy/paste of them didn't work and they were slightly non-trivial to debug.
This script is a good logical replacement with some new information like how to enable memory optimized indexes:
#!/usr/bin/env bash
set -xe
- Setup Services
curl -i -u Administrator:password -X POST \
http://127.0.0.1:8091/node/controller/setupServices \
-d 'services=kv%2Cn1ql%2Cindex'
- Initialize Node with /couchbase for index and data path
curl -i -u Administrator:password -X POST \
http://127.0.0.1:8091/nodes/self/controller/settings \
-d 'path=%2Fcouchbase&index_path=%2Fcouchbase'
- Setup Administrator username and password
curl -i -X POST \
http://127.0.0.1:8091/settings/web \
-d 'password=password&username=Administrator&port=SAME'
- Setup Memory Optimized Indexes
curl -i -u Administrator:password -X POST \
http://127.0.0.1:8091/settings/indexes \
-d 'storageMode=memory_optimized'
- Setup Index RAM Quota
curl -i -u Administrator:password -X POST \
http://127.0.0.1:8091/pools/default \
-d 'memoryQuota=18432' -d 'indexMemoryQuota=34816'
- Setup Bucket
curl -i -u Administrator:password -X POST \
http://127.0.0.1:8091/pools/default/buckets \
-d 'flushEnabled=1&replicaIndex=0&replicaNumber=1&ramQuotaMB=18432&bucketType=membase&name=default&authType=sasl&saslPassword='