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

[CELEBORN-1630] Support to apply ratis peer operation with RESTful api #2804

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

turboFei
Copy link
Member

@turboFei turboFei commented Oct 11, 2024

What changes were proposed in this pull request?

Sub task of CELEBORN-1628.

Mapping for below commands:

$ celeborn-ratis sh peer add -peers <P0_HOST:P0_PORT,P1_HOST:P1_PORT,P2_HOST:P2_PORT> [-groupid <RAFT_GROUP_ID>] -address <P4_HOST:P4_PORT,...,PN_HOST:PN_PORT>
$ celeborn-ratis sh peer remove -peers <P0_HOST:P0_PORT,P1_HOST:P1_PORT,P2_HOST:P2_PORT> [-groupid <RAFT_GROUP_ID>] -address <P0_HOST:P0_PORT,...>
$ celeborn-ratis sh peer setPriority -peers <P0_HOST:P0_PORT,P1_HOST:P1_PORT,P2_HOST:P2_PORT> [-groupid <RAFT_GROUP_ID>] -addressPriority <P0_HOST:P0_PORT|PRIORITY>

Why are the changes needed?

It is more convenient to apply the ratis operation with RESTful api.

Does this PR introduce any user-facing change?

No, new api.

How was this patch tested?

Integration testing. Will provide the screenshot

Add:
image

Remove:
image

Set peer priority:
image

@turboFei turboFei marked this pull request as draft October 11, 2024 04:27
@turboFei turboFei changed the title Peer raft [CELEBORN-1630] Support to apply ratis peer operation with RESTful api Oct 11, 2024
@turboFei turboFei changed the title [CELEBORN-1630] Support to apply ratis peer operation with RESTful api [WIP][CELEBORN-1630] Support to apply ratis peer operation with RESTful api Oct 12, 2024
@turboFei turboFei changed the title [WIP][CELEBORN-1630] Support to apply ratis peer operation with RESTful api [CELEBORN-1630] Support to apply ratis peer operation with RESTful api Oct 12, 2024
@turboFei turboFei marked this pull request as ready for review October 12, 2024 08:12
@@ -2655,6 +2657,14 @@ object CelebornConf extends Logging {
.timeConf(TimeUnit.SECONDS)
.createWithDefaultString("5s")

val HA_MASTER_RATIS_LEADER_ELECTION_MEMBER_MAJORITY_ADD: ConfigEntry[Boolean] =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe default as true is more reasonable then false, and do we need guarantee this value should be true? seems majority-add default is false in ratis.

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 this pull request may close these issues.

2 participants