]> git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/docs/_posts/2016-03-07-rocksdb-options-file.markdown
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / rocksdb / docs / _posts / 2016-03-07-rocksdb-options-file.markdown
1 ---
2 title: RocksDB Options File
3 layout: post
4 author: yhciang
5 category: blog
6 redirect_from:
7 - /blog/3089/rocksdb-options-file/
8 ---
9
10 In RocksDB 4.3, we added a new set of features that makes managing RocksDB options easier. Specifically:
11
12 * **Persisting Options Automatically**: Each RocksDB database will now automatically persist its current set of options into an INI file on every successful call of DB::Open(), SetOptions(), and CreateColumnFamily() / DropColumnFamily().
13
14
15
16 * **Load Options from File**: We added [LoadLatestOptions() / LoadOptionsFromFile()](https://github.com/facebook/rocksdb/blob/4.3.fb/include/rocksdb/utilities/options_util.h#L48-L58) that enables developers to construct RocksDB options object from an options file.
17
18
19
20 * **Sanity Check Options**: We added [CheckOptionsCompatibility](https://github.com/facebook/rocksdb/blob/4.3.fb/include/rocksdb/utilities/options_util.h#L64-L77) that performs compatibility check on two sets of RocksDB options.
21
22 <!--truncate-->
23
24 Want to know more about how to use this new features? Check out the [RocksDB Options File wiki page](https://github.com/facebook/rocksdb/wiki/RocksDB-Options-File) and start using this new feature today!