Watching replication: the counters and jobs that warn you before the stores do
Replication failure has a cruel property: the system of record looks fine while the stores quietly drift, yesterday's prices, items that should exist and don't, transactions arriving late. The stores discover it operationally, one confused customer at a time. Monitoring exists to invert that order: the machinery reports its own distress before the shop floor feels it.
What to watch, in the order it breaks
- Job health: the replication scheduler jobs (the distribution and transfer jobs that move data between head office, distribution locations, and stores), last run, duration, and status. A job that has not completed within its normal interval is the first smoke.
- Backlog age: the oldest unprocessed record in the queues that feed replication, per store. Volume matters less than age: a large young backlog is a busy day; a small old one is a stuck record blocking a queue.
- Error counts by type: records failing with errors, grouped, item errors, price errors, communication errors fail differently and are owned by different fixes. A rising count of one type is a trend with a name.
- Store freshness: per store, the timestamp of the last successful exchange, compared against its trading hours. A store that has not exchanged since yesterday's close while trading today is trading on borrowed data.
Thresholds that mean something
Alert on age and trend, not existence: backlogs exist at noon on Saturday by design. Working shapes: oldest-record age beyond twice the normal cycle time for that store class; a job failure (any) pages the on-call once, with the job name, not a dashboard nobody opens; error rate doubling week over week deserves a human look even below absolute thresholds. Every alert should arrive with its first check attached ("job X failed at 03:12, check the Data Director service and store connectivity") because an alert that requires archaeology gets deferred exactly when it shouldn't be.
The weekly five-line health note
Beyond alerts, keep a standing weekly summary: exchanges per store, oldest backlog ages, top error type and its count trend, and any store that ran stale. Five lines, produced from the same counters the alerts use, reviewed by a human who can spot the slow stories alerts miss, the store whose exchange time creeps later each week is a connection dying in instalments.
Capacity: when the counters say the design is full
Replication has a growth ceiling, and the counters are its early gauge: steady rises in transfer times, staging tables that stay occupied longer, and peak windows that no longer drain before the next peak are the system announcing that data volume has outgrown the schedule's shape. The responses are architectural conversations, not monitoring tweaks, splitting jobs by table family, moving heavy low-value data (old logs, audit trails) to a different cadence, or accepting a design change to the replication topology itself. Raise the conversation when the trend lines first bend, with the counters as evidence; replication redesigns done in calm quarters are projects, while the same work in a crisis, a peak season spent half a day behind, is an incident with a project hiding inside it.
Who owns the red light at 6 a.m.?
Monitoring without ownership is weather reporting. Each watched signal needs a named role for the first response and an escalation age: the replication alert that sits unacknowledged through a trading morning has not failed technically, it has failed organisationally. Practical shape for a chain: store-level freshness alerts land with the store's opening checklist (the morning POS health check includes "yesterday's data arrived"), while job failures and backlog age land with whoever runs the centre, one inbox, one on-call, one log where the outcome is written. The log matters more than it looks: three months of alert outcomes is the evidence base for tuning thresholds, replacing a dying connection, or proving to a sceptic that the estate's data actually flows as designed, almost every day, and the exceptions have names and dates.
Counters that contradict each other: a reading exercise
The dashboard shows the job "current", last run completed twelve minutes ago, while the central data is observably ninety minutes stale. Both instruments are honestly reporting different things: the job ran, and its window contained nothing because the store-side staging it reads from stopped filling an hour earlier, one hop upstream. The lesson generalises into a monitoring rule: every replication chain needs a freshness measure taken at the destination (the age of the newest data the centre can see), because job success measures only their own step. When you build the monitoring page, put destination freshness at the top and job completions beneath it; when the two disagree, believe the freshness and go hunting upstream. It is the same humility as the statement article's, completion is a claim, applied to the pipes the statements are built from.
Success: replication problems are announced by your monitoring, in business hours where possible, and the phrase "the store just noticed" stops being how data faults introduce themselves.
, Dex Carter, Tech Writer