Kvstore and kvtimings

Kvstore and kvtimings

The cbstats kvstore and kvtimings commands provide low-level stats and timings from the underlying KV storage system.

Description

These commands are useful to understand various states of the storage system.

The following stats are available for the CouchStore database engine:

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.

Syntax

Request syntax:

cbstats [hostname]:11210 kvstore
cbstats [hostname]:11210 kvtimings
			

Example

Example request:

cbstats 10.5.2.54:11210 kvstore

Response

Example response for kvstore


 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
			

kvtimings

Sample histogram:

 rw_3:commit (50457 total)
				1ms - 2ms     : (  0.34%)   173 
				2ms - 4ms     : ( 10.52%)  5136 ##############
				4ms - 8ms     : ( 67.06%) 28528 ##############################################################################
				8ms - 16ms    : ( 97.09%) 15152 #########################################
				16ms - 32ms   : ( 99.93%)  1432 ###
				32ms - 65ms   : ( 99.98%)    27 
				65ms - 131ms  : ( 99.99%)     6 
				131ms - 262ms : (100.00%)     1 
				262ms - 524ms : (100.00%)     2 
				Avg           : (    5ms)