Comments (5)
Hi @photoszzt , thank you for your suggestion!
It is important to prevent data loss, but I wonder the performance impact of this option.
And should we enable sync mode by default, or we make it a configuration option (kvrocks.conf) for users?
from kvrocks.
Yes, this option might heavily affect the performance, so guess it will be better to make a configuration option for users.
from kvrocks.
@PragmaTwice There's an option in the conf file: rocksdb.write_options.sync. It's set to no right now. I assume it will set WriteOptions.sync=true when I change this config to yes. I'm going to see how much slower if this is set to yes.
from kvrocks.
I don't think we should change our default behavior here. But you can edit yourself's config
I assume it will set WriteOptions.sync=true when I change this config to yes.
Yes.
from kvrocks.
@photoszzt I'm sorry for forgetting this configuration has been supported, you can achieve this by adding rocksdb.write_options.sync yes
to your configuration file. cc @PragmaTwice @mapleFU
Close this issue since it has been resolved, feel free to reopen it if you have any questions.
from kvrocks.
Related Issues (20)
- Move the performance benchmark to website HOT 3
- Optimize the implementation of IntervalSet intersection HOT 2
- [Build] Add supports for build kvrocks with UBSAN
- [Tools] Add a git commit hook for clang-format checking HOT 4
- Add option to INFO to return a json payload HOT 13
- should we start the compaction_checker_range thread if it's not configed. HOT 3
- TLS test case seems broken
- Improve consistency and isolation semantics by adding Context parameter to DB API HOT 19
- Improve error handling and logging for Retryable IO Errors HOT 13
- Add support for the TOUCH command HOT 2
- Potential data inconsistency issues? HOT 2
- Transaction with FlushDB:DeleteRange unsupported in WriteBatchWithIndex
- A new version of search key and metadata encoding
- Is stream column family useful to be a seperate cf instead of merging into subkey cf? HOT 4
- [OSPP 2024] Tracking issues: Enhance Kvrocks Transaction Syntax
- Improve and unify the RESP error message HOT 2
- Force PR titles to follow the conventional commit format HOT 1
- Docker images with Debian or Ubuntu HOT 4
- [Bug] XINFO overflow when deleting pending message and consumer HOT 5
- Support passing a slot range in CLUSTERX MIGRATE HOT 3
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 kvrocks.