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

UDP-receiver - improve high-scale performance by skipping usage of decoder when nop encoding is defined #28901

Merged

Conversation

hovavza
Copy link
Contributor

@hovavza hovavza commented Nov 6, 2023

Description: Enhancement - In udp receiver (stanza operator), change handleMessage not to call decode method in case nop encoding is defined, as it's unnecessary.
This improves performance in high scale scenarios by reducing memory allocations.

Link to tracking Issue: <28899

Testing: Ran existing unitests.
Ran ran stress tests (sending 250k udp packets per second) - memory allocation reduced by 10-20%.

Documentation: None

@hovavza hovavza requested a review from a team November 6, 2023 11:29
@hovavza hovavza changed the title Feature/hzahav/udp receiver nop decode UDP-receiver - improve high-scale performance by skipping usage of decoder when nop encoding is defined Nov 6, 2023
@hovavza
Copy link
Contributor Author

hovavza commented Nov 14, 2023

@MovieStoreGuy @djaglowski what do you think about this PR?

@djaglowski djaglowski added the ready to merge Code review completed; ready to merge by maintainers label Nov 14, 2023
@djaglowski djaglowski merged commit 920f454 into open-telemetry:main Nov 15, 2023
88 checks passed
@github-actions github-actions bot added this to the next release milestone Nov 15, 2023
RoryCrispin pushed a commit to ClickHouse/opentelemetry-collector-contrib that referenced this pull request Nov 24, 2023
…coder when nop encoding is defined (open-telemetry#28901)

**Description:** Enhancement - In udp receiver (stanza operator), change
handleMessage not to call decode method in case nop encoding is defined,
as it's unnecessary.
This improves performance in high scale scenarios by reducing memory
allocations.

**Link to tracking Issue:** <28899

**Testing:** Ran existing unitests.
Ran ran stress tests (sending 250k udp packets per second) - memory
allocation reduced by 10-20%.

**Documentation:** None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg/stanza ready to merge Code review completed; ready to merge by maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants