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
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,6 +69,10 @@ This is somewhat similar to a Nagios `n`-times test, where `n` in our case is al
69
69
70
70
Optional. Default is `safe`. See more discussion in [`cut-over`](cut-over.md)
71
71
72
+
### cut-over-lock-timeout-seconds
73
+
74
+
Default `3`. Max number of seconds to hold locks on tables while attempting to cut-over (retry attempted when lock exceeds timeout).
75
+
72
76
### discard-foreign-keys
73
77
74
78
**Danger**: this flag will _silently_ discard any foreign keys existing on your table.
@@ -107,6 +111,10 @@ While the ongoing estimated number of rows is still heuristic, it's almost exact
107
111
108
112
Without this parameter, migration is a _noop_: testing table creation and validity of migration, but not touching data.
109
113
114
+
### force-table-names
115
+
116
+
Table name prefix to be used on the temporary tables.
117
+
110
118
### gcp
111
119
112
120
Add this flag when executing on a 1st generation Google Cloud Platform (GCP).
@@ -125,6 +133,10 @@ We think `gh-ost` should not take chances or make assumptions about the user's t
125
133
126
134
See [`initially-drop-ghost-table`](#initially-drop-ghost-table)
127
135
136
+
### initially-drop-socket-file
137
+
138
+
Default False. Should `gh-ost` forcibly delete an existing socket file. Be careful: this might drop the socket file of a running migration!
139
+
128
140
### max-lag-millis
129
141
130
142
On a replication topology, this is perhaps the most important migration throttling factor: the maximum lag allowed for migration to work. If lag exceeds this value, migration throttles.
@@ -169,6 +181,10 @@ See [`approve-renamed-columns`](#approve-renamed-columns)
169
181
170
182
Issue the migration on a replica; do not modify data on master. Useful for validating, testing and benchmarking. See [`testing-on-replica`](testing-on-replica.md)
171
183
184
+
### test-on-replica-skip-replica-stop
185
+
186
+
Default `False`. When `--test-on-replica` is enabled, do not issue commands stop replication (requires `--test-on-replica`).
187
+
172
188
### throttle-control-replicas
173
189
174
190
Provide a command delimited list of replicas; `gh-ost` will throttle when any of the given replicas lag beyond [`--max-lag-millis`](#max-lag-millis). The list can be queried and updated dynamically via [interactive commands](interactive-commands.md)
Copy file name to clipboardExpand all lines: doc/throttle.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,14 @@ Note that you may dynamically change both `--max-lag-millis` and the `throttle-c
46
46
47
47
An example query could be: `--throttle-query="select hour(now()) between 8 and 17"` which implies throttling auto-starts `8:00am` and migration auto-resumes at `18:00pm`.
48
48
49
+
#### HTTP Throttle
50
+
51
+
The `--throttle-http` flag allows for throttling via HTTP. Every 100ms `gh-ost` issues a `HEAD` request to the provided URL. If the response status code is not `200` throttling will kick in until a `200` response status code is returned.
52
+
53
+
If no URL is provided or the URL provided doesn't contain the scheme then the HTTP check will be disabled. For example `--throttle-http="http://1.2.3.4:6789/throttle"` will enable the HTTP check/throttling, but `--throttle-http="1.2.3.4:6789/throttle"` will not.
54
+
55
+
The URL can be queried and updated dynamically via [interactive interface](interactive-commands.md).
56
+
49
57
#### Manual control
50
58
51
59
In addition to the above, you are able to take control and throttle the operation any time you like.
0 commit comments