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

Issue/4469 limit concurrent merges #4473

Merged
merged 2 commits into from
Jan 30, 2024
Merged

Conversation

fulmicoton
Copy link
Contributor

@fulmicoton fulmicoton commented Jan 29, 2024

Introducing the merge scheduler to schedule merge operation in a global manner.

Closes #4469
Closes #4471

It was tested on a 10 pod cluster indexing 1000 indexes.

@fulmicoton fulmicoton force-pushed the issue/4469-limit-concurrent-merges branch 4 times, most recently from 032cd0c to e68efc6 Compare January 29, 2024 22:12
type ObservableState = MergePlannerState;

fn observable_state(&self) -> Self::ObservableState {
let ongoing_merge_operations = self
Copy link
Contributor Author

Choose a reason for hiding this comment

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

we now measure the number of onegoing merge operation in the merge scheduler.

@@ -359,21 +354,12 @@ impl MergePlanner {
let tracked_merge_operation = self
.ongoing_merge_operations_inventory
.track(merge_operation);
if let Err(try_send_err) = self
Copy link
Contributor Author

Choose a reason for hiding this comment

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

That contraption was meant to avoid scheduling several large merge in a row.

@fulmicoton fulmicoton force-pushed the issue/4469-limit-concurrent-merges branch 20 times, most recently from 4e80b24 to eb3a5a2 Compare January 30, 2024 12:38
@fulmicoton fulmicoton marked this pull request as ready for review January 30, 2024 12:38
@fulmicoton fulmicoton force-pushed the issue/4469-limit-concurrent-merges branch 2 times, most recently from 2e56780 to e20cf82 Compare January 30, 2024 13:05
quickwit/quickwit-actors/src/mailbox.rs Show resolved Hide resolved
quickwit/quickwit-indexing/src/actors/merge_planner.rs Outdated Show resolved Hide resolved
quickwit/quickwit-indexing/src/lib.rs Show resolved Hide resolved
@fulmicoton fulmicoton force-pushed the issue/4469-limit-concurrent-merges branch 2 times, most recently from 6f83d6f to af3822b Compare January 30, 2024 14:02
@fulmicoton fulmicoton force-pushed the issue/4469-limit-concurrent-merges branch 2 times, most recently from f6abbb1 to 079ee8f Compare January 30, 2024 14:18
@fulmicoton fulmicoton enabled auto-merge (squash) January 30, 2024 14:22
Co-authored-by: Adrien Guillo <adrien@quickwit.io>
@fulmicoton fulmicoton force-pushed the issue/4469-limit-concurrent-merges branch from 079ee8f to e9e047d Compare January 30, 2024 14:55
@fulmicoton fulmicoton merged commit 179ca81 into main Jan 30, 2024
4 checks passed
@fulmicoton fulmicoton deleted the issue/4469-limit-concurrent-merges branch January 30, 2024 15:04
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.

Merge scheduling inefficiency Too many concurrent merges
2 participants