A newer version of this documentation is available.

View Latest

cluster-edit

Modifies cluster settings.

Syntax

The basic syntax is:

couchbase-cli cluster-edit -c [host]:8091 -u [admin] -p [password] [options]

Description

This command modifies an existing cluster.

Options

The following are the command options:

Table 1. cluster-edit options
Option Description

--cluster-username=USER

New administrative username.

--cluster-index-ramsize=RAMSIZEMB

Per node RAM quota in MB for the Index service

--cluster-password=PASSWORD

New administrator’s password

--cluster-port=PORT

New cluster REST/http port

--cluster-ramsize=RAMSIZEMB

Per node RAM quota in MB for the Data service

--services=data,index,query

Services that Couchbase Server runs.

Examples

To edit the cluster:

couchbase-cli cluster-edit -c 192.168.0.1:8091 -u Administrator -p password

The following example changes the cluster username, password, port, and ram quota:

couchbase-cli cluster-edit -c 192.168.0.1:8091 -u Administrator -p password \
--cluster-username=Admin2 --cluster-password=pass2 \
--cluster-port=8080 --cluster-ramsize=300