rocksproperty property kvstoreid

Available since 1.0.0.

命令说明

用于获取指定kvstoreid的rocksdb属性property。例如:

  1. rocksproperty rocksdb.base-level 1
  2. 1) "rocksdb1.base-level:6"

表示获取1号rocksdb的属性rocks.base_level的值。如果不指定kvstoreid,则获取所有kvstore的值。

  1. rocksproperty rocksdb.base-level
  2. 1) "rocksdb0.base-level:6"
  3. 2) "rocksdb1.base-level:6"
  4. 3) "rocksdb2.base-level:6"
  5. 4) "rocksdb3.base-level:6"
  6. 5) "rocksdb4.base-level:6"
  7. 6) "rocksdb5.base-level:6"
  8. 7) "rocksdb6.base-level:6"
  9. 8) "rocksdb7.base-level:6"
  10. 9) "rocksdb8.base-level:6"
  11. 10) "rocksdb9.base-level:6"

参数说明

property是通过rocksdb内部接口GetProperty()获取,目前支持的值有

  1. "rocksdb.num-immutable-mem-table",
  2. "rocksdb.mem-table-flush-pending",
  3. "rocksdb.compaction-pending",
  4. "rocksdb.background-errors",
  5. "rocksdb.cur-size-active-mem-table",
  6. "rocksdb.cur-size-all-mem-tables",
  7. "rocksdb.size-all-mem-tables",
  8. "rocksdb.num-entries-active-mem-table",
  9. "rocksdb.num-entries-imm-mem-tables",
  10. "rocksdb.num-deletes-active-mem-table",
  11. "rocksdb.num-deletes-imm-mem-tables",
  12. "rocksdb.estimate-num-keys",
  13. "rocksdb.estimate-table-readers-mem",
  14. "rocksdb.is-file-deletions-enabled",
  15. "rocksdb.num-snapshots",
  16. "rocksdb.oldest-snapshot-time",
  17. "rocksdb.num-live-versions",
  18. "rocksdb.current-super-version-number",
  19. "rocksdb.estimate-live-data-size",
  20. "rocksdb.min-log-number-to-keep",
  21. "rocksdb.total-sst-files-size",
  22. "rocksdb.live-sst-files-size",
  23. "rocksdb.base-level",
  24. "rocksdb.estimate-pending-compaction-bytes",
  25. "rocksdb.num-running-compactions",
  26. "rocksdb.num-running-flushes",
  27. "rocksdb.actual-delayed-write-rate",
  28. "rocksdb.is-write-stopped",
  29. "rocksdb.num-immutable-mem-table-flushed",
  30. "rocksdb.num-files-at-level0",
  31. "rocksdb.num-files-at-level1",
  32. "rocksdb.num-files-at-level2",
  33. "rocksdb.num-files-at-level3",
  34. "rocksdb.num-files-at-level4",
  35. "rocksdb.num-files-at-level5",
  36. "rocksdb.num-files-at-level6",
  37. "rocksdb.compression-ratio-at-level0",
  38. "rocksdb.compression-ratio-at-level1",
  39. "rocksdb.compression-ratio-at-level2",
  40. "rocksdb.compression-ratio-at-level3",
  41. "rocksdb.compression-ratio-at-level4",
  42. "rocksdb.compression-ratio-at-level5",
  43. "rocksdb.compression-ratio-at-level6",
  44. "rocksdb.aggregated-table-properties",
  45. "rocksdb.aggregated-table-properties-at-level0",
  46. "rocksdb.aggregated-table-properties-at-level1",
  47. "rocksdb.aggregated-table-properties-at-level2",
  48. "rocksdb.aggregated-table-properties-at-level3",
  49. "rocksdb.aggregated-table-properties-at-level4",
  50. "rocksdb.aggregated-table-properties-at-level5",
  51. "rocksdb.aggregated-table-properties-at-level6",
  52. "rocksdb.stats",
  53. "rocksdb.sstables",
  54. "rocksdb.cfstats",
  55. "rocksdb.cfstats-no-file-histogram",
  56. "rocksdb.cf-file-histogram",
  57. "rocksdb.dbstats",
  58. "rocksdb.levelstats",

如果想获取所有属性值,可以执行

  1. rocksproperty all

命令返回

Array reply

Examples

如上