Monitoring a data subscription
-
This page explains how to monitor a running data subscription using Studio.
-
The Ongoing Tasks view shows a subscription's current status, its progress, and the clients currently connected to it.
-
The Ongoing Task Stats graph tracks a subscription's activity over time, from each client connection down to the individual batches and the time spent on each.
-
In this article:
Subscription details
Opening the subscription details
Open Tasks > Ongoing Tasks, where subscription tasks are listed under Subscriptions.
Expand a subscription bar to view its current status and connected clients.

Status and connected clients

-
Last batch acknowledgment time
The last time a worker acknowledged a batch. -
Last client connection time
The last time a worker connected to the subscription. -
Change vector for next batch
The point from which the server sends the next batch.
Hovering over the info icon shows the value. -
Task details
- Node - the node in the database group that runs the subscription, shown in the database group topology.
- Status - whether a worker is connected: Active when one is, otherwise not active.
- Error - any error reported for the task; a dash when there are none.
- State - the task's overall state, shown as OK when the task is healthy.
-
Connected clients
The workers currently consuming the subscription.
The subscription mode is shown (here Concurrent), and each connected worker is listed with its connection strategy and client URI. Click Disconnect to drop an individual worker.
For the API equivalents of disconnecting, see Dropping a worker and Dropping connections.
Subscription performance
The subscription bar
Open Stats > Ongoing Task Stats, where a bar on the performance timeline shows the
subscription's activity.

-
Subscription bar
The subscription's bar on the performance timeline. Click it to open the breakdown below. -
Query
The server-side query that selects the documents. Click the eye icon to view it.
Connection and batch metrics
Expanding the bar breaks each client
connection into the batches it processed and the time spent in each phase.
Hovering over a bar shows the bar's metrics:

-
Client connection
The worker's entire connection: duration, client URI, strategy, number of batches acknowledged, and the total size of all batches. -
Documents batch
A single batch the server sent: total duration, the number and size of documents sent, and the number and size of any included documents, counters, and time-series entries. -
Sending documents
Within a batch, the time the server spent sending the documents to the worker. -
Waiting for ACK
Within a batch, the time spent waiting for the worker to acknowledge the batch.
Connection event indicators
In the stats view, connection event indicators signify events related to the initiation, state, or termination of a worker's connection.
Available indicators:
| Indicator | Meaning |
|---|---|
| Connection initiated. A worker has connected to the subscription. | |
| Connection aborted. The worker forcibly closed its connection. | |
| Connection rejected. A worker using the OpenIfFree strategy tried to connect while another worker held the subscription, so the server rejected it. | |
| Pending connection. A worker using the WaitForFree strategy tried to connect while another worker held the subscription. Instead of being rejected, it waits for the current worker to disconnect, then connects. |
Example: Rejected and pending connections

In this example:
- Worker A, using the
OpenIfFreestrategy, connects to the subscription. - Worker C, using the
OpenIfFreestrategy, attempts to connect to the same subscription.
Because A holds the subscription, the server rejects C's connection attempt. - Worker B, using the
WaitForFreestrategy, attempts to connect to the same subscription.
Because A holds the subscription, B does not connect immediately and waits in a pending state. - Worker A ends its connection with the subscription.
- Worker B now connects.
- Worker B aborts its connection.