Comments (4)
For example, I have a rocksdb instance that is open in read/write mode all the time and is being written to/read from all the time. I have a separate cronjob (different process) that opens rocksdb in read only mode
...Questions:
- in my specific use case, is taking a checkpoint and processing that from a different process better? If so why?
Generally speaking, using a read-only instance this way is not safe/supported: the read/write instance can delete files (e.g. SST files that get compacted away) from underneath the read-only instance. Checkpoints ensure that all the files necessary for a consistent snapshot of the database are preserved (by copying or hard-linking them).
- I assume the comment about keeping the iterators short lived still applies even when opening rocksdb in read only mode as it will pin the resources in the process that has the db open in read/write mode?
Having a read-only instance open has no effect on the read/write instance, so files are not protected from being deleted (see above).
from rocksdb.
got it, so aside from the possible consistency issue, is there any performance benefits of using checkpoint over read only instance for my use case?
from rocksdb.
In general, checkpoints do not offer a performance benefit. They don't have much of a performance overhead either though (other than copying certain types of files where hard linking is not appropriate), so I would suggest using them in use cases like this for the sake of correctness.
from rocksdb.
got it, thank you!
from rocksdb.
Related Issues (20)
- Potential crash-consistency vulnerability when allow_mmap_writes is enabled HOT 4
- Update RocksJava Wiki to include Logging Page HOT 5
- Question about compression type in rocksdbjava benchmark HOT 1
- Undefined symbols for architecture arm64 in MacOS
- Documentation is unclear about manual_wal_flush with WriteOptions::sync and without two_write_queues HOT 1
- Changes in noise in regression test results
- Missing documentation - How To Backup RocksDB page HOT 2
- delta snapshots computation HOT 9
- How can I get the default CF_handle by C API? HOT 2
- A question about the use of kTypeMerge in BlobDB. HOT 1
- How to delete .log file HOT 2
- RocksJava - Options cannot be instantiated directly HOT 1
- Opening LevelDB with corrupted MANIFEST-0* file HOT 6
- CancelAllBackgroundWork: Flush of unpersisted data waits for stall conditions to clear and delays db close HOT 2
- Installation documentation for OSX is out of date HOT 3
- ArenaTest.UnmappedAllocation fails when "transparent hugepage" is enabled.
- API request: SeekForBase
- Master branch unable to find zstd HOT 1
- RocksDB crashing when doing simple get HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rocksdb.