forked from etcd-io/etcd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit prototypes a change to the etcd/raft library that allows raft logs writes to be performed asynchronously from the state machine loop. Instead of each `Ready` struct requiring immediate durability of the attached entries before `Advance()`-ing, it requires a caller to eventually signal durability of those entries through the use of a new `StableTo` API. Chunks of log entries can be "in-flight" simultaneously and the state machine will only act on them when they are signaled to be durably written to the local log. In a sense, this change gives local disk I/O the same treatment that etcd/raft gives network I/O. As a result, it moves towards an interface that allows the state machine to run at a rate that is decoupled from disk and network I/O. The remaining piece here is async log application, which may be less impactful for performance (application is not durable) but should also be easier to support. The commit does not make an effort to be backwards compatible.
- Loading branch information
1 parent
e51c697
commit 1d1fa32
Showing
6 changed files
with
127 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.