You can use cbstats to access information about individual nodes, and the buckets associated with the nodes, in a Couchbase cluster. The utility is located in one of the following directories, depending upon your platform install:
|Mac OS X|
You can use this utility to get couchbase node statistics. The general format for using it is:
shell> cbstats HOST:BUCKET_PORT COMMAND [-flags] [bucketname password]
For this command, note that host and port are specifically for a bucket, not a node or cluster. The following describes the command format:
HOST is the hostname and
BUCKET_PORT is the dedicated port for the
COMMAND is one of the
cbstats from the commands listed below.
-flags are one of the optional flags
bucketname is the name of the Couchbase or
password is the for bucket-level
The following are the possible
you can use:
Table 7.4. cbstats Tool Commands
|Provides statistics for a named bucket.|
|Memory allocation for bucket, if exists.|
|Checkpoints are internal markers used to flag items in queue. View them with this command.|
|Resets hit- and miss- counters which indicate number of requests and failed requests.|
|Shows history and time durations of different read/write operations. In milliseconds.|
For example, the
cbstats output can be used
with other command-line tools to sort and filter the data.
watch --diff "cbstats \ ip-10-12-19-81:11210 all | egrep 'item|mem|flusher|ep_queue|bg|eje|resi|warm'"