rocksdb_option_file_example.ini 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. # This is a RocksDB option file.
  2. #
  3. # A typical RocksDB options file has four sections, which are
  4. # Version section, DBOptions section, at least one CFOptions
  5. # section, and one TableOptions section for each column family.
  6. # The RocksDB options file in general follows the basic INI
  7. # file format with the following extensions / modifications:
  8. #
  9. # * Escaped characters
  10. # We escaped the following characters:
  11. # - \n -- line feed - new line
  12. # - \r -- carriage return
  13. # - \\ -- backslash \
  14. # - \: -- colon symbol :
  15. # - \# -- hash tag #
  16. # * Comments
  17. # We support # style comments. Comments can appear at the ending
  18. # part of a line.
  19. # * Statements
  20. # A statement is of the form option_name = value.
  21. # Each statement contains a '=', where extra white-spaces
  22. # are supported. However, we don't support multi-lined statement.
  23. # Furthermore, each line can only contain at most one statement.
  24. # * Sections
  25. # Sections are of the form [SecitonTitle "SectionArgument"],
  26. # where section argument is optional.
  27. # * List
  28. # We use colon-separated string to represent a list.
  29. # For instance, n1:n2:n3:n4 is a list containing four values.
  30. #
  31. # Below is an example of a RocksDB options file:
  32. [Version]
  33. rocksdb_version=4.3.0
  34. options_file_version=1.1
  35. [DBOptions]
  36. stats_dump_period_sec=600
  37. max_manifest_file_size=18446744073709551615
  38. bytes_per_sync=8388608
  39. delayed_write_rate=2097152
  40. WAL_ttl_seconds=0
  41. WAL_size_limit_MB=0
  42. max_subcompactions=1
  43. wal_dir=
  44. wal_bytes_per_sync=0
  45. db_write_buffer_size=0
  46. keep_log_file_num=1000
  47. table_cache_numshardbits=4
  48. max_file_opening_threads=1
  49. writable_file_max_buffer_size=1048576
  50. random_access_max_buffer_size=1048576
  51. use_fsync=false
  52. max_total_wal_size=0
  53. max_open_files=-1
  54. skip_stats_update_on_db_open=false
  55. max_background_compactions=16
  56. manifest_preallocation_size=4194304
  57. max_background_flushes=7
  58. is_fd_close_on_exec=true
  59. max_log_file_size=0
  60. advise_random_on_open=true
  61. create_missing_column_families=false
  62. paranoid_checks=true
  63. delete_obsolete_files_period_micros=21600000000
  64. log_file_time_to_roll=0
  65. compaction_readahead_size=0
  66. create_if_missing=false
  67. use_adaptive_mutex=false
  68. enable_thread_tracking=false
  69. allow_fallocate=true
  70. error_if_exists=false
  71. recycle_log_file_num=0
  72. skip_log_error_on_recovery=false
  73. db_log_dir=
  74. new_table_reader_for_compaction_inputs=true
  75. allow_mmap_reads=false
  76. allow_mmap_writes=false
  77. use_direct_reads=false
  78. use_direct_writes=false
  79. [CFOptions "default"]
  80. compaction_style=kCompactionStyleLevel
  81. compaction_filter=nullptr
  82. num_levels=6
  83. table_factory=BlockBasedTable
  84. comparator=leveldb.BytewiseComparator
  85. max_sequential_skip_in_iterations=8
  86. soft_rate_limit=0.000000
  87. max_bytes_for_level_base=1073741824
  88. memtable_prefix_bloom_probes=6
  89. memtable_prefix_bloom_bits=0
  90. memtable_prefix_bloom_huge_page_tlb_size=0
  91. max_successive_merges=0
  92. arena_block_size=16777216
  93. min_write_buffer_number_to_merge=1
  94. target_file_size_multiplier=1
  95. source_compaction_factor=1
  96. max_bytes_for_level_multiplier=8
  97. max_bytes_for_level_multiplier_additional=2:3:5
  98. compaction_filter_factory=nullptr
  99. max_write_buffer_number=8
  100. level0_stop_writes_trigger=20
  101. compression=kSnappyCompression
  102. level0_file_num_compaction_trigger=4
  103. purge_redundant_kvs_while_flush=true
  104. max_write_buffer_size_to_maintain=0
  105. memtable_factory=SkipListFactory
  106. max_grandparent_overlap_factor=8
  107. expanded_compaction_factor=25
  108. hard_pending_compaction_bytes_limit=137438953472
  109. inplace_update_num_locks=10000
  110. level_compaction_dynamic_level_bytes=true
  111. level0_slowdown_writes_trigger=12
  112. filter_deletes=false
  113. verify_checksums_in_compaction=true
  114. min_partial_merge_operands=2
  115. paranoid_file_checks=false
  116. target_file_size_base=134217728
  117. optimize_filters_for_hits=false
  118. merge_operator=PutOperator
  119. compression_per_level=kNoCompression:kNoCompression:kNoCompression:kSnappyCompression:kSnappyCompression:kSnappyCompression
  120. compaction_measure_io_stats=false
  121. prefix_extractor=nullptr
  122. bloom_locality=0
  123. write_buffer_size=134217728
  124. disable_auto_compactions=false
  125. inplace_update_support=false
  126. [TableOptions/BlockBasedTable "default"]
  127. format_version=2
  128. whole_key_filtering=true
  129. no_block_cache=false
  130. checksum=kCRC32c
  131. filter_policy=rocksdb.BuiltinBloomFilter
  132. block_size_deviation=10
  133. block_size=8192
  134. block_restart_interval=16
  135. cache_index_and_filter_blocks=false
  136. pin_l0_filter_and_index_blocks_in_cache=false
  137. pin_top_level_index_and_filter=false
  138. index_type=kBinarySearch
  139. hash_index_allow_collision=true
  140. flush_block_policy_factory=FlushBlockBySizePolicyFactory