tap
Gets statistics associated with TAP.
Description
TAP is an internal protocol that streams information about data changes between cluster nodes. Couchbase Server uses the TAP protocol during rebalance and replication at other cluster nodes.
TAP stats
Stat | Description |
---|---|
|
The amount of time to wait for a TAP acks before disconnecting. |
|
The amount of messages a TAP producer should send before requesting an ack. |
|
The maximum amount of ack requests that can be sent before the consumer sends a response ack. When the window is full the TAP stream is paused. |
|
The number of seconds the TAP connection should back off after receiving ETMPFAIL. |
|
Number of times a TAP background fetch task is requeued. |
|
Number of TAP disk fetches. |
|
The maximum number of background jobs a TAP connection may have. |
|
Number of TAP connections. |
|
Number of TAP deletion messages sent. |
|
Number of TAP memory fetches. |
|
The number of secs between a noop is added to an idle connection. |
|
Number of items to be backfilled. |
|
Total back-off items. |
|
Total drained items. |
|
Total enqueued items. |
|
Number of items remaining on disk. |
|
Disk write queue cap to throttle tap streams. |
|
Percentage of memory in use before we throttle tap streams. |
|
Number of TAP messages refused due to throttling. |
|
Number of remaining items for replication. |
|
Sum of all TAP messages sent. |
|
Sum of TAP queue sizes on the current TAP queues. |
Per TAP client stats
Each stat begins with ep_TAPq followed by a unique /client_id/
and another colon.
For example, if your client is named slave1
, the qlen stat would be ep_TAPq:slave1:qlen
.
Stat | Description | P/C |
---|---|---|
type |
The kind of TAP connection (producer or consumer). |
PC |
created |
Creation time for the TAP connection. |
PC |
supports_ack |
|
PC |
connected |
|
PC |
disconnects |
Number of disconnects from this client. |
PC |
reserved |
|
P |
suspended |
|
P |
qlen |
Queue size for the given client_id. |
P |
qlen_high_pri |
High priority TAP queue items. |
P |
qlen_low_pri |
Low priority TAP queue items. |
P |
vb_filters |
Size of connection vbucket filter set. |
P |
vb_filter |
The content of the vbucket filter. |
P |
rec_fetched |
Tap messages sent to the client |
P |
rec_skipped |
Number of messages skipped due to TAP reconnect with a different filter. |
P |
idle |
|
P |
has_queued_item |
|
P |
bg_result_size |
Number of ready background results. |
P |
bg_jobs_issued |
Number of background jobs started. |
P |
bg_jobs_completed |
Number of background jobs completed. |
P |
flags |
Connection flags set by the client. |
P |
pending_disconnect |
|
P |
paused |
|
P |
pending_backfill |
|
P |
pending_disk_backfill |
|
P |
backfill_completed |
|
P |
backfill_start_timestamp |
Timestamp of backfill start. |
P |
reconnects |
Number of reconnects from this client. |
P |
backfill_age |
The age of the start of the backfill. |
P |
ack_seqno |
The current TAP ACK sequence number. |
P |
recv_ack_seqno |
Last receive TAP ACK sequence number. |
P |
ack_log_size |
Tap ACK backlog size. |
P |
ack_window_full |
|
P |
seqno_ack_requested |
The |
P |
expires |
When this ACK backlog expires. |
P |
queue_memory |
Memory used for TAP queue. |
P |
queue_fill |
Total queued items. |
P |
queue_drain |
Total drained items. |
P |
queue_backoff |
Total back-off items. |
P |
queue_backfillremaining |
Number of backfill remaining. |
P |
queue_itemondisk |
Number of items remaining on disk. |
P |
total_backlog_size |
Num of remaining items for replication. |
P |
total_noops |
Number of NOOP messages sent. |
P |
num_checkpoint_end |
Number of chkpoint end operations. |
C |
num_checkpoint_end_failed |
Number of chkpoint end operations failed. |
C |
num_checkpoint_start |
Number of chkpoint end operations. |
C |
num_checkpoint_start_failed |
Number of chkpoint end operations failed. |
C |
num_delete |
Number of delete operations. |
C |
num_delete_failed |
Number of failed delete operations. |
C |
num_flush |
Number of flush operations. |
C |
num_flush_failed |
Number of failed flush operations. |
C |
num_mutation |
Number of mutation operations. |
C |
num_mutation_failed |
Number of failed mutation operations. |
C |
num_opaque |
Number of opaque operation. |
C |
num_opaque_failed |
Number of failed opaque operations. |
C |
num_vbucket_set |
Number of vbucket set operations. |
C |
num_vbucket_set_failed |
Number of failed vbucket set operations. |
C |
num_unknown |
Number of unknown operations. |
C |
Example
Request for TAP stats:
cbstats [host]:11210 tap
Response
Response example for TAP stats
ep_tap_ack_grace_period: 300 ep_tap_ack_interval: 1000 ep_tap_ack_window_size: 10 ep_tap_backoff_period: 5 ep_tap_bg_fetch_requeued: 0 ep_tap_bg_fetched: 0 ep_tap_bg_max_pending: 500 ep_tap_count: 0 ep_tap_deletes: 0 ep_tap_fg_fetched: 0 ep_tap_noop_interval: 20 ep_tap_queue_backfillremaining: 0 ep_tap_queue_backoff: 0 ep_tap_queue_drain: 0 ep_tap_queue_fill: 0 ep_tap_queue_itemondisk: 0 ep_tap_throttle_queue_cap: 1000000 ep_tap_throttle_threshold: 90 ep_tap_throttled: 0 ep_tap_total_backlog_size: 0 ep_tap_total_fetched: 0 ep_tap_total_queue: 0