[grpc-c++] How to change HTTP/2 default window size?

865 views
Skip to first unread message

yihao yang

unread,
Oct 13, 2017, 4:09:17 PM10/13/17
to grpc.io
Hi, all

I wonder if the window size will affect the throughput of unary RPCs.
And how to configure the window size in GRPC?

Thanks,
Yihao

yihao yang

unread,
Nov 6, 2017, 9:17:10 PM11/6/17
to grpc.io
Could any one help?

在 2017年10月13日星期五 UTC-7下午1:09:17,yihao yang写道:

Noah Eisen

unread,
Nov 6, 2017, 9:23:02 PM11/6/17
to yihao yang, grpc.io
Hi,

Flow control is very intrinsic to all http2 behavior, so it very well could have throughput implications. gRPC's transport layer does a lot of automatic tuning of flow control values based on BDP estimate. However, these numbers take time to settle, so if you are benchmarking, ensure you have a sufficient warm up period before starting measurements.

If you do want to make manual changes, you can tune the initial window size by setting the channel arg GRPC_ARG_HTTP2_STREAM_LOOKAHEAD_BYTES, which is found here.

Hope this helps,
Noah



--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscribe@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/2ecf634b-9bb5-4dd0-b2c5-f35e6e577109%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages