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

improvement: allow for more concurrency when using cloud builder #5955

Merged
merged 2 commits into from
Apr 18, 2024

Conversation

stefreak
Copy link
Member

@stefreak stefreak commented Apr 18, 2024

What this PR does / why we need it:

  • Allow more fine-grained status and execute task node concurrency control in the
    plugins using setters on the action.
  • Assign concurrency group by node execution type (status, execute), action type
    (exec, container) and the concurrency setting (assuming that actions with a separate
    max concurrency setting are a different workload class).
  • Fine-tune the build concurrency settings in the container and kubernetes plugins in the
    validate and getStatus handlers for every action.
  • This speeds up garden build -f in an internal project from ~40 seconds to ~14 seconds.

@stefreak stefreak requested review from vvagaytsev and twelvemo and removed request for vvagaytsev April 18, 2024 13:34
- Allow more fine-grained status and execute task node concurrency control in the
plugins using setters on the action.
- Assign concurrency group by node execution type (status, execute), action type
(exec, container) and the concurrency setting (assuming that actions with a separate
max concurrency setting are a different workload class).
- Fine-tune the build concurrency settings in the container and kubernetes plugins in the
`validate` and `getStatus` handlers for every action.
- This speeds up `garden build -f` in an internal project from ~40 seconds to ~14 seconds.
core/src/graph/nodes.ts Outdated Show resolved Hide resolved
Comment on lines +35 to +36
override defaultStatusConcurrencyLimit = 10
override defaultExecuteConcurrencyLimit = 10
Copy link
Collaborator

Choose a reason for hiding this comment

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

It looks like these overrides are not necessary because the same limits are already defined in the ExecuteActionTask super class.

Copy link
Collaborator

@vvagaytsev vvagaytsev left a comment

Choose a reason for hiding this comment

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

Looks great! 💯

@stefreak stefreak added this pull request to the merge queue Apr 18, 2024
Merged via the queue into main with commit 4717da8 Apr 18, 2024
40 checks passed
@stefreak stefreak deleted the cloudbuilder-concurrency branch April 18, 2024 14:53
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.

None yet

2 participants