-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Size limit on gRPC-JSON transcoder with google.api.HttpBody as output? #6441
Comments
@npuichigo Did you confirm the error wasn't from upstream gRPC server? The default gRPC message size limit is 4MB. |
I used a grpc client to test my server and it's just okay for messages with large size. So I think maybe it's related to envoy. |
@lizan By the way, I have already set the maximum grpc message size to kint32max. |
Do you have a sample setup for this? it might be due to envoy flow control
too so I’d like to verify.
…On Tue, Apr 2, 2019 at 1:39 AM Yuchao Zhang ***@***.***> wrote:
@lizan <https://github.com/lizan> By the way, I have already set the
maximum grpc message size to kint32max.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6441 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA-A7zrFDnLOQOExGsT7yt2lTmc74P4Mks5vcjY0gaJpZM4cUJQM>
.
|
@lizan Hi, I have uploaded a sample to reproduce my problem. Here is the repository (https://github.com/npuichigo/grpc_with_envoy), and you can test it with the provided dockerfiles. |
I'm observing something that looks similar and might be related: When the resulting response body (after transcoding to JSON) is larger than 1MB, then I get the exact same behavior as @npuichigo :
Here's an excerpt of the logs with a resulting (good) JSON response that's smaller than 1MB:
Here's an excerpt of the logs with a resulting (bad) JSON response that's slightly larger than 1MB:
Going directly to the gRPC service or proxying with Envoy over HTTP2 works just fine. This is specifically failing with the grpc_json_transcoder. |
@alexandrecp-b Thanks for the trace log, it is very helpful. I think it might be a bug, which specific version of Envoy are you running? v1.10.0? |
@lizan : Sorry about my late reply, I missed the notification. IIRC this particular trace came from v1.10.0. In all cases, I reproduced the exact same behavior on v1.8.0, v1.9.0 and v1.10.0 |
@alexandrecp-b Can you try to adjust your cluster's |
@lizan That did the trick! Thanks a lot! |
@npuichigo closing this as answered, feel free to re-open if you still have the issue. |
@lizan Wow, it's cool. Thanks. |
Hi, I'm trying to increase the limit on envoy 1.10, and it doesn't seem to have any effect. Here's what I have (the jinja templates get expanded to reasonable values): static_resources:
clusters:
Is there an example on how to do this? |
Hi, I have been using gRPC-JSON transcoder with google.api.HttpBody to send media resources like mp3 and so on.
Everything is okay until the body size of HttpBody grows to more than 1MB, and the response header has Internal Server Error in Grpc-Message field.
Here is my configuration:
So is there any option to configure the size limit of the transcoded message?
The text was updated successfully, but these errors were encountered: