gRPC max size to unlimited

4,511 views
Skip to first unread message

agup...@slb.com

unread,
May 18, 2017, 5:15:30 PM5/18/17
to Google Cloud Endpoints
Hi,

I am building a service using gRPC backend and deploying it on GKE with ESP and Endpoints. I found in release notes of endpoints that gRPC size can be set to unlimited but I could not find details of documentation on how to do this.


Can you please share that? 

-Abhishek
Schlumberger Software technology center (STIC)


Lizan Zhou

unread,
May 18, 2017, 5:33:00 PM5/18/17
to agup...@slb.com, Google Cloud Endpoints
Hi Abhishek,

We raised the max message size to unlimited in ESP, though the grpc frame length is 32 bit unsigned integer so it is technically 4GB. You don't need to do anything when you deploy ESP, your gRPC server and client might need to be configured to allow larger messages.

For example, in C++ you can use ChannelArguments::SetMaxReceiveMessageSize to configure the gRPC channel.

Best,
Lizan

--
You received this message because you are subscribed to the Google Groups "Google Cloud Endpoints" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endpoints+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-endpoints/f328864f-3725-4aca-89c5-9cad726867ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

agup...@slb.com

unread,
May 18, 2017, 5:39:56 PM5/18/17
to Google Cloud Endpoints, agup...@slb.com
Hi Lizan,

Thank you for the response. 

With the gRPC options, I am able to set the message sizes. It works fine in my dev deployment where gRPC client and server are in same container, but when I deploy the exact same Dockerfile to GKE+ESP, my client keeps getting the below error.

I also tried from the same gRPC client - to local server, it works fine, to ESP+GKe server, I get the error.

{
 "code": 3,
 "message": "Received message larger than max (13500007 vs. 4194304)",
 "details": [
  {
   "stackEntries": [],
   "detail": "internal"
  }
 ]
}

Reply all
Reply to author
Forward
0 new messages