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: doc/command-line-flags.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -106,6 +106,10 @@ Optional. Default is `safe`. See more discussion in [`cut-over`](cut-over.md)
106
106
107
107
Default `3`. Max number of seconds to hold locks on tables while attempting to cut-over (retry attempted when lock exceeds timeout).
108
108
109
+
### cut-over-wait-timeout-seconds
110
+
111
+
When set to a value greater than zero, this flag causes `gh-ost` to set a [MySQL `wait_timeout`](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_wait_timeout) for the MySQL session performing the cut-over, specified in seconds. This timeout is to ensure the locks held by the cut-over are released if the `gh-ost` process terminates or pauses mid-cut-over.
112
+
109
113
### discard-foreign-keys
110
114
111
115
**Danger**: this flag will _silently_ discard any foreign keys existing on your table.
@@ -202,10 +206,6 @@ List of metrics and threshold values; topping the threshold of any will cause th
202
206
203
207
Typically `gh-ost` is used to migrate tables on a master. If you wish to only perform the migration in full on a replica, connect `gh-ost` to said replica and pass `--migrate-on-replica`. `gh-ost` will briefly connect to the master but otherwise will make no changes on the master. Migration will be fully executed on the replica, while making sure to maintain a small replication lag.
204
208
205
-
### mysql-wait-timeout
206
-
207
-
If set to a value greater than zero, causes `gh-ost` to set a provided [MySQL `wait_timeout`](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_wait_timeout) for MySQL sessions opened by `gh-ost`, specified in seconds.
208
-
209
209
### postpone-cut-over-flag-file
210
210
211
211
Indicate a file name, such that the final [cut-over](cut-over.md) step does not take place as long as the file exists.
0 commit comments