Skip to content

[extension/cgroupruntimeextension] chore: disable GoMaxProcs by default in cgroupruntimeextension#47487

Open
heliapb wants to merge 5 commits intoopen-telemetry:mainfrom
heliapb:chore/rmgomaxprc
Open

[extension/cgroupruntimeextension] chore: disable GoMaxProcs by default in cgroupruntimeextension#47487
heliapb wants to merge 5 commits intoopen-telemetry:mainfrom
heliapb:chore/rmgomaxprc

Conversation

@heliapb
Copy link
Copy Markdown

@heliapb heliapb commented Apr 8, 2026

Description

No issue, based of https://go.dev/blog/container-aware-gomaxprocs

Link to tracking issue

Fixes

Testing

Documentation

@heliapb heliapb requested review from a team and mx-psi as code owners April 8, 2026 22:06
@github-actions github-actions bot added the first-time contributor PRs made by new contributors label Apr 8, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 8, 2026

Welcome, contributor! Thank you for your contribution to opentelemetry-collector-contrib.

Important reminders:

A maintainer will review your pull request soon. Thank you for helping make OpenTelemetry better!

Copy link
Copy Markdown
Contributor

@rogercoll rogercoll left a comment

Choose a reason for hiding this comment

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

I don't think we should remove as it might still be helpful in ECS environments, see https://github.com/rdforte/gomaxecs?tab=readme-ov-file#go-125

An alternative would be making the gomaxprocs opt-in, wdyt?

@heliapb
Copy link
Copy Markdown
Author

heliapb commented Apr 9, 2026

I don't think we should remove as it might still be helpful in ECS environments, see https://github.com/rdforte/gomaxecs?tab=readme-ov-file#go-125

An alternative would be making the gomaxprocs opt-in, wdyt?

Thanks for the feedback, sound good. Going to change to draft and make the changes.

@heliapb heliapb marked this pull request as draft April 9, 2026 06:05
@atoulme
Copy link
Copy Markdown
Contributor

atoulme commented Apr 9, 2026

Please add a changelog.

@heliapb heliapb force-pushed the chore/rmgomaxprc branch from 2f9d320 to 744044a Compare April 9, 2026 08:57
Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>
@heliapb heliapb force-pushed the chore/rmgomaxprc branch from 744044a to 334cf69 Compare April 9, 2026 08:58
@heliapb heliapb changed the title [extension/cgroupruntimeextension] chore: rm deprecate gomaxprocs since go 1.25 [extension/cgroupruntimeextension] chore: disable GoMaxProcs by default in cgroupruntimeextension Apr 9, 2026
@heliapb heliapb marked this pull request as ready for review April 9, 2026 08:58
@heliapb
Copy link
Copy Markdown
Author

heliapb commented Apr 9, 2026

Hi @rogercoll changed to disable by default, so to opt-in. Let me know if anything else needs fix.

@paulojmdias
Copy link
Copy Markdown
Member

/workflow-approve

Comment thread .chloggen/47487-chore-rmgomaxprc.yaml Outdated
Linux container environments. Users on AWS ECS should explicitly set
`gomaxprocs.enabled: true` as Go 1.25 does not read ECS task metadata
for CPU limits. See https://go.dev/blog/container-aware-gomaxprocs.
issues: [0]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
issues: [0]
issues: [47487]

Comment thread .chloggen/47487-chore-rmgomaxprc.yaml Outdated
@@ -0,0 +1,10 @@
change_type: enhancement
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
change_type: enhancement
change_type: breaking

I'm not sure if we should treat this as a breaking change.

@rogercoll @atoulme WDYT?

@mx-psi
Copy link
Copy Markdown
Member

mx-psi commented Apr 9, 2026

What's the benefit of this change?

heliapb and others added 2 commits April 10, 2026 11:56
Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>
@heliapb
Copy link
Copy Markdown
Author

heliapb commented Apr 10, 2026

What's the benefit of this change?

Hi @mx-psi well I think might a bit redundant to have both automaxprocs and the Go runtime set at the same time for anyone that uses go 1.25 in k8s or other for of container app, and thus with this change becomes an opt in makes more sense in my point of view. And as @rogercoll pointed, it might still be helpful in ECS environments, see https://github.com/rdforte/gomaxecs?tab=readme-ov-file#go-125. Let me know if there's anything that I'm missing. Thankls

@jmacd
Copy link
Copy Markdown
Contributor

jmacd commented Apr 14, 2026

@heliapb It would help to file an issue explaining concretely the problem described here #47487 (comment) maybe with a little more detail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants