[store] meta: support remote write; refactor boot()#528
Merged
Conversation
- Dfs: operates meta through MetaNode, instead of through RPC.
- MetaNode: separate initialization functions:
- MetaNode::boot() to setup a new cluster with one node.
- MetaNode::boot_non_voter() to initialize a node that is going to
be added to an existent cluster.
- MetaNode::new() to start a initialized node that belongs to a
cluster.
- MetaNode: new() now gets everything ready. There is no need to start
meta-grpc manually.
- MetaNode: add several util func to operating on cluster info, such as
get_node_addr() and add_node().
- MetaNode: remove cached metrics data. Use raft metrics channel
instead, which provides blocking watch and data cache.
- MetaNode: add builder() to create a customizable constructor.
- MetaNode: support forwarded write to remote leader. A non-leader node
use MetaNode::write() to commit a meta changes.
- MetaNode: get_leader() to retrieve the latest leader the node knows
of.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Dfs: operates meta through MetaNode, instead of through RPC.
MetaNode: separate initialization functions:
be added to an existent cluster.
cluster.
MetaNode: new() now gets everything ready. There is no need to start
meta-grpc manually.
MetaNode: add several util func to operating on cluster info, such as
get_node_addr() and add_node().
MetaNode: remove cached metrics data. Use raft metrics channel
instead, which provides blocking watch and data cache.
MetaNode: add builder() to create a customizable constructor.
MetaNode: support forwarded write to the remote leader. A non-leader node
use MetaNode::write() to commit a meta changes.
MetaNode: get_leader() to retrieve the latest leader the node knows
of.
Changelog
Related Issues
#271