Tracing¶
Tracing records runs in full: the statements the Replicator Service runs and their outcomes, its decisions, its progress and its resource use.
Use it when a run's messages don't say enough to find the cause. For a group that fails now and then, start tracing and leave it on until the failure happens again. Tracing makes the verbose log grow faster, so older recordings are rotated away sooner (see Logging settings). Stop it when you have what you need.
How it works¶
Every run has a recorder. Without tracing, a failed run keeps only the key events that led to the failure, at the end of its messages. With tracing, the recorder keeps everything and writes it to the verbose log as it happens, so the recording survives even if the service stops during the run. For long runs, the start and end of repetitive detail are kept, with a count of what was skipped.
There are two ways to trace:
| Start Tracing on a group | Trace this on a log entry | |
|---|---|---|
| What is recorded | Every run of the group, until you stop tracing. | The next runs (1 to 10) of a group, or of a subscription that runs on its own. |
| Where the recording goes | The verbose log, for every run. A failed run also keeps its recording at the end of its messages; a successful run doesn't. | The verbose log, and the end of each recorded run's messages, whatever the outcome. |
| Incremental groups | Each poll cycle is recorded to the verbose log. | A poll cycle that applies changes counts as a run: its recording is saved as a History entry in the group's replication events. |
| Ends | When you click Stop Tracing. | After the number of runs, or after 24 hours if the runs don't happen. |
Start and stop tracing on a group¶
- Click Start Tracing on the group's toolbar.
- When the problem happens again, open the failed run on the group's or member's Replication Events tab: the recording is at the end of its Messages (see Replication events). Or, on the Service Logs tab, select the failed entry and click View trace around this error.
- Click Stop Tracing.
Starting or stopping tracing saves the group's properties. An incremental group that was applying changes is resumed right away; a paused group stays paused.
Trace the next run¶
- On an error or warning on the Service Logs tab that names a group or a subscription, click Trace this (record the next occurrence).
- Check the group name and set how many of the next runs to record (1 to 10), then click Start tracing.
- After the run, open its replication events: the recording is at the end of its messages.
If no run happens within 24 hours, tracing turns itself off.
Subscriptions¶
A group member is traced through its group: enter the group's name. If the entry names a subscription and you leave the group name empty, the Replicator Service records the subscription's next runs on its own (not as a group member). Only one subscription at a time can be traced this way: starting another replaces it.
Groups being traced¶
Logging settings on the Service Logs tab lists under Tracing the groups traced with Start Tracing. Use it to check that no group is left traced by mistake.
Where recordings go¶
| Where | What you find |
|---|---|
| The run's Messages on the Replication Events tab | The recording of a traced run that failed, and of every run recorded with Trace this, at the end of the messages. For an incremental group's recorded poll cycles, a History entry of the group. |
| The verbose log | Every recording, as it happens, with the group and subscription at the start of each line. On the Service Logs tab, it's the Verbose log source (entries marked Trace). The file is sqdrsvc_verbose.log, next to the service log (see Log files). |
The verbose log isn't part of the support bundle. When Stelo Support needs a recording, copy the run's messages, or
download sqdrsvc_verbose.log from Log Files on the Service Logs tab.
Related¶
- Key log: a table of every change an incremental group applied
- Collecting logs and diagnostics for Stelo Support