March 16, 2025
+ 12
For dev and test use only. Resets the following reset and reset histogram statistics.

Syntax

Request syntax:

cbstats [host]:11210 reset [options]

Description

For dev and test use only. This command resets the following reset and reset histogram statistics.

Note: Using the reset command in production can cause production problems, as well as the inability to diagnose issues due to lack of stats. The reset command is not a single atomic operation; therefore, threads may keep updating some stats while the reset operation is causing others to be cleared. This can cause overflows for calculated values and other stats used by the cluster.

Table 1. Reset stats
Reset Stats

ep_bg_load

ep_bg_wait

ep_bg_max_load

ep_bg_min_load

ep_bg_max_wait

ep_bg_min_wait

ep_commit_time

ep_flush_duration

ep_flush_duration_highwat

ep_io_num_read

ep_io_num_write

ep_io_read_bytes

ep_io_write_bytes

ep_items_rm_from_checkpoints

ep_num_eject_failures

ep_num_pager_runs

ep_num_not_my_vbuckets

ep_num_value_ejects

ep_pending_ops_max

ep_pending_ops_max_duration

ep_pending_ops_total

ep_storage_age

ep_storage_age_highwat

ep_too_old

ep_too_young

ep_tap_bg_load_avg

ep_tap_bg_max_load

ep_tap_bg_max_wait

ep_tap_bg_min_load

ep_tap_bg_min_wait

ep_tap_bg_wait_avg

ep_tap_throttled

ep_tap_total_fetched

ep_vbucket_del_max_walltime

pending_ops

Table 2. Reset histogram stats
Reset Histograms stats

bg_load

bg_wait

bg_tap_load

bg_tap_wait

chk_persistence_cmd

data_age

del_vb_cmd

disk_insert

disk_update

disk_del

disk_vb_del

disk_commit

get_stats_cmd

item_alloc_sizes

get_vb_cmd

notify_io

pending_ops

set_vb_cmd

storage_age

tap_mutation

tap_vb_reset

tap_vb_set

Options

cbstats requires a username (-u) and a password (-p) to execute.

For common cbstats options, see cbstats.

Example

Request

cbstats 10.5.2.54:11210 reset -u Administrator -p password