Monitor a running workflow

sharding & workflows

// what it does

workflow list shows all workflows with their numbers; workflow show tracks one workflow's copy progress and replication lag — what you watch during the hours-long copy phase of a big table move.

// shell

$ pscale workflow list mydb main
$ pscale workflow show mydb main 1

// gotcha

Wait for the copy phase to finish AND replication lag to reach ~zero before any traffic switching; switching against a lagging target serves stale reads.

// resources