Search:

Search all manuals
Search this manual
Manual
Couchbase Server Manual 1.8
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
7.3 Using cbstats
Chapter Sections
Chapters

7.3.1. Retrieving Bucket Statistics

Use the all command to get information about a named bucket:

./cbstats 10.4.2.5:11220 all newbucket password | grep -E 'uptime|bytes_read|bytes_written'

The types of bucket statistics returned by all include:

Couchbase Server will return these statistics about a memcached or Couchbase bucket. In the case of memcached buckets, statistics about persistence do not apply and therefore do not appear:

Table 7.5. cbstats Output for all

NameDescription
accepting_connsConnections accepted by a node.
auth_cmdsNumber of authentication commands handled with success or failure.
auth_errorsNumber of failed authentications.
bucket_active_connsActive connection to bucket.
bucket_conns 
bytes_readTotal number of bytes read by this node from network.
bytes_writtenTotal number of bytes sent by this node to network.
cas_badvalTotal number of CAS commands that failed to modify a value due to a bad CAS id.
cas_hitsNumber of successful CAS requests.
cas_missesNumber of CAS requests against missing keys.
cmd_flush 
Cumulative number of flush requests for bucket. 
cmd_getCumulative number of get requests for node.
cmd_setCumulative number of set requests for node.
conn_yieldsNumber of times any connection yielded to another one due to hitting the -R limit.
connection_structuresNumber of connection structures allocated by node.
curr_connectionsNumber of open connections
curr_connectionsNumber of open connections
curr_itemsCurrent number of items stored.
curr_items_totNumber of current items including those not active (replica, dead and pending states.)
daemon_connectionsNumber of connection structures used by this node internally.
decr_hitsNumber of successful decrement requests.
decr_missesNumber of decrement requests against missing keys.
delete_hitsNumber of deletion requests against missing keys.
delete_missesNumber of deletion requests against missing keys.
ep_bg_fetchedNumber of items fetched from disk.
ep_commit_numTotal number of write commits.
ep_commit_timeNumber of seconds transpired for most recent commit.
ep_commit_time_totalCumulative seconds spent committing.
ep_data_ageAge of data that has been persisted to disk.
ep_data_age_highwatOldest age of data that has been persisted to disk
ep_db_cleaner_statusStatus of database maintenance process that removes invalid items with old vBucket versions.
ep_db_strategySQLite db strategy.
ep_dbinitNumber of seconds to initialize DB.
ep_dbshardsNumber of shards for db store
ep_diskqueue_drainTotal items in queue to be persisted that have been stored on disk.
ep_diskqueue_fillTotal items waiting in queue to be stored on disk.
ep_diskqueue_itemsTotal items in disk queue.
ep_diskqueue_memoryTotal memory used in disk queue.
ep_diskqueue_pendingTotal bytes of pending disk writes.
ep_exp_pager_stimeInterval set for regular maintenance process that removes expired items from node. In seconds.
ep_expiredNumber of times any item was expired for a node/bucket.
ep_flush_allBoolean that is set to true if disk flush_all is scheduled.
ep_flush_allBoolean that is set to true if disk flush_all is scheduled.
ep_flush_durationNumber of seconds duration of most recent flush.
ep_flush_duration_highwatLongest duration required to flush data.
ep_flush_duration_totalCumulative seconds spent flushing data.
ep_flush_preemptsNumber of flush early exits for read requests.
ep_flusher_deduplication 
ep_flusher_stateCurrent state of the flusher thread.
ep_flusher_todoNumber of items remaining to be written to disk.
ep_inconsistent_slave_chkFlag indicating whether we allow a “downstream” master to receive checkpoint messages.
ep_io_num_readNumber of io read operations.
ep_io_num_writeNumber of io write operations.
ep_io_read_bytesNumber of bytes read (key + values)
ep_io_write_bytesNumber of bytes written (key + values).
ep_item_begin_failedNumber of times a transaction failed to start due to storage errors.
ep_item_commit_failedNumber of times a transaction failed to commit data due to storage errors.
ep_item_flush_expiredNumber of times an item is not flushed due to the expiry of the item.
ep_item_flush_failedNumber of times an item failed to flush due to storage errors.
ep_items_rm_from_checkpointsNumber of items removed from closed unreferenced checkpoints.
ep_keep_closed_checkpointsBoolean indicating a checkpoint status retained or deleted.
ep_kv_sizeMemory used to store item metadata, keys and values, regardless of a vBucket state. If Couchbase Server ejects a value, it decrements this number by the size of the value.
ep_latency_arith_cmdThe total elapsed time for increment and decrement requests.
ep_latency_get_cmdThe total elapsed time for get requests for bucket/node.
ep_latency_store_cmdThe total elapsed time for store requests.
ep_max_data_sizeMaximum amount of data allowed in memory.
ep_max_txn_sizeMax number of updates per transaction.
ep_mem_high_watHigh water mark for auto-evictions.
ep_mem_low_watLow water mark for auto-evictions.
ep_mem_tracker_enabled 
ep_min_data_ageMinimum age for data before it can be persisted.
ep_num_active_non_residentNumber of non-resident items in active vBuckets. Non-resident items have their values ejected onto disk.
ep_num_checkpoint_remover_runsNumber of times Couchbase Server ran checkpoint remover to remove closed unreferenced checkpoints.
ep_num_eject_failuresNumber of values that could not be ejected from RAM to disk.
ep_num_eject_replicasNumber of times Couchbase Server ejected replica values from memory to disk.
ep_num_expiry_pager_runsNumber of times Couchbase Server ran maintenance processes to purge expired items from memory/disk.
ep_num_non_residentThe number of non-resident items. Non-resident items are keys that have the key and metadata stored in RAM, but the value is ejected onto disk.
ep_num_not_my_vbucketsNumber of times a 'Not My VBucket' exception has occurred for a node. This exception occurs when a request comes for data stored in another vBucket associated with a node.
ep_num_pager_runsNumber of times this node has run the maintenance process to free additional memory.
ep_onlineupdateReturns true if engine is in online updated mode.
ep_onlineupdate_revert_addNumber of reverted newly added items.
ep_onlineupdate_revert_deleteNumber of reverted deleted items.
ep_onlineupdate_revert_updateNumber of reverted updated items.
ep_oom_errorsNumber of times an unrecoverable out of memory error occurred while this node processed requests.
ep_overheadExtra memory used by transient data, such as persistence queue, replication queues, checkpoints, and so forth.
ep_pending_opsNumber of operations awaiting pending vBuckets.
ep_pending_ops_maxMaximum operations awaiting 1 pending vBucket.
ep_pending_ops_max_durationMaximum time used waiting on pending vBuckets.
ep_pending_ops_totalTotal blocked pending operations.
ep_queue_age_capQueue age cap setting.
ep_queue_sizeNumber of items queued for storage.
ep_storage_ageHow long an item has been waiting in queue to be persisted to disk.
ep_storage_age_highwatThe longest an item has been waiting in queue to be persisted to disk.
ep_storage_typeIndicates whether disk storage is SQLite or Couchstore.
ep_store_max_concurrencyMaximum allowed concurrency at the storage level.
ep_store_max_readersMaximum number of concurrent read-only storage threads allowed for this node.
ep_store_max_readwriteMaximum number of concurrent read-write storage threads allowed for this node.
ep_tap_bg_fetch_requeuedNumber of times a TAP background fetch task is requeued.
ep_tap_bg_fetchedNumber of TAP background fetches from disk.
ep_tap_keepaliveHow long to maintain existing TAP connection state after a client disconnect.
ep_tmp_oom_errorsNumber of times temporary out of memory errors have occurred for this node while processing requests.
ep_too_oldNumber of times an object was stored on disk after being stale for too long.
ep_too_youngNumber of times an object is not stored on disk because it is too new.
ep_total_cache_sizeTotal size of all items for this node, regardless of vBucket state, or whether or not the value for an item is ejected into RAM.
ep_total_del_itemsTotal number of items flagged for deletion that are persisted on disk.
ep_total_enqueuedTotal number of items waiting in queue to be persisted on disk.
ep_total_new_itemsTotal new keys for a node that have been persisted.
ep_total_persistedTotal number of items for node that have been persisted.
ep_uncommitted_itemsItems that are new or updated but are not yet persisted.
ep_value_sizeMemory used to store values for resident keys. These are items which are stored on both RAM and disk in entirety.
ep_vb_totalTotal number of vBuckets.
ep_vbucket_delNumber of deletions that have occurred for a vBucket.
ep_vbucket_del_failNumber of deletions that have failed for a vBucket.
ep_versionVersion number of underlying Couchbase Server component, ep_engine.
ep_warmed_upNumber of items warmed up.
ep_warmupTrue if node is ready to accept new writes and reads.
ep_warmup_dupsDuplicates encountered during node warmup.
ep_warmup_oomOut of memory errors encountered during warmup.
ep_warmup_threadIndicates complete if the node is done with its initialization phase.
ep_warmup_timeTime (µs) spent by warming data.
get_hitsNumber of keys that have been requested and found.
get_missesNumber of items that have been requested but not found.
incr_hitsNumber of successful increment requests.
incr_missesNumber of increment requests made for keys that cannot be found.
libeventMaximum number of bytes this node is allowed to use for storage.
limit_maxbytesTotal number of items for node that have been persisted.
listen_disabled_numOccurs if there are too many simultaneous connections. Incremented when Couchbase Server rejects a connection request.
max_conns_on_port_Maximum number of connections allowed on specified port.
mem_usedTotal memory used by Couchbase Server component, ep_engine.
pidID for this server process.
pointer_sizeDefault size of pointers on the host OS; typically 32- or 64- bit.
rejected_connsConnection requests rejected by this node.
rusage_systemAccumulated system time for this process, in form for seconds:microseconds.
rusage_userAccumulated user time for this process, in form for seconds:microseconds.
threadsNumber of worker threads requested.
timeCurrent UNIX time according to the node.
uptimeNumber of seconds since this node initially started
vb_active_curr_itemsNumber of items in RAM.
vb_active_ejectNumber of times this node ejected values from RAM onto disk.
vb_active_ht_memoryMemory used to store keys and values
vb_active_itm_memoryTotal items in memory.
vb_active_numNumber of active vBuckets
vb_active_num_non_residentNumber of non-resident items; non-resident items are those with keys and metadata in RAM, but the values are stored on disk to conserve resources.
vb_active_ops_createNumber of create requests made on node.
vb_active_ops_deleteNumber of delete requests made on node.
vb_active_ops_rejectNumber of requests made on node but rejected by node.
vb_active_ops_updateNumber of update requests made on node.
vb_active_perc_mem_residentPercentage of memory taken up by resident data. This is data where the key, metadata and value all reside in RAM.
vb_active_queue_ageTotal of all ages for items in disk queue. In milliseconds.
vb_active_queue_drainTotal number of keys that have been drained from a disk-write queue.
vb_pending_queue_fillTotal items waiting in queue for disk write.
vb_pending_queue_memoryTotal memory used by queue for disk writes.
vb_pending_queue_pendingTotal bytes used by items awaiting disk persistence.
vb_pending_queue_sizePending items in disk-write queue.
vb_replica_curr_itemsNumber of items for vBuckets in replica state.
vb_replica_ejectNumber of times the value for a key has been ejected from RAM to disk.
vb_replica_ht_memoryMemory used to store keys and values.
vb_replica_itm_memoryTotal bytes taken up by items memory.
vb_replica_numNumber of replica vBuckets for this node.
vb_replica_num_non_residentNumber of non-resident items; these are keys and associated metadata in RAM, while the associated value for the keys are stored on disk.
vb_replica_ops_createNumber of create requests made for replica-state vBuckets.
vb_replica_ops_deleteNumber of delete requests made for replica-state vBuckets..
vb_replica_ops_rejectNumber of rejected requests made for replica-state vBuckets.
vb_replica_ops_updateNumber of update requests made for replica-state vBuckets.
vb_replica_perc_mem_residentPercentage of resident memory. Resident data are items stored entirely in RAM and disk, including keys, values, and metadata.
vb_replica_queue_ageTotal age in milliseconds of items waiting in queue to be stored to disk.
vb_replica_queue_drainTotal items from this vBucket drained from the disk-write queue.
vb_replica_queue_fillTotal items awaiting disk persistence from this vBucket.
vb_replica_queue_memoryMemory used for disk queue for this vBucket.
vb_replica_queue_pendingTotal bytes of disk-queue items for this vBucket
vb_replica_queue_sizeReplica items in disk queue.
versionVersion number of ep_engine component.