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
Show replication topology by human-readable or JSON
yt-wait-replication
Wait until Seconds_Behind_Source < threshold
yt-alter-progress
You need to launch this before starting ALTER TABLE, or a progress is not shown (this maybe performance_schema's limitation)
Display progress InnoDB ALTER TABLE (need >= 5.7.6)
option_name
default
text
--host=value, -h=value
"localhost"
MySQL host
--port=value, -P=value
3306
MySQL port
--user=value, -u=value
(as same as OS user)
MySQL account using for connection and checking (need REPLICATION CLIENT, PROCESSLIST and global SELECT priv)
--password=value, -p=value
""
Password for the user specified by --user
--ask_pass, --ask_password, --askpass
false
Ask --password by prompt
--socket=value, -S=value
(depends on libmysqlclient.so)
Path to mysql.sock (this parameter is used when --host=localhost)
--interval=value, -i=value
10
Sleeping duration for each SELECT
--quiet, --silent, -q, -s
false
No output any messages
--verbose, -v
false
Verbose output mode
--help, --usage
false
print help message
--version, -V
false
Show ytkit version
--timeout=value
1
Seconds before timeout (Set into read_timeout, write_timeout, connect_timeout)
--debug
false
Set debug output
Example
Values are percentage of work_completed / work_estimated, estimated time calculated by percentage, elapsed time from starting ALTER TABLE, stage information, ALTER TABLE statement .
Only one purpose that "deleting all rows in target table" little by little as soon as possible.
Original mode: DELETE at ReplicationSource node, observe all Replica's Seconds_Behind_Master amd handling an accell or a break.
Parallel mode: sql_log_bin=OFFed DELETE at Source and All Replicas(replicas has been discovered automatically)
To more safety when unnecessay table to drop, empty table seems safety&lightly DROP TABLE.
option_name
default
text
--host=value, -h=value
"localhost"
MySQL host
--port=value, -P=value
3306
MySQL port
--user=value, -u=value
(as same as OS user)
MySQL account using for connection and checking (need REPLICATION CLIENT, PROCESSLIST and global SELECT priv)
--password=value, -p=value
""
Password for the user specified by --user
--ask_pass, --ask_password, --askpass
false
Ask --password by prompt
--socket=value, -S=value
(depends on libmysqlclient.so)
Path to mysql.sock (this parameter is used when --host=localhost)
--interval=value, -i=value
10
Sleeping duration for each SELECT
--quiet, --silent, -q, -s
false
No output any messages
--verbose, -v
false
Verbose output mode
--help, --usage
false
print help message
--version, -V
false
Show ytkit version
--timeout=value
1
Seconds before timeout (Set into read_timeout, write_timeout, connect_timeout)
--debug
false
Set debug output
--accelerating_throttling=value F
2
How many times DELETE succeed smoothly, before accelerating LIMIT Clause.
--delete_row_multiplier=value
1.1
Change LIMIT Clause dinamically by multiplying this number. When script detects 'Smooth', next LIMIT Caluse is current_limit * delete_row_multiplier. When script detects 'Busy', next LIMIT Clause is current_limit / delete_row_multiplier.If you specify --delete_row_multiplier=1, the script doesn't change LIMIT Clause value.