rocksproperty property kvstoreid
Available since 1.0.0.
命令说明
用于获取指定kvstoreid
的rocksdb属性property
。例如:
rocksproperty rocksdb.base-level 1
1) "rocksdb1.base-level:6"
表示获取1
号rocksdb的属性rocks.base_level
的值。如果不指定kvstoreid
,则获取所有kvstore的值。
rocksproperty rocksdb.base-level
1) "rocksdb0.base-level:6"
2) "rocksdb1.base-level:6"
3) "rocksdb2.base-level:6"
4) "rocksdb3.base-level:6"
5) "rocksdb4.base-level:6"
6) "rocksdb5.base-level:6"
7) "rocksdb6.base-level:6"
8) "rocksdb7.base-level:6"
9) "rocksdb8.base-level:6"
10) "rocksdb9.base-level:6"
参数说明
property是通过rocksdb内部接口GetProperty()
获取,目前支持的值有
"rocksdb.num-immutable-mem-table",
"rocksdb.mem-table-flush-pending",
"rocksdb.compaction-pending",
"rocksdb.background-errors",
"rocksdb.cur-size-active-mem-table",
"rocksdb.cur-size-all-mem-tables",
"rocksdb.size-all-mem-tables",
"rocksdb.num-entries-active-mem-table",
"rocksdb.num-entries-imm-mem-tables",
"rocksdb.num-deletes-active-mem-table",
"rocksdb.num-deletes-imm-mem-tables",
"rocksdb.estimate-num-keys",
"rocksdb.estimate-table-readers-mem",
"rocksdb.is-file-deletions-enabled",
"rocksdb.num-snapshots",
"rocksdb.oldest-snapshot-time",
"rocksdb.num-live-versions",
"rocksdb.current-super-version-number",
"rocksdb.estimate-live-data-size",
"rocksdb.min-log-number-to-keep",
"rocksdb.total-sst-files-size",
"rocksdb.live-sst-files-size",
"rocksdb.base-level",
"rocksdb.estimate-pending-compaction-bytes",
"rocksdb.num-running-compactions",
"rocksdb.num-running-flushes",
"rocksdb.actual-delayed-write-rate",
"rocksdb.is-write-stopped",
"rocksdb.num-immutable-mem-table-flushed",
"rocksdb.num-files-at-level0",
"rocksdb.num-files-at-level1",
"rocksdb.num-files-at-level2",
"rocksdb.num-files-at-level3",
"rocksdb.num-files-at-level4",
"rocksdb.num-files-at-level5",
"rocksdb.num-files-at-level6",
"rocksdb.compression-ratio-at-level0",
"rocksdb.compression-ratio-at-level1",
"rocksdb.compression-ratio-at-level2",
"rocksdb.compression-ratio-at-level3",
"rocksdb.compression-ratio-at-level4",
"rocksdb.compression-ratio-at-level5",
"rocksdb.compression-ratio-at-level6",
"rocksdb.aggregated-table-properties",
"rocksdb.aggregated-table-properties-at-level0",
"rocksdb.aggregated-table-properties-at-level1",
"rocksdb.aggregated-table-properties-at-level2",
"rocksdb.aggregated-table-properties-at-level3",
"rocksdb.aggregated-table-properties-at-level4",
"rocksdb.aggregated-table-properties-at-level5",
"rocksdb.aggregated-table-properties-at-level6",
"rocksdb.stats",
"rocksdb.sstables",
"rocksdb.cfstats",
"rocksdb.cfstats-no-file-histogram",
"rocksdb.cf-file-histogram",
"rocksdb.dbstats",
"rocksdb.levelstats",
如果想获取所有属性值,可以执行
rocksproperty all
命令返回
Examples
如上