Workload

Workload

The cbstats workload command provides the workload status of threads for buckets.

Description

This command is used to check how many threads of various types are currently running.

Syntax

Basic syntax:

cbstats [hostname]:11210 -b bucket_name workload

Example

Request example:

cbstats 10.5.2.54:11210 workload

Response

This example shows four reader threads and four writer threads on the default bucket in the cluster at 10.5.2.54:11210 . The vBucket map for the data bucket is grouped into multiple shards, where one read worker accesses one of the shards. In this example, there is one reader for each of the four shards.

Example response:


 ep_workload:LowPrioQ_AuxIO:InQsize:   5
 ep_workload:LowPrioQ_AuxIO:OutQsize:  0
 ep_workload:LowPrioQ_NonIO:InQsize:   55
 ep_workload:LowPrioQ_NonIO:OutQsize:  0
 ep_workload:LowPrioQ_Reader:InQsize:  20
 ep_workload:LowPrioQ_Reader:OutQsize: 0
 ep_workload:LowPrioQ_Writer:InQsize:  30
 ep_workload:LowPrioQ_Writer:OutQsize: 0
 ep_workload:max_auxio:                1
 ep_workload:max_nonio:                1
 ep_workload:max_readers:              4
 ep_workload:max_writers:              4
 ep_workload:num_auxio:                1
 ep_workload:num_nonio:                1
 ep_workload:num_readers:              4
 ep_workload:num_shards:               4
 ep_workload:num_sleepers:             10
 ep_workload:num_writers:              4
 ep_workload:ready_tasks:              0