Giter Club home page Giter Club logo

Comments (5)

fengjiachun avatar fengjiachun commented on July 17, 2024

@shiftyman 看的真仔细,是的,目前 snapshot 是全部 region 的维度来做的,这个是待优化的点
不过严格来讲,也不是多个 region 共享一个状态机,每个 region 都有独立的 KVStoreStateMachine,不过存储(RocksRawKVStore/MemoryRawKVStore)是所有 region 共享的, 数据隔离依靠每个 region 中的 key range: [startKey, endKey)

from sofa-jraft.

shiftyman avatar shiftyman commented on July 17, 2024

嗯嗯,弱弱问一句,这里除了不共享raw kv store, 还有更好的优化思路吗?^^

from sofa-jraft.

fengjiachun avatar fengjiachun commented on July 17, 2024

可能后面要修改 onSnapshotSave() ,当一个 region 做 snapshot 时只生成它 key range 的 sst file,
install snapshot 时也选择 ingest sst file 的方式

https://github.com/facebook/rocksdb/wiki/Creating-and-Ingesting-SST-files

如果你有更好的方案也欢迎提出来

from sofa-jraft.

fengjiachun avatar fengjiachun commented on July 17, 2024

@shiftyman#42

from sofa-jraft.

shiftyman avatar shiftyman commented on July 17, 2024

很好

from sofa-jraft.

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.