You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: go/cmd/gh-ost/main.go
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -71,6 +71,7 @@ func main() {
71
71
flag.BoolVar(&migrationContext.InitiallyDropOldTable, "initially-drop-old-table", false, "Drop a possibly existing OLD table (remains from a previous run?) before beginning operation. Default is to panic and abort if such table exists")
72
72
flag.BoolVar(&migrationContext.InitiallyDropGhostTable, "initially-drop-ghost-table", false, "Drop a possibly existing Ghost table (remains from a previous run?) before beginning operation. Default is to panic and abort if such table exists")
73
73
cutOver:=flag.String("cut-over", "atomic", "choose cut-over type (default|atomic, two-step)")
74
+
flag.BoolVar(&migrationContext.ForceNamedCutOverCommand, "force-named-cut-over", false, "When true, the 'unpostpone|cut-over' interactive command must name the migrated table")
74
75
75
76
flag.BoolVar(&migrationContext.SwitchToRowBinlogFormat, "switch-to-rbr", false, "let this tool automatically switch binary log format to 'ROW' on the replica, if needed. The format will NOT be switched back. I'm too scared to do that, and wish to protect you if you happen to execute another migration while this one is running")
76
77
flag.BoolVar(&migrationContext.AssumeRBR, "assume-rbr", false, "set to 'true' when you know for certain your server uses 'ROW' binlog_format. gh-ost is unable to tell, event after reading binlog_format, whether the replication process does indeed use 'ROW', and restarts replication to be certain RBR setting is applied. Such operation requires SUPER privileges which you might not have. Setting this flag avoids restarting replication and you can proceed to use gh-ost without SUPER privileges")
nice-ratio=<ratio> # Set a new nice-ratio, immediate sleep after each row-copy operation, float (examples: 0 is agrressive, 0.7 adds 70% runtime, 1.0 doubles runtime, 2.0 triples runtime, ...)
612
-
critical-load=<load> # Set a new set of max-load thresholds
613
-
max-lag-millis=<max-lag> # Set a new replication lag threshold
614
-
replication-lag-query=<query> # Set a new query that determines replication lag (no quotes)
615
-
max-load=<load> # Set a new set of max-load thresholds
616
-
throttle-query=<query> # Set a new throttle-query (no quotes)
617
-
throttle-control-replicas=<replicas> # Set a new comma delimited list of throttle control replicas
618
-
throttle # Force throttling
619
-
no-throttle # End forced throttling (other throttling may still apply)
620
-
unpostpone # Bail out a cut-over postpone; proceed to cut-over
0 commit comments