Coder Social home page Coder Social logo

Rebuild state serially about omid HOT 6 CLOSED

yahooarchive avatar yahooarchive commented on September 16, 2024
Rebuild state serially

from omid.

Comments (6)

fpj avatar fpj commented on September 16, 2024

Isn't it sufficient to make sure that we execute operations in the order of ledger entry id? If operations are logged in order, then replaying this way should be sufficient. We can still read in parallel to speed up the read, but we need to make sure that we follow the order of entries.

Building the sequence and replaying might require a pretty large buffer in some cases, no? It might not be such a good idea to do it.

from omid.

maysamyabandeh avatar maysamyabandeh commented on September 16, 2024

I agree with you Daniel. The required memory for this purpose is in order of 10% of the physical memory and it is returned to the system right after recovery. Moreover that this approach greatly simplifies the recovery procedure, as it emulates a natural in-order processing of a sequence of events.

from omid.

fpj avatar fpj commented on September 16, 2024

I still don't understand the need of buffering before replaying. If we follow the order of entry ids, then I don't see why it should be incorrect.

I also don't understand where you're pulling 10% of memory from, Maysam.

from omid.

dgomezferro avatar dgomezferro commented on September 16, 2024

I think we all agree that we should just replay in the order of entry ids, but for that we have to buffer, no?

  1. We want to start reading the log from the tail to avoid reading the whole log and stop early.
  2. We want to replay the log in the order of entry ids (from the start to the tail).

So we cannot execute anything until we reach the stop condition, and then we execute all operations in order, so we should either buffer the read entries or reread them from BK.

from omid.

fpj avatar fpj commented on September 16, 2024

Correct, I keep forgetting that we are reading backwards.

from omid.

francisco-perez-sorrosal avatar francisco-perez-sorrosal commented on September 16, 2024

Current version is not based on BK

from omid.

Related Issues (13)

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.