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

adding bulk call for alpha to inform zero about the tablets #8088

Merged
merged 5 commits into from Oct 26, 2021

Conversation

aman-bansal
Copy link
Contributor

@aman-bansal aman-bansal commented Oct 25, 2021

This PR adds a bulk API for zero so that alpha can inform about the predicates in a single go during the restart. This was needed for use cases where clients have 151k predicates and during the bulk loader zero was not started up. It was because alpha was sending the predicates one at a time and this turns into O(n^2) problem which never completes in a deterministic manner.

Hence we added an Inform API that alpha can send all the information in one single go to the zero and zero can initialize the node in one single go.


This change is Reviewable

Copy link
Contributor

@NamanJain8 NamanJain8 left a comment

Choose a reason for hiding this comment

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

LGTM

dgraph/cmd/zero/zero.go Show resolved Hide resolved
worker/groups.go Show resolved Hide resolved
worker/groups.go Show resolved Hide resolved
dgraph/cmd/zero/raft.go Outdated Show resolved Hide resolved
@aman-bansal aman-bansal merged commit 57e1f40 into release/v21.03 Oct 26, 2021
@aman-bansal aman-bansal deleted the aman/bulk_inform_tab branch October 26, 2021 16:20
aman-bansal added a commit that referenced this pull request Oct 26, 2021
* adding bulk call for alpha to inform zero about the tablets
aman-bansal added a commit that referenced this pull request Oct 26, 2021
)

* adding bulk call for alpha to inform zero about the tablets (#8088)
NamanJain8 pushed a commit that referenced this pull request Nov 30, 2021
)

* adding bulk call for alpha to inform zero about the tablets (#8088)

(cherry picked from commit c204d0a)
NamanJain8 added a commit that referenced this pull request Nov 30, 2021
… the tablets (#8… (#8100)

* feat: adding bulk call for alpha to inform zero about the tablets (#8089)

* adding bulk call for alpha to inform zero about the tablets (#8088)

(cherry picked from commit c204d0a)

* fix(zero): fix update membership to make bulk tablet proposal instead of multiple small (#8090)

Converting the smaller tablet proposals into a single bulk call makes the execution faster. Else, this update becomes of the order of O(n^2), where n is the number of tablet updates.

(cherry picked from commit 695c6d7)

Co-authored-by: aman bansal <bansalaman2905@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants