Search:

Search all manuals
Search this manual
Manual
Couchbase Server Manual 2.0
Community Wiki and Resources
Download Couchbase Server 2.0
Couchbase Developer Guide 2.0
Client Libraries
Couchbase Server Forum
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
7 Command-line Interface for Administration
Chapter Sections
Chapters

7.6. cbepctl Tool

7.6.1. Changing the Disk Cleanup Interval
7.6.2. Changing Disk Write Queue Quotas
7.6.3. Changing Access Log Settings
7.6.4. Changing Thresholds for Ejection
7.6.5. Changing Setting for Out Of Memory Errors
7.6.6. Enabling Flush of Data Buckets - Will be Deprecated
7.6.7. Other cbepctl flush_param

The cbepctl command enables you to control many of the configuration, RAM and disk parameters of a running cluster. This tool is for controlling the vBucket states on a Couchbase Server node. It is also responsible for controlling the configuration, memory and disk persistence behavior. This tool was formerly provided as the separate tools, cbvbucketctl and cbflushctl in Couchbase 1.8.

Caution

Changes to the cluster configuration using cbepctl are not persisted over a cluster restart.

Linux/opt/couchbase/bin/cbepctl
WindowsC:\Program Files\Couchbase\Server\bin\cbepctl.exe
Mac OS X/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin/cbepctl

Be aware that this tool is a per-node, per-bucket operation. That means that if you want to perform this operation, you must specify the IP address of a node in the cluster and a named bucket. If you do not provided a named bucket, the server will apply the setting to any default bucket that exists at the specified node. If you want to perform this operation for an entire cluster, you will need to perform the command for every node/bucket combination that exists for that cluster.

cbepctl host:11210 -b bucket1 -p bucket_password start
cbepctl host:11210 -b bucket1 -p bucket_password stop
cbepctl host:11210 -b bucket1 -p bucket_password set type param value

For this command, host is the IP address for your Couchbase cluster, or node in the cluster. The port will always be the standard port used for cluster-wide stats and is at 11210. You also provide the named bucket and the password for the named bucket. After this you provide command options and authentication.

You can use the following command options to manage persistence:

OptionDescription
stopstop persistence
startstart persistence
drainwait until queues are drained
setto set checkpoint_param, flush_param, and tap_param. This changes how or when persistence occurs.

You can use the following command options, combined with the parameters to set checkpoint_param, flush_param, and tap_param. These changes the behavior of persistence in Couchbase Server.

The command options for checkpoint_param are:

ParameterDescription
chk_max_itemsMax number of items allowed in a checkpoint.
chk_periodTime bound (in sec.) on a checkpoint.
inconsistent_slave_chkTrue if we allow a downstream master to receive checkpoint begin/end messages from the upstream master.
item_num_based_new_chkTrue if a new checkpoint can be created based on. the number of items in the open checkpoint.
keep_closed_chksTrue if we want to keep closed checkpoints in memory, as long as the current memory usage is below high water mark.
max_checkpointsMax number of checkpoints allowed per vbucket.