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

[service] Remove getBallastSize from service #10696

Merged

Conversation

TylerHelmuth
Copy link
Member

Description

This PR removes all ballast logic from service. This effectively deprecates the ballastextension as including the extension with this service would do nothing.

Related to #10671

Link to tracking issue

Closes #8342

Testing

Unit tests.

@TylerHelmuth TylerHelmuth requested a review from a team as a code owner July 22, 2024 17:44
Copy link

codecov bot commented Jul 22, 2024

Codecov Report

Attention: Patch coverage is 33.33333% with 2 lines in your changes missing coverage. Please review.

Project coverage is 92.24%. Comparing base (9ef6356) to head (7877e9d).
Report is 7 commits behind head on main.

Files Patch % Lines
internal/memorylimiter/memorylimiter.go 0.00% 1 Missing ⚠️
service/service.go 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10696      +/-   ##
==========================================
- Coverage   92.39%   92.24%   -0.15%     
==========================================
  Files         403      403              
  Lines       18744    18718      -26     
==========================================
- Hits        17318    17267      -51     
- Misses       1066     1096      +30     
+ Partials      360      355       -5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@mx-psi mx-psi left a comment

Choose a reason for hiding this comment

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

On #8342 (comment) we discussed adding a new metric with the ballast size to help users migrate. I am fine not doing this given the ballast extension has been deprecated for a long time, but just bringing it up again in case we want to do that

@TylerHelmuth
Copy link
Member Author

TylerHelmuth commented Jul 23, 2024

I'd say since the helm chart has not been using the extension for six months, the value of process_runtime_heap_alloc_bytes has been reported without ballast size for quite some time, so removing this feature without any additional feature gates is ok.

@@ -168,16 +159,6 @@ func getMemUsageChecker(cfg *Config, logger *zap.Logger) (*memUsageChecker, erro
func (ml *MemoryLimiter) readMemStats() *runtime.MemStats {
ms := &runtime.MemStats{}
ml.readMemStatsFn(ms)
// If proper configured ms.Alloc should be at least ml.ballastSize but since
// a misconfiguration is possible check for that here.
if ms.Alloc >= ml.ballastSize {
Copy link
Member

Choose a reason for hiding this comment

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

Can we add a separate changelog entry for this change?

Copy link
Member Author

Choose a reason for hiding this comment

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

added one for each memory limiter

@codeboten codeboten merged commit 4e44e32 into open-telemetry:main Jul 23, 2024
49 of 50 checks passed
@github-actions github-actions bot added this to the next release milestone Jul 23, 2024
@TylerHelmuth TylerHelmuth deleted the service-remove-ballast-deps branch July 23, 2024 22:08
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.

Change process_runtime_heap_alloc_bytes metric to include memory ballast size
3 participants