-
Notifications
You must be signed in to change notification settings - Fork 49
Disable chunk uploads for the sync rpm upload endpoint to improve performance on console #1306
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
base: main
Are you sure you want to change the base?
Conversation
57cc4fa to
a2e03d3
Compare
|
@mdellweg can you re-run the tests? It's failing again on a random place. I can't do it myself |
|
@YasenT I just re-ran the tests. Could you please add a changelog entry, since this changes the functionality? |
|
Yes, we should have the tests pass. But it's only necessary once we have established there's no pending change anymore. We are working on the random test failures. |
a2e03d3 to
683be58
Compare
683be58 to
a1361cb
Compare
Added a changelog |
Anything else you would like changed? :) |
a1361cb to
2f33fcc
Compare
2f33fcc to
7fe4eb4
Compare
|
@YasenT Any reason why Gerrod is marked as the commit author? I am guessing this was by accident. |
|
Before I will comment more about the excessive comments still left, let me try to understand what this change is all about. When you have a huge file, it always used to be chunked up. Now with this change it will always not be chunked up, thereby running into the exact server limits the chunking was invented for in the first place. And for that you take away the user control over the chunk size. Couldn't you instead just tell the user to increase the chunk size? Isn't this a docs issue in the first place? Do we need a globally configurable chunk_size default? |
|
@mdellweg As for the chunking -> the default behavior actually doesn't change. It will still chunk at default 1MB, and people can set the chunk size if they want to. |
7fe4eb4 to
e148c8d
Compare
e148c8d to
b7cf6f4
Compare
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.
My last comment wasn't even about the comments, but about the fact that the command has a chunk_size (probably with a badly chosen default) that your changes just silently start to ignore. My point is that even in the face of the upload endpoint, there is a limit to the size of file you can upload in one go.
So my specific question here is, should we make the chunk_size globally configurable?
On the chunk size, I think that the default value should be dynamic and based off the size of the file being uploaded. But my changes aren't affecting the default behavior/flow that users are used to with the async endpoint. The changes affect just the synchronous one, which wasn't available through the pulp-cli till recently. And there the target is to reduce the tasking/load on the server side. |
Disable chunk uploads
And retrigger tests to see if it fails at same place. As I see that the nighties run just fine