KaspratechInfrastructure Notes Sheet 1620 · /measurement/

Measurement

What we measure while the traffic moves

A cutover is a measurement window. These are the numbers we keep open on a screen, the thresholds that stop the move, and the checks that close it.

The four numbers on the screen during the switch

Signals to watch during the traffic switch, with the threshold and the action for each.
SignalWhere it comes fromThreshold during the switchAction if it trips
Error rateRequest counters on the edge, per secondAbove 1 % for 60 secondsSwitch the record back and stop the window
Replication lagLag metric on the target, in secondsAbove 30 seconds for 2 minutesHold the switch, let the delta drain
p95 response timeRequest duration histogramAbove 2x the pre-switch valueCheck the cache and the database pool before continuing
Successful checkoutsSynthetic order every 5 minutesOne failed synthetic orderRoll back, investigate before the next attempt

Closing the window

We close the window when the old target has been idle for a full backup cycle and the new target has produced one complete set of scheduled outputs. Until then we keep the old target writable and its database attached. A cutover declared finished on the strength of a 200 response is usually declared one hour too early.