Skip to content

helm: Allow disabling --oci-max-parallelism num-cpu - #7596

Merged
gerhard merged 1 commit into
dagger:mainfrom
gerhard:allow-disabling-oxi-max-paralellism-in-helm-chart
Jun 10, 2024
Merged

gerhard merged 1 commit into
dagger:mainfrom
gerhard:allow-disabling-oxi-max-paralellism-in-helm-chart

Conversation

@gerhard

@gerhard gerhard commented Jun 10, 2024

Copy link
Copy Markdown
Contributor

While we are keeping this default so that we don't break existing users, setting this value is something that we want to move away from.

The problem is that this setting limits how many operations can run in parallel. It is still possible for a single operation to max out all available cores. It is also known for a value of 2 to cause deadlocks, i.e. #6894

For now, we just allow this to be disabled with either --set engine.args='' or by explicitly setting this value to an empty list.

This started as #7395 which turned out to be too big of a change. We since scaled back the initial ambition & are taking a smaller step towards eventually phasing this out.

FWIW, all the Dagger Engines that we run inside the Dagger infra do not use the --oci-max-parallelism option.

This also removes the option from tekton-dagger-task docs example.

While we are keeping this default so that we don't break existing users,
setting this value is something that we want to move away from.

The problem is that this setting limits how many operations can run in
parallel. It is still possible for a single operation to max out all
available cores. It is also known for a value of `2` to cause deadlocks,
i.e. #6894

For now, we just allow this to be disabled with either `--set
engine.args=''` or by explicitly setting this value to an empty list.

This started as #7395 which turned
out to be too big of a change. We since scaled back the initial ambition
& are taking a smaller step towards eventually phasing this out.

FWIW, all the Dagger Engines that we run inside the Dagger infra do not
use the `--oci-max-parallelism` option.

This also removes the option from tekton-dagger-task docs example.

Signed-off-by: Gerhard Lazu <[email protected]>
@gerhard gerhard changed the title helm: Allow disabling --oci-max-parallelism num-cpu helm: Allow disabling --oci-max-parallelism num-cpu Jun 10, 2024
Comment thread helm/dagger/values.yaml
Comment on lines +20 to +22
args:
- "--oci-max-parallelism"
- "num-cpu"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Only issue, when should we change the default?

Would we want to do a helm minor version bump instead of a patch? IMO, I think that's reasonable to do at any point, as long as we call it out in our release notes.

@gerhard gerhard Jun 10, 2024 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think that we should do it when we release v0.12.0. I also think that we should:

  • align the chart version with the Dagger version
  • add changie & release notes for the chart too

WDYT?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yes 🎉

Sounds perfect, let's do that!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could you create a tracking issue with that for the v0.12 milestone? Just so we definitely make sure to get it in.

@gerhard

gerhard commented Jun 10, 2024 •

Copy link
Copy Markdown
Contributor Author

This failure seems legit to me:
image

The Rust SDK is known to be CPU hungry. Checking if that is the case...

@jedevc

jedevc commented Jun 10, 2024

Copy link
Copy Markdown
Contributor

@gerhard if you look at the logs, it indicates that the tests are actually complete: https://github.com/dagger/dagger/actions/runs/9449394865/job/26025540600?pr=7596#step:6:1331

But it doesn't exit. I think discussing with @vito, we think it may be a telemetry draining issue.

@matipan matipan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Definitely a good idea to to allow disabling. We already suggest that for many customers running dagger in prod. I agree with Justin, we should remove it as the default in the next release! 🚀

@gerhard
gerhard merged commit 922eb2c into dagger:main Jun 10, 2024
@gerhard
gerhard deleted the allow-disabling-oxi-max-paralellism-in-helm-chart branch June 10, 2024 16:24
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