Skip to main content

Monitoring a data subscription

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.

Find the subscription in the ongoing tasks view

Status and connected clients​

Subscription details

  1. Last batch acknowledgment time
    The last time a worker acknowledged a batch.

  2. Last client connection time
    The last time a worker connected to the subscription.

  3. Change vector for next batch
    The point from which the server sends the next batch.
    Hovering over the info icon shows the value.

  4. 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.
  5. 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.

The subscription on the ongoing task stats timeline

  1. Subscription bar
    The subscription's bar on the performance timeline. Click it to open the breakdown below.

  2. 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:

The expanded subscription bar

  • 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:

IndicatorMeaning
Connection initiatedConnection initiated. A worker has connected to the subscription.
Connection abortedConnection aborted. The worker forcibly closed its connection.
Connection rejectedConnection rejected. A worker using the OpenIfFree strategy tried to connect while another worker held the subscription, so the server rejected it.
Pending connectionPending 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​

Connection event indicators on the timeline

In this example:

  1. Worker A, using the OpenIfFree strategy, connects to the subscription.
  2. Worker C, using the OpenIfFree strategy, attempts to connect to the same subscription.
    Because A holds the subscription, the server rejects C's connection attempt.
  3. Worker B, using the WaitForFree strategy, attempts to connect to the same subscription.
    Because A holds the subscription, B does not connect immediately and waits in a pending state.
  4. Worker A ends its connection with the subscription.
  5. Worker B now connects.
  6. Worker B aborts its connection.

In this article