From ab70e011adc099b7d9a364177fcd18ff7d935f56 Mon Sep 17 00:00:00 2001 From: Gillian Gunson Date: Wed, 31 Aug 2016 18:10:02 -0700 Subject: [PATCH] Added info to critical-load. Format changes --- doc/interactive-commands.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/doc/interactive-commands.md b/doc/interactive-commands.md index afa4532..84c887d 100644 --- a/doc/interactive-commands.md +++ b/doc/interactive-commands.md @@ -20,9 +20,17 @@ Both interfaces may serve at the same time. Both respond to simple text command, - `chunk-size=`: modify the `chunk-size`; applies on next running copy-iteration - `max-lag-millis=`: modify the maximum replication lag threshold (milliseconds, minimum value is `100`, i.e. `0.1` second) - `max-load=`: modify the `max-load` config; applies on next running copy-iteration - The `max-load` format must be: `some_status=[,some_status=...]`. 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. -- `critical-load=`: change critical load setting (exceeding given thresholds causes panic and abort) -- `nice-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. + - The `max-load` format must be: `some_status=[,some_status=...]`' + - 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. +- `critical-load=`: modify the `critical-load` config (exceeding these thresholds aborts the operation) + - The `critical-load` format must be: `some_status=[,some_status=...]`' + - 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. +- `nice-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. - `throttle-query`: change throttle query - `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. - `throttle`: force migration suspend