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

Multi-raft #313

Closed
akiradeveloper opened this issue Sep 1, 2023 · 0 comments · Fixed by #326
Closed

Multi-raft #313

akiradeveloper opened this issue Sep 1, 2023 · 0 comments · Fixed by #326
Assignees
Milestone

Comments

@akiradeveloper
Copy link
Owner

Real-world applications sometimes require multiple independent raft groups. This is called multi-raft. The most famous one is pingcap's tikv.

If the library maintains multiple raft applications inside the server instance, it will be very efficient because some resources (e.g. connection) or information (e.g. failure detection) can be shared between applications.

graph LR
  subgraph server1
  GW1(gateway1)
  subgraph raft_lanes1
     RC11(group_id=1)
     RC12(group_id=2)
  end
  end

   subgraph server2
   GW2(gateway2)
   subgraph raft_lanes2
     RC21(group_id=1)
     RC22(group_id=2)
   end
  end

  RC11 -.-|raft-group| RC21
  RC12 -.- RC22
  RC11 <-->|message| GW1
  RC12 <--> GW1
  GW1 <-->|grpc| GW2
  RC21 <--> GW2
  RC22 <--> GW2
Loading
@akiradeveloper akiradeveloper self-assigned this Sep 1, 2023
@akiradeveloper akiradeveloper added this to the v0.10.0 milestone Oct 12, 2023
@akiradeveloper akiradeveloper linked a pull request Feb 10, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant