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

Auto partition #644

Merged
merged 2 commits into from
Jun 13, 2019
Merged

Auto partition #644

merged 2 commits into from
Jun 13, 2019

Conversation

orpiske
Copy link
Contributor

@orpiske orpiske commented May 24, 2019

Auto partition the chunk size based on the project size. This changes the default behavior so that instead of sending all of the data in one chunk, it actually tries to find an optimal chunk size. In our tests, when analyzing a large project with more than 2200 sub-projects, the time to perform the REST call decreased from ~16 minutes to ~4 minutes. On a medium sized project, with more than 800 sub-projects, the time decreased from ~4 minutes to ~2 minutes.

@commonjava-bot
Copy link

Can one of the admins verify this patch?

@rnc
Copy link
Contributor

rnc commented May 25, 2019

ok to test

@rnc
Copy link
Contributor

rnc commented May 25, 2019

Can you split the 503 work separately as that is PR #639. Thanks.

This uses a pre-defined chunk size so that larger projects do not keep
retrying access do the DA host until the request goes through. It should
reduce the align time for some of the larger projects without the need
to use tweak the max rest size manually.
@orpiske
Copy link
Contributor Author

orpiske commented May 25, 2019

Can you split the 503 work separately as that is PR #639. Thanks.

Sure I can. I've just pushed it without the code changes for #639.

@rnc
Copy link
Contributor

rnc commented May 25, 2019

Thanks. Do you have any test cases for this?

@rnc
Copy link
Contributor

rnc commented May 31, 2019

Can you also suggest projects you verified the performance changes on - I'd like to look at them myself.

@orpiske
Copy link
Contributor Author

orpiske commented May 31, 2019

Thanks for getting back about this patch.

Thanks. Do you have any test cases for this?

Not yet, but I can certainly add a test for this. I have been busy this week (and possibly part of the next) with an ongoing release, so I couldn't dedicate time for this yet.

Can you also suggest projects you verified the performance changes on - I'd like to look at them myself.

Sure, you can try on this project: https://github.com/jboss-fuse/camel. I'll send an email w/ the precise command line we use. We have internal details we cannot leak.

@orpiske
Copy link
Contributor Author

orpiske commented May 31, 2019

Another project you can possibly try looking at is https://github.com/jboss-fuse/cxf. It's not as big as camel, but you should be able to notice an improvement as well.

@rnc
Copy link
Contributor

rnc commented Jun 5, 2019

I have done some basic testing and I do see improvements as well. Nice! Thanks!

I would prefer to see tests added and I think the docs (for https://release-engineering.github.io/pom-manipulation-ext/guide/dep-manip.html#rest-endpoint ) will also need updating. Once thats done, I'd be happy to merge.

@rnc
Copy link
Contributor

rnc commented Jun 13, 2019

@orpiske Have you had chance to look at the final bits for this as it would be good to this into a release?

@orpiske
Copy link
Contributor Author

orpiske commented Jun 13, 2019

I'm kind swamped, but I will try to send something to you today.

@orpiske
Copy link
Contributor Author

orpiske commented Jun 13, 2019

Added both a test as well as a PR #645 with a small note about the auto-sizing.

@rnc rnc merged commit a282eb8 into release-engineering:master Jun 13, 2019
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.

3 participants