A newer version of this documentation is available.

View Latest

kvstore

Provides low-level stats from the underlying KV storage system.

Syntax

Request syntax:

cbstats [hostname]:11210 kvstore

Description

This command is useful to understand various states of the storage system.

Table 1. CouchStore database engine stats
Stat Description

backend_type

Type of backend database engine

close

Number of database close operations.

failure_get

Number of failed get operations.

failure_open

Number of failed open operations.

failure_set

Number of failed set operations.

failure_vbset

Number of failed vbucket set operation

lastCommDocs

Number of docs in the last commit.

numLoadedVb

Number of Vbuckets loaded into memory.

open

Number of database open operations.

Options

None

Example

Request

cbstats 10.5.2.54:11210 kvstore

Response

 ro_0:backend_type:  couchstore
 ro_0:close:         0
 ro_0:failure_get:   0
 ro_0:failure_open:  0
 ro_0:numLoadedVb:   0
 ro_0:open:          0
 ro_1:backend_type:  couchstore
 ro_1:close:         0
 ro_1:failure_get:   0
 ro_1:failure_open:  0
 ro_1:numLoadedVb:   0
 ro_1:open:          0
 ro_2:backend_type:  couchstore
 ro_2:close:         0
 ro_2:failure_get:   0
 ro_2:failure_open:  0
 ro_2:numLoadedVb:   0
 ro_2:open:          0
 ro_3:backend_type:  couchstore
 ro_3:close:         0
 ro_3:failure_get:   0
 ro_3:failure_open:  0
 ro_3:numLoadedVb:   0
 ro_3:open:          0
 rw_0:backend_type:  couchstore
 rw_0:close:         0
 rw_0:failure_del:   0
 rw_0:failure_get:   0
 rw_0:failure_open:  0
 rw_0:failure_set:   0
 rw_0:failure_vbset: 0
 rw_0:lastCommDocs:  0
 rw_0:numLoadedVb:   0
 rw_0:open:          0
 rw_1:backend_type:  couchstore
 rw_1:close:         0
 rw_1:failure_del:   0
 rw_1:failure_get:   0
 rw_1:failure_open:  0
 rw_1:failure_set:   0
 rw_1:failure_vbset: 0
 rw_1:lastCommDocs:  0
 rw_1:numLoadedVb:   0
 rw_1:open:          0
 rw_2:backend_type:  couchstore
 rw_2:close:         0
 rw_2:failure_del:   0
 rw_2:failure_get:   0
 rw_2:failure_open:  0
 rw_2:failure_set:   0
 rw_2:failure_vbset: 0
 rw_2:lastCommDocs:  0
 rw_2:numLoadedVb:   0
 rw_2:open:          0
 rw_3:backend_type:  couchstore
 rw_3:close:         0
 rw_3:failure_del:   0
 rw_3:failure_get:   0
 rw_3:failure_open:  0
 rw_3:failure_set:   0
 rw_3:failure_vbset: 0
 rw_3:lastCommDocs:  0
 rw_3:numLoadedVb:   0
 rw_3:open:          0