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

Lucene partition balancing: optimize and fix transaction timeouts #2866

Open
jjezra opened this issue Aug 6, 2024 · 0 comments
Open

Lucene partition balancing: optimize and fix transaction timeouts #2866

jjezra opened this issue Aug 6, 2024 · 0 comments

Comments

@jjezra
Copy link
Contributor

jjezra commented Aug 6, 2024

Currently, the rebalancing code uses a single transaction to iterate through the grouping keys and rebalance the first partition in need in each group. This may cause a transaction timeout, and limits the number of documents that can moved - which causes extra merges.
The suggested solution is to:

  1. Use a read-only Agility Context to read the grouping keys and partitions info
  2. Use the same AC to evaluate if a rebalancing is needed on a give partition
  3. If needed, create a new, dedicated transaction to rebalance each single partition
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

No branches or pull requests

1 participant