Giter Club home page Giter Club logo

Comments (5)

PragmaTwice avatar PragmaTwice commented on June 9, 2024

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.

git-hulk avatar git-hulk commented on June 9, 2024

Yes, this option might heavily affect the performance, so guess it will be better to make a configuration option for users.

from kvrocks.

photoszzt avatar photoszzt commented on June 9, 2024

image

@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.

mapleFU avatar mapleFU commented on June 9, 2024

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.

git-hulk avatar git-hulk commented on June 9, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.