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

Add discardResponseMessage option for gRPC stream #3877

Merged

Conversation

lzakharov
Copy link
Contributor

What?

Adds a new gRPC stream option discardResponseMessage. See #3820.

Why?

Parsing heavy responses can result in high CPU and memory usage.

Checklist

  • I have performed a self-review of my code.
  • I have added tests for my changes.
  • I have run linter locally (make lint) and all checks pass.
  • I have run tests locally (make tests) and all tests pass.
  • I have commented on my code, particularly in hard-to-understand areas.

Related PR(s)/Issue(s)

#3820

@lzakharov lzakharov force-pushed the grpc-clien-stream-discard-response-message branch from 64c38bd to 63d6682 Compare August 21, 2024 21:00
@lzakharov lzakharov marked this pull request as ready for review August 21, 2024 21:16
@lzakharov lzakharov requested a review from a team as a code owner August 21, 2024 21:16
@lzakharov lzakharov requested review from mstoykov and olegbespalov and removed request for a team August 21, 2024 21:16
@olegbespalov olegbespalov added documentation-needed A PR which will need a separate PR for documentation area: grpc labels Aug 28, 2024
@olegbespalov olegbespalov added this to the v0.54.0 milestone Aug 28, 2024
Copy link
Contributor

@olegbespalov olegbespalov left a comment

Choose a reason for hiding this comment

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

@lzakharov looks good to me! Thanks for the contribution! 🙇

We also have to update the k6-docs to reflect the actual state of the options, but k6-core team could take care of it ☺️

Copy link
Contributor

@mstoykov mstoykov left a comment

Choose a reason for hiding this comment

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

LGTM!

@mstoykov mstoykov merged commit 7c1b1af into grafana:master Aug 29, 2024
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: grpc documentation-needed A PR which will need a separate PR for documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants