Commit dc257fc7 authored by Julien Muchembled's avatar Julien Muchembled

Add helper shell script to trigger RocksDB manual compaction on all CF

parent 3ddb6663
#!/bin/sh -e
: ${MYSQL:=mysql}
for cf in `$MYSQL -se '
SELECT DISTINCT cf_name FROM information_schema.rocksdb_cf_options
WHERE cf_name != "__system__";
'`; do
set "SET GLOBAL rocksdb_compact_cf = \`$cf\`;"
echo -n "$1 -- "
$MYSQL -Bse "SELECT NOW(3) INTO @start; $1; SELECT TIMEDIFF(NOW(3), @start);"
done
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment