camel-k icon indicating copy to clipboard operation
camel-k copied to clipboard

Configure Maven builds based on CPU quota

Open astefanutti opened this issue 3 years ago • 1 comments

The CPU resources allocated to the operator can significantly impact the integration build time.

Following #2837, which makes the operator aware of the CPU quota set on the operator container, Maven should be configured according to it.

For instance, the number of threads used to download dependencies in parallel, which is a major contributor to the build time, should be defaulted based on the CPU quota, by setting the maven.artifact.threads option here: https://github.com/apache/camel-k/blob/87d9d7a20de55eb290fa194d3d15229a3dec9843/pkg/util/maven/maven_command.go#L77

astefanutti avatar Jun 07 '22 12:06 astefanutti

Please assign it to me @astefanutti

whtssub avatar Jun 07 '22 12:06 whtssub

This issue has been automatically marked as stale due to 90 days of inactivity. It will be closed if no further activity occurs within 15 days. If you think that’s incorrect or the issue should never stale, please simply write any comment. Thanks for your contributions!

github-actions[bot] avatar Sep 06 '22 00:09 github-actions[bot]

Can this be closed?

squakez avatar Sep 06 '22 08:09 squakez

Yes, it's been addressed by #3344.

astefanutti avatar Sep 07 '22 07:09 astefanutti