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

Speed up incremental collection replication using revisions #15770

Merged
merged 3 commits into from
Feb 18, 2022

Conversation

jsteemann
Copy link
Contributor

@jsteemann jsteemann commented Feb 18, 2022

Scope & Purpose

Parallelize the application of revision tree changes with fetching the next revision tree range batch in the incremental collection replication for collections created with ArangoDB 3.8 and higher.

In some unscientific benchmark, this improved incremental in-sync duration from 20 seconds to 11 seconds for a collection with 20m documents and every 1000th document changed on the leader. Results may vary depending on the collection and document sizes and the number of differences between leader and follower.

  • 💩 Bugfix
  • 🍕 New feature
  • 🔥 Performance improvement
  • 🔨 Refactoring/simplification

Checklist

  • Tests
    • Regression tests
    • C++ Unit tests
    • integration tests
    • resilience tests
  • 📖 CHANGELOG entry made
  • 📚 documentation written (release notes, API changes, ...)
  • Backports
    • Backport for 3.9: (Please link PR)
    • Backport for 3.8: (Please link PR)
    • Backport for 3.7: (Please link PR)

Related Information

  • Docs PR:
  • Enterprise PR:
  • GitHub issue / Jira ticket:
  • Design document:

* Parallelize applying of revision tree changes with fetching next revision
  tree range in incremental collection replication for collections created
  with ArangoDB 3.8 and higher.
@jsteemann jsteemann added this to the devel milestone Feb 18, 2022
@jsteemann jsteemann marked this pull request as ready for review February 18, 2022 12:46
Copy link
Member

@neunhoef neunhoef left a comment

Choose a reason for hiding this comment

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

LGTM

@jsteemann jsteemann merged commit 4ea2ef4 into devel Feb 18, 2022
@jsteemann jsteemann deleted the feature/speed-up-incremental-revision-tree-fetches branch February 18, 2022 16:37
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