dispatcher

Gets statistics from the reader, writer, auxio, and nonio worker threads.

Syntax

Request syntax:

cbstats [hostname]:11210 dispatcher

Description

The command provides the stats from AUX dispatcher and non-IO dispatcher, and from all the reader and writer threads running for the specific bucket. Along with the stats, the job logs for each of the dispatchers and worker threads is also made available.

The following stats are available for the workers and dispatchers:

Stat Description

cur_time

The current timestamp.

runtime

The amount of time it tool for the job to run in milliseconds.

state

Thread’s current status: running, sleeping, etc.

task

The activity the thread ran during that time.

waketime

The time stamp when the job started.

Options

None

Example

Request

cbstats 10.5.2.54:11210 dispatcher

Response

 auxio_worker_8
     cur_time: 1419384974021911
     state:    sleeping
     task:     Not currently running any task
     waketime: 1419456378037138
 nonio_worker_9
     cur_time: 1419384975434145
     runtime:  9ms
     state:    running
     task:     Connection Manager
     waketime: 1419384975658388
 reader_worker_0
     cur_time: 1419384974167627
     state:    sleeping
     task:     Not currently running any task
     waketime: 1419384976167572
 reader_worker_1
     cur_time: 1419384974167633
     state:    sleeping
     task:     Not currently running any task
     waketime: 1419384976167572
 reader_worker_2
     cur_time: 1419384974167630
     state:    sleeping
     task:     Not currently running any task
     waketime: 1419384976167572
 reader_worker_3
     cur_time: 1419384974167623
     state:    sleeping
     task:     Not currently running any task
     waketime: 1419384976167572
 writer_worker_4
     cur_time: 1419384975407423
     runtime:  31ms
     state:    running
     task:     Updating stat snapshot on disk
     waketime: 1419384975667941
 writer_worker_5
     cur_time: 1419384975407908
     state:    sleeping
     task:     Not currently running any task
     waketime: 1419384975667941
 writer_worker_6
     cur_time: 1419384975407916
     state:    sleeping
     task:     Not currently running any task
     waketime: 1419384975667941
 writer_worker_7
     cur_time: 1419384975407964
     state:    sleeping
     task:     Not currently running any task
     waketime: 1419384975667941