-
Notifications
You must be signed in to change notification settings - Fork 2k
[ENH]: limit concurrency on operators spawned by GC #5720
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -34,6 +34,10 @@ pub struct GarbageCollectorConfig { | |||||
| )] | ||||||
| pub(super) version_cutoff_time: Duration, | ||||||
| pub(super) max_collections_to_gc: u32, | ||||||
| #[serde( | ||||||
| default = "GarbageCollectorConfig::default_max_concurrent_list_files_operations_per_collection" | ||||||
| )] | ||||||
| pub(super) max_concurrent_list_files_operations_per_collection: usize, | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [BestPractice] The new configuration field Please consider making this field
Suggested change
⚡ Committable suggestion Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Context for Agents |
||||||
| pub(super) max_collections_to_fetch: Option<u32>, | ||||||
| pub(super) gc_interval_mins: u32, | ||||||
| #[serde(default = "GarbageCollectorConfig::default_min_versions_to_keep")] | ||||||
|
|
@@ -70,6 +74,10 @@ impl GarbageCollectorConfig { | |||||
| 2 | ||||||
| } | ||||||
|
|
||||||
| fn default_max_concurrent_list_files_operations_per_collection() -> usize { | ||||||
| 10 | ||||||
| } | ||||||
|
|
||||||
| fn default_filter_min_versions_if_alive() -> Option<u64> { | ||||||
| None | ||||||
| } | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[BestPractice]
This hardcoded value could be replaced by the value from the configuration. I've left a suggestion on
rust/garbage_collector/src/config.rsto make themax_concurrent_list_files_operations_per_collectionfield public. Once that's done, you can useconfig.max_concurrent_list_files_operations_per_collectionhere.⚡ Committable suggestion
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.
Context for Agents