差异化命令
config [get | set | rewrite]
在服务器配置中,支持参数的get、set、rewrite,支持的参数如下:
| - | GET | SET |
|---|---|---|
| binlog-file-size | o | x |
| compact-cron | o | o |
| compact-interval | o | o |
| compression | o | x |
| daemonize | o | x |
| db-path | o | x |
| db-sync-path | o | x |
| db-sync-speed | o | x |
| double-master-ip | o | o |
| double-master-port | o | x |
| double-master-sid | o | x |
| dump-expire | o | o |
| dump-path | o | x |
| dump-prefix | o | o |
| expire-logs-days | o | o |
| expire-logs-nums | o | o |
| identify-binlog-type | o | o |
| loglevel | o | o |
| log-path | o | x |
| masterauth | o | o |
| max-background-compactions | o | x |
| max-background-flushes | o | x |
| max-bytes-for-level-multiplier | o | x |
| max-cache-files | o | x |
| maxclients | o | o |
| maxmemory | o | x |
| network-interface | o | x |
| pidfile | o | x |
| port | o | x |
| requirepass | o | o |
| root-connection-num | o | o |
| slaveof | o | x |
| slave-priority | o | o |
| slave-read-only | o | o |
| slotmigrate | o (小于 3.0.0) | o (小于 3.0.0) |
| slowlog-log-slower-than | o | o |
| slowlog-write-errorlog | o (小于 3.0.2) | o(小于3.0.2) |
| sync-buffer-size | o | x |
| sync-thread-num | o | x |
| target-file-size-base | o | x |
| thread-num | o | x |
| timeout | o | o |
| userblacklist | o | o |
| userpass | o | o |
| write-buffer-size | o | x |
| max-cache-statistic-keys | o(小于3.0.6) | o(小于3.0.6) |
| small-compaction-threshold | o(小于3.0.6) | o(小于3.0.6) |
| databases | o(小于3.1.0) | x |
| write-binlog | o | o |
| thread-pool-size | o | x |
| slowlog-max-len | o | o |
| share-block-cache | o | x |
| optimize-filters-for-hits | o | x |
| level-compaction-dynamic-level-bytes | o | x |
| cache-index-and-filter-blocks | o | x |
| block-size | o | x |
| block-cache | o | x |
| sync-window-size | o | o |
purgelogsto [write2file-name]
purgelogsto为pika原创命令, 功能为手动清理日志, 类似mysql的purge master logs to命令, 该命令有多重检测机制以确保日志一定为安全清理