rocksdb/utilities/blob_db
Sagar Vemuri 25ac1697b4 Blob DB: Evict oldest blob file when close to blob db size limit
Summary:
Evict oldest blob file and put it in obsolete_files list when close to blob db size limit. The file will be delete when the `DeleteObsoleteFiles` background job runs next time.
For now I set `kEvictOldestFileAtSize` constant, which controls when to evict the oldest file, at 90%. It could be tweaked or made into an option if really needed; I didn't want to expose it as an option pre-maturely as there are already too many :) .
Closes https://github.com/facebook/rocksdb/pull/3094

Differential Revision: D6187340

Pulled By: sagar0

fbshipit-source-id: 687f8262101b9301bf964b94025a2fe9d8573421
2017-11-02 12:11:21 -07:00
..
blob_db_impl.cc Blob DB: Evict oldest blob file when close to blob db size limit 2017-11-02 12:11:21 -07:00
blob_db_impl.h Blob DB: Evict oldest blob file when close to blob db size limit 2017-11-02 12:11:21 -07:00
blob_db_iterator.h Blob DB: Store blob index as kTypeBlobIndex in base db 2017-10-17 17:28:11 -07:00
blob_db_test.cc Blob DB: Evict oldest blob file when close to blob db size limit 2017-11-02 12:11:21 -07:00
blob_db.cc Blob DB: cleanup unused options 2017-10-31 16:42:08 -07:00
blob_db.h Blob DB: cleanup unused options 2017-10-31 16:42:08 -07:00
blob_dump_tool.cc Blob DB: update blob file format 2017-10-27 13:27:12 -07:00
blob_dump_tool.h Change RocksDB License 2017-07-15 16:11:23 -07:00
blob_file.cc Blob DB: update blob file format 2017-10-27 13:27:12 -07:00
blob_file.h Blob DB: update blob file format 2017-10-27 13:27:12 -07:00
blob_index.h Blob DB: Inline small values in base DB 2017-10-26 12:30:54 -07:00
blob_log_format.cc Blob DB: update blob file format 2017-10-27 13:27:12 -07:00
blob_log_format.h Blob DB: Initialize all fields in Blob Header, Footer and Record structs 2017-10-31 16:42:08 -07:00
blob_log_reader.cc Blob DB: update blob file format 2017-10-27 13:27:12 -07:00
blob_log_reader.h Blob DB: update blob file format 2017-10-27 13:27:12 -07:00
blob_log_writer.cc Blob DB: update blob file format 2017-10-27 13:27:12 -07:00
blob_log_writer.h Blob DB: update blob file format 2017-10-27 13:27:12 -07:00
ttl_extractor.cc Move blob_db/ttl_extractor.h into blob_db/blob_db.h 2017-07-28 14:28:21 -07:00