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

perf(backups): Reduce latency of list backups #7435

Merged
merged 4 commits into from
Feb 19, 2021

Conversation

jarifibrahim
Copy link
Contributor

@jarifibrahim jarifibrahim commented Feb 16, 2021

The list backups function was reading manifest files sequentially and
this is expensive. This PR improves the latency by parallelizing the
list backup calls.

For 10 backups stored in a single s3 bucket, list backups takes 31 seconds on master

dgraph lsbackup -l "s3:///amanbansal-test-bucket"  0.90s user 0.20s system 3% cpu 31.356 total

On this PR, it takes ~4.5 seconds

dgraph lsbackup -l "s3:///amanbansal-test-bucket"  0.74s user 0.08s system 18% cpu 4.566 total

This change is Reviewable

The list backups function was reading manifest files sequentially and
this is expensive. This PR improves the latency by parallelizing the
list backup calls.
Copy link
Contributor

@ahsanbarkati ahsanbarkati left a comment

Choose a reason for hiding this comment

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

Nice change.

@jarifibrahim jarifibrahim merged commit 825e34e into master Feb 19, 2021
@jarifibrahim jarifibrahim deleted the ibrahim/readmanifest-speedup branch February 19, 2021 10:36
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.

3 participants