Skip to content

Commit dfde634

Browse files
author
Shlomi Noach
authored
Merge pull request #217 from github/clarify-critical-load
Modified definition of `critical-load`
2 parents 904215e + ab70e01 commit dfde634

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

doc/interactive-commands.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,17 @@ Both interfaces may serve at the same time. Both respond to simple text command,
2020
- `chunk-size=<newsize>`: modify the `chunk-size`; applies on next running copy-iteration
2121
- `max-lag-millis=<max-lag>`: modify the maximum replication lag threshold (milliseconds, minimum value is `100`, i.e. `0.1` second)
2222
- `max-load=<max-load-thresholds>`: modify the `max-load` config; applies on next running copy-iteration
23-
The `max-load` format must be: `some_status=<numeric-threshold>[,some_status=<numeric-threshold>...]`. For example: `Threads_running=50,threads_connected=1000`, and you would then write/echo `max-load=Threads_running=50,threads_connected=1000` to the socket.
24-
- `critical-load=<load>`: change critical load setting (exceeding given thresholds causes panic and abort)
25-
- `nice-ratio=<ratio>`: change _nice_ ratio: 0 for aggressive (not nice, not sleeping), positive integer `n`: for any `1ms` spent copying rows, spend `n*1ms` units of time sleeping. Examples: assume a single rows chunk copy takes `100ms` to complete. `nice-ratio=0.5` will cause `gh-ost` to sleep for `50ms` immediately following. `nice-ratio=1` will cause `gh-ost` to sleep for `100ms`, effectively doubling runtime; value of `2` will effectively triple the runtime; etc.
23+
- The `max-load` format must be: `some_status=<numeric-threshold>[,some_status=<numeric-threshold>...]`'
24+
- For example: `Threads_running=50,threads_connected=1000`, and you would then write/echo `max-load=Threads_running=50,threads_connected=1000` to the socket.
25+
- `critical-load=<critical-load-thresholds>`: modify the `critical-load` config (exceeding these thresholds aborts the operation)
26+
- The `critical-load` format must be: `some_status=<numeric-threshold>[,some_status=<numeric-threshold>...]`'
27+
- For example: `Threads_running=1000,threads_connected=5000`, and you would then write/echo `critical-load=Threads_running=1000,threads_connected=5000` to the socket.
28+
- `nice-ratio=<ratio>`: change _nice_ ratio: 0 for aggressive (not nice, not sleeping), positive integer `n`:
29+
- For any `1ms` spent copying rows, spend `n*1ms` units of time sleeping.
30+
- Examples: assume a single rows chunk copy takes `100ms` to complete.
31+
- `nice-ratio=0.5` will cause `gh-ost` to sleep for `50ms` immediately following.
32+
- `nice-ratio=1` will cause `gh-ost` to sleep for `100ms`, effectively doubling runtime
33+
- value of `2` will effectively triple the runtime; etc.
2634
- `throttle-query`: change throttle query
2735
- `throttle-control-replicas='replica1,replica2'`: change list of throttle-control replicas, these are replicas `gh-ost` will check. This takes a comma separated list of replica's to check and replaces the previous list.
2836
- `throttle`: force migration suspend

0 commit comments

Comments
 (0)