]> git.proxmox.com Git - ceph.git/blame - ceph/src/rocksdb/examples/rocksdb_option_file_example.ini
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / rocksdb / examples / rocksdb_option_file_example.ini
CommitLineData
7c673cae
FG
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
36[DBOptions]
37 stats_dump_period_sec=600
38 max_manifest_file_size=18446744073709551615
39 bytes_per_sync=8388608
40 delayed_write_rate=2097152
41 WAL_ttl_seconds=0
42 WAL_size_limit_MB=0
43 max_subcompactions=1
44 wal_dir=
45 wal_bytes_per_sync=0
46 db_write_buffer_size=0
47 keep_log_file_num=1000
48 table_cache_numshardbits=4
49 max_file_opening_threads=1
50 writable_file_max_buffer_size=1048576
51 random_access_max_buffer_size=1048576
52 use_fsync=false
53 max_total_wal_size=0
54 max_open_files=-1
55 skip_stats_update_on_db_open=false
56 max_background_compactions=16
57 manifest_preallocation_size=4194304
58 max_background_flushes=7
59 is_fd_close_on_exec=true
60 max_log_file_size=0
61 advise_random_on_open=true
62 create_missing_column_families=false
63 paranoid_checks=true
64 delete_obsolete_files_period_micros=21600000000
65 log_file_time_to_roll=0
66 compaction_readahead_size=0
67 create_if_missing=false
68 use_adaptive_mutex=false
69 enable_thread_tracking=false
70 allow_fallocate=true
71 error_if_exists=false
72 recycle_log_file_num=0
73 skip_log_error_on_recovery=false
74 db_log_dir=
75 new_table_reader_for_compaction_inputs=true
76 allow_mmap_reads=false
77 allow_mmap_writes=false
78 use_direct_reads=false
79 use_direct_writes=false
80
81
82[CFOptions "default"]
83 compaction_style=kCompactionStyleLevel
84 compaction_filter=nullptr
85 num_levels=6
86 table_factory=BlockBasedTable
87 comparator=leveldb.BytewiseComparator
88 max_sequential_skip_in_iterations=8
89 soft_rate_limit=0.000000
90 max_bytes_for_level_base=1073741824
91 memtable_prefix_bloom_probes=6
92 memtable_prefix_bloom_bits=0
93 memtable_prefix_bloom_huge_page_tlb_size=0
94 max_successive_merges=0
95 arena_block_size=16777216
96 min_write_buffer_number_to_merge=1
97 target_file_size_multiplier=1
98 source_compaction_factor=1
99 max_bytes_for_level_multiplier=8
100 max_bytes_for_level_multiplier_additional=2:3:5
101 compaction_filter_factory=nullptr
102 max_write_buffer_number=8
103 level0_stop_writes_trigger=20
104 compression=kSnappyCompression
105 level0_file_num_compaction_trigger=4
106 purge_redundant_kvs_while_flush=true
107 max_write_buffer_number_to_maintain=0
108 memtable_factory=SkipListFactory
109 max_grandparent_overlap_factor=8
110 expanded_compaction_factor=25
111 hard_pending_compaction_bytes_limit=137438953472
112 inplace_update_num_locks=10000
113 level_compaction_dynamic_level_bytes=true
114 level0_slowdown_writes_trigger=12
115 filter_deletes=false
116 verify_checksums_in_compaction=true
117 min_partial_merge_operands=2
118 paranoid_file_checks=false
119 target_file_size_base=134217728
120 optimize_filters_for_hits=false
121 merge_operator=PutOperator
122 compression_per_level=kNoCompression:kNoCompression:kNoCompression:kSnappyCompression:kSnappyCompression:kSnappyCompression
123 compaction_measure_io_stats=false
124 prefix_extractor=nullptr
125 bloom_locality=0
126 write_buffer_size=134217728
127 disable_auto_compactions=false
128 inplace_update_support=false
129
130[TableOptions/BlockBasedTable "default"]
131 format_version=2
132 whole_key_filtering=true
133 no_block_cache=false
134 checksum=kCRC32c
135 filter_policy=rocksdb.BuiltinBloomFilter
136 block_size_deviation=10
137 block_size=8192
138 block_restart_interval=16
139 cache_index_and_filter_blocks=false
140 pin_l0_filter_and_index_blocks_in_cache=false
11fdf7f2 141 pin_top_level_index_and_filter=false
7c673cae
FG
142 index_type=kBinarySearch
143 hash_index_allow_collision=true
144 flush_block_policy_factory=FlushBlockBySizePolicyFactory