Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optimize quorum read #7645

Closed
FANNG1 opened this issue Apr 1, 2017 · 2 comments
Closed

optimize quorum read #7645

FANNG1 opened this issue Apr 1, 2017 · 2 comments

Comments

@FANNG1
Copy link

FANNG1 commented Apr 1, 2017

Now quorum read go through raft and will apply to every follower's store.
1, every follower will apply a read and get the data from store, no need?
2, is it necessary to go though raft? could the follower get the newest commitIndex of leader, and wait util the log with the commitIndex applied to follower, then get the data from the store ?

@mitake
Copy link
Contributor

mitake commented Apr 1, 2017

After this PR, a follower skips log applying if the log doesn't have side effect (e.g. Range, read operations in Txn): #5689

Also, this PR implemented readIndex mechanism: #6212
With the change, a leader can execute read only requests without appending log entries.

@xiang90
Copy link
Contributor

xiang90 commented Apr 2, 2017

already implemented in 3.1. so closing.

@xiang90 xiang90 closed this as completed Apr 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants