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

feat: Dynamic parallelism mechanism for all UploadQueues #1472

Merged
merged 29 commits into from
Mar 26, 2025

Conversation

adrien-coye
Copy link
Contributor

@adrien-coye adrien-coye commented Mar 14, 2025

Since we now have two upload queues, each queue is no longer managing its own degree of parallelism.

A new UploadParallelismOrchestratorobject now dynamically computes the optimal queue depth for each queue in a way that makes it equivalent to the previous mechanism with one queue only.

Depends on Infomaniak/swift-dependency-injection#12
Depends on #1478

@adrien-coye adrien-coye force-pushed the feat/upload-parallelism branch 2 times, most recently from 28dfffb to 23d32ef Compare March 14, 2025 08:13
@adrien-coye adrien-coye changed the title refactor(UploadService): Parallelism observation feat(UploadParallelismOrchestrator): Parallelism mechanism for all UploadQueues Mar 14, 2025
@adrien-coye adrien-coye changed the title feat(UploadParallelismOrchestrator): Parallelism mechanism for all UploadQueues feat: Dynamic parallelism mechanism for all UploadQueues Mar 14, 2025
@adrien-coye adrien-coye force-pushed the feat/photo-upload-queue branch from 5e164fd to 9c276f5 Compare March 18, 2025 12:14
@adrien-coye adrien-coye force-pushed the feat/upload-parallelism branch from 6725743 to a82e1f7 Compare March 18, 2025 12:45
Copy link
Contributor Author

@adrien-coye adrien-coye left a comment

Choose a reason for hiding this comment

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

Yesterday I thoroughly tested this branch. I'm happy with the way it behaves. I also don't see anything in the code that need to be changed, so opening for review.

@adrien-coye adrien-coye marked this pull request as ready for review March 19, 2025 06:09
Copy link

@adrien-coye adrien-coye force-pushed the feat/photo-upload-queue branch from 7515d01 to aa860d2 Compare March 20, 2025 07:49
@adrien-coye adrien-coye force-pushed the feat/upload-parallelism branch from 30a2822 to 28019f1 Compare March 20, 2025 07:52
Copy link
Member

@PhilippeWeidmann PhilippeWeidmann left a comment

Choose a reason for hiding this comment

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

Code looks okay apart from one minor comment let me know what you think.
I just need to play a little bit with it.

@adrien-coye adrien-coye force-pushed the feat/photo-upload-queue branch from aa860d2 to 5b2de0f Compare March 21, 2025 06:46
@adrien-coye adrien-coye force-pushed the feat/upload-parallelism branch from 4492c9f to 93e733b Compare March 21, 2025 06:47
@adrien-coye adrien-coye force-pushed the feat/photo-upload-queue branch from 5b2de0f to 877a325 Compare March 24, 2025 12:42
@adrien-coye adrien-coye force-pushed the feat/upload-parallelism branch from 337b977 to cd2779c Compare March 24, 2025 12:43
Copy link
Contributor Author

@adrien-coye adrien-coye left a comment

Choose a reason for hiding this comment

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

Did a new self review

Copy link
Contributor Author

@adrien-coye adrien-coye left a comment

Choose a reason for hiding this comment

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

I did a new self review

@adrien-coye adrien-coye force-pushed the feat/photo-upload-queue branch from 877a325 to f2604f5 Compare March 26, 2025 07:24
@adrien-coye adrien-coye force-pushed the feat/upload-parallelism branch from a442d06 to ba9d70a Compare March 26, 2025 07:24
@adrien-coye adrien-coye merged commit 3e24922 into feat/photo-upload-queue Mar 26, 2025
5 checks passed
@adrien-coye adrien-coye deleted the feat/upload-parallelism branch March 26, 2025 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants