Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-1327

rest interface docs missing key details, odd mix of IPs

    XMLWordPrintable

Details

    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

      1. Setup Services
        curl -i -u Administrator:password -X POST \
        http://127.0.0.1:8091/node/controller/setupServices \
        -d 'services=kv%2Cn1ql%2Cindex'
      1. 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'
      1. Setup Administrator username and password
        curl -i -X POST \
        http://127.0.0.1:8091/settings/web \
        -d 'password=password&username=Administrator&port=SAME'
      1. Setup Memory Optimized Indexes
        curl -i -u Administrator:password -X POST \
        http://127.0.0.1:8091/settings/indexes \
        -d 'storageMode=memory_optimized'
      1. 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'
      1. 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='

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            amarantha.kulkarni Amarantha Kulkarni (Inactive)
            ingenthr Matt Ingenthron
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty