cbepctl
The cbepctl
tool is used to control vBucket states, configuration, and memory and disk persistence behavior.
Description
This tool is a per-node, per-bucket operation. That means that the IP address of a node in the cluster and a named bucket must be specified. If a named bucket is not provided, the server applies the setting to any default bucket that exists at the specified node. To perform this operation for an entire cluster, perform the command for every node/bucket combination that exists for that cluster.
For example, when a bucket is shared by two nodes, issue this command twice and provide the different host names and ports for each node along with the bucket name. Similarly, when two data buckets are on the same node, issue the command twice for each bucket. If a bucket is not specified, the command applies to the default bucket or returns an error if a default bucket does not exist.
Changes to the cluster configuration using cbepctl are not persisted over a cluster restart.
|
The tool is found in the following locations:
Operating system | Location |
---|---|
Linux |
/opt/couchbase/bin/cbepctl |
Windows |
C:\Program Files\Couchbase\Server\bin\cbepctl.exe |
Mac OS X |
/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin/cbepctl |
Syntax
Basic syntax for this command:
cbepctl [host]:11210 [command] [options]
For this command, host
is the IP address for the Couchbase Server cluster or node in the cluster.
The port is always the standard port used for cluster-wide stats and is at 11210
.
Use the following commands to manage persistence:
Command | Description |
---|---|
|
Stop persistence |
|
Start persistence |
|
Wait until queues are drained |
|
Set |
The set
command along with the checkpoint_param
, flush_param
, and tap_param
command types changes the behavior of persistence in Couchbase Server.
Options
The following are the command options:
Option | Description |
---|---|
|
Shows the help message and exits. |
|
Iterates over all buckets. |
|
The bucket to control.
Default: |
|
The username to authenticate. Default: the bucket name. |
|
The password for the bucket, if one exists. |
|
Reads the password from stdin. |