Skip to content

Commit de0ebcb

Browse files
author
Shlomi Noach
committed
documentation
1 parent 6da0b8a commit de0ebcb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

doc/interactive-commands.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Both interfaces may serve at the same time. Both respond to simple text command,
1919
- `sup`: returns a brief status summary of migration progress
2020
- `coordinates`: returns recent (though not exactly up to date) binary log coordinates of the inspected server
2121
- `chunk-size=<newsize>`: modify the `chunk-size`; applies on next running copy-iteration
22+
- `dml-batch-size=<newsize>`: modify the `dml-batch-size`; applies on next applying of binary log events
2223
- `max-lag-millis=<max-lag>`: modify the maximum replication lag threshold (milliseconds, minimum value is `100`, i.e. `0.1` second)
2324
- `max-load=<max-load-thresholds>`: modify the `max-load` config; applies on next running copy-iteration
2425
- The `max-load` format must be: `some_status=<numeric-threshold>[,some_status=<numeric-threshold>...]`'
@@ -52,7 +53,7 @@ While migration is running:
5253
$ echo status | nc -U /tmp/gh-ost.test.sample_data_0.sock
5354
# Migrating `test`.`sample_data_0`; Ghost table is `test`.`_sample_data_0_gst`
5455
# Migration started at Tue Jun 07 11:45:16 +0200 2016
55-
# chunk-size: 200; max lag: 1500ms; max-load: map[Threads_connected:20]
56+
# chunk-size: 200; max lag: 1500ms; dml-batch-size: 10; max-load: map[Threads_connected:20]
5657
# Throttle additional flag file: /tmp/gh-ost.throttle
5758
# Serving on unix socket: /tmp/gh-ost.test.sample_data_0.sock
5859
# Serving on TCP port: 10001
@@ -63,7 +64,7 @@ Copy: 0/2915 0.0%; Applied: 0; Backlog: 0/100; Elapsed: 40s(copy), 41s(total); s
6364
$ echo "chunk-size=250" | nc -U /tmp/gh-ost.test.sample_data_0.sock
6465
# Migrating `test`.`sample_data_0`; Ghost table is `test`.`_sample_data_0_gst`
6566
# Migration started at Tue Jun 07 11:56:03 +0200 2016
66-
# chunk-size: 250; max lag: 1500ms; max-load: map[Threads_connected:20]
67+
# chunk-size: 250; max lag: 1500ms; dml-batch-size: 10; max-load: map[Threads_connected:20]
6768
# Throttle additional flag file: /tmp/gh-ost.throttle
6869
# Serving on unix socket: /tmp/gh-ost.test.sample_data_0.sock
6970
# Serving on TCP port: 10001

go/logic/server.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ status # Print a detailed status message
146146
sup # Print a short status message
147147
coordinates # Print the currently inspected coordinates
148148
chunk-size=<newsize> # Set a new chunk-size
149+
dml-batch-size=<newsize> # Set a new dml-batch-size
149150
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, ...)
150151
critical-load=<load> # Set a new set of max-load thresholds
151152
max-lag-millis=<max-lag> # Set a new replication lag threshold

0 commit comments

Comments
 (0)