-
Notifications
You must be signed in to change notification settings - Fork 19
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
feat(raft): Implement Raft-based Consistent Hash State Management #636
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
d8cd37e
feat: Add Raft consensus for consistent hashing
sinadarbouy ff2be24
refactor: update consistent hash implementation with block-based prox…
sinadarbouy e35be54
refactor: remove proxy ID and related functionality
sinadarbouy 61c2ac8
feat(raft): Add Raft integration tests and consistent hash improvements
sinadarbouy 3ed59e5
feat(raft): add configurable directory and improve test stability
sinadarbouy 2ab8041
feat(config): add default Raft configuration values
sinadarbouy 809530f
refactor(raft): improve error handling and code organization
sinadarbouy 071e84c
Add temporary directory for Raft in Test_pluginScaffoldCmd
sinadarbouy c5d2dbe
feat(config): add JSON parsing for raft peers env variable
sinadarbouy 0c7ce5c
Add GRPC to raft
sinadarbouy fb36926
feat: add Docker Compose configuration for Raft cluster setup
sinadarbouy 8ba90d2
refactor(raft): improve error handling and code clarity
sinadarbouy 9e15e11
Add unit tests for Raft RPC server and client
sinadarbouy d3042bc
Update Raft configuration in gatewayd.yaml
sinadarbouy bd458bb
Convert RaftPeer slice to string for environment variable compatibility
sinadarbouy 72230cd
Update checksum in gatewayd_plugins.yaml
sinadarbouy 09e31e5
Refactor Raft configuration to use `IsBootstrap` flag
sinadarbouy f395f0c
Increase the sleep time to pass the test case on the local machine.
sinadarbouy 2068618
fix: resolve lint issues in rpc_test.go
sinadarbouy 01c2234
feat: Improve code readability with comments and updates
sinadarbouy 5d0c65f
Improve Redis container setup and async test handling
sinadarbouy 61945e3
Handle Fatal Error on Raft Node Initialization Failure
sinadarbouy ef3745b
Update test configuration in gatewayd.yaml
sinadarbouy d6f286b
Update comment to accurately describe Raft configuration constants
sinadarbouy 586efd7
Simplify leader check in monitorLeadership function
sinadarbouy f6aba9f
Fix: Gracefully handle ErrRaftShutdown during Node shutdown
sinadarbouy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,3 +73,9 @@ servers: | |
|
||
api: | ||
enabled: True | ||
|
||
raft: | ||
address: 127.0.0.1:2222 | ||
nodeID: node1 | ||
isBootstrap: true | ||
peers: {} |
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.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!