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

Debounce shard pruning request #5374

Merged
merged 8 commits into from
Sep 19, 2024
Merged

Debounce shard pruning request #5374

merged 8 commits into from
Sep 19, 2024

Conversation

rdettai
Copy link
Contributor

@rdettai rdettai commented Sep 2, 2024

Description

Instead of running a separate process to clean up the shard table, we initiate the cleanup requests from the files sources. To avoid an increasing number of requests when the number of pipelines grows the requests are debounced in the control plane.

How was this PR tested?

Integration tests

@rdettai rdettai changed the title Prune-debounce Debounce shard pruning request Sep 2, 2024
Copy link

github-actions bot commented Sep 2, 2024

On SSD:

Average search latency is 1.01x that of the reference (lower is better).
Ref run id: 3290, ref commit: 6768d01
Link

On GCS:

Average search latency is 1.01x that of the reference (lower is better).
Ref run id: 3291, ref commit: 6768d01
Link

@rdettai rdettai force-pushed the sqs-garbage-collection branch from 89d09bd to b680d1e Compare September 3, 2024 12:10
@rdettai rdettai marked this pull request as ready for review September 4, 2024 15:55
@rdettai rdettai requested a review from fulmicoton September 4, 2024 15:55
@rdettai rdettai force-pushed the prune-debounce branch 2 times, most recently from db09a8e to cac6c90 Compare September 5, 2024 07:33
@rdettai rdettai force-pushed the sqs-garbage-collection branch from 43b202f to 7c543ee Compare September 5, 2024 13:31
@rdettai rdettai force-pushed the sqs-garbage-collection branch from 7c543ee to d1885af Compare September 5, 2024 16:12

let debouncer = self
.prune_shards_debouncers
.entry((
Copy link
Contributor

Choose a reason for hiding this comment

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

one bummer is that this map is evergrowing.

@rdettai rdettai force-pushed the prune-debounce branch 2 times, most recently from 243b1d7 to d703a8b Compare September 18, 2024 14:47
Copy link
Contributor Author

Choose a reason for hiding this comment

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

No real change here, just simplifying the trait bounds for readability

Copy link
Contributor

Choose a reason for hiding this comment

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

thx

@rdettai rdettai force-pushed the sqs-garbage-collection branch from fbb8916 to a600c3d Compare September 19, 2024 14:03
Base automatically changed from sqs-garbage-collection to main September 19, 2024 14:22
@rdettai rdettai enabled auto-merge (squash) September 19, 2024 15:19
@rdettai rdettai merged commit f3dd8f2 into main Sep 19, 2024
4 of 5 checks passed
@rdettai rdettai deleted the prune-debounce branch September 19, 2024 15:34
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