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

Paramatize request/response payload size #20

Merged
merged 3 commits into from
Jan 26, 2024

Conversation

stanley-cheung
Copy link
Contributor

@stanley-cheung stanley-cheung commented Jan 13, 2024

Currently, the xds interop client is sending an empty payload for the UnaryCall rpc. Since testing CSM Observability will need a non-trivial payload (e.g. to verify the metrics about the number of bytes being sent), this PR will try to add 2 parameters request_payload_size and response_payload_size to the client image to control the size of the payload to be sent. Each language will need to implement this parameter in their respective client image. The one for c++ is here.

Note that we only need to set these 2 parameters (both request and resposne payload size) on the client deployment because the client will in turn tell the server how much to send back.

The good 'ol interop client already has these: https://github.com/grpc/grpc/blob/master/test/cpp/interop/interop_client.cc#L249-L251

@stanley-cheung stanley-cheung force-pushed the paramatize_payload_size branch from 7294edf to cd4186a Compare January 20, 2024 01:14
@sergiitk sergiitk force-pushed the paramatize_payload_size branch from cd4186a to f745916 Compare January 26, 2024 00:26
Copy link
Member

@sergiitk sergiitk left a comment

Choose a reason for hiding this comment

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

All good - had a comment about the constants, but #23 takes care of it

@sergiitk sergiitk force-pushed the paramatize_payload_size branch from f745916 to 6bdfc40 Compare January 26, 2024 01:54
@sergiitk sergiitk enabled auto-merge (squash) January 26, 2024 02:13
@sergiitk sergiitk merged commit 37f27d7 into grpc:main Jan 26, 2024
6 checks passed
@stanley-cheung stanley-cheung deleted the paramatize_payload_size branch January 26, 2024 19:18
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.

2 participants