[grpc, utils] Size the HTTP/2 flow control windows (#841)
Type of change
- Improvement (improvement to code, performance, etc)
- New feature
- Test update
Description
- Adds
connection.FlowControlConfig(flow-control:initial-window-size,initial-conn-window-size) toClientConfig,MultiClientConfig,serve.ServerConfigandordererdial.Config, and applies it to every gRPC dial and server, including orderer delivery and broadcast throughdeliverorderer.Parametersandordererdial.Parameters.- Defaults the windows to 16 MB per stream and 32 MB per connection through
defaulttags; zero leaves gRPC’s own BDP-based tuning in place.- The load generator picks its adapter by a field each client section needs, not by the section being present.
- Documents the keys, commented out with their defaults, in the configuration samples, and the knob in
docs/performance-tuning.md.Additional details (Optional)
- Adds
BenchmarkSignatureVerifierManagertosignature_verifier_manager_test.go, which drives the verifier manager’s sender over a real stream.- Widens
utils/testhelpers from*testing.Ttotesting.TBso the benchmark can share them.- A test checks that a loadgen config naming no adapter is rejected.
Related issues
- resolves #790
Signed-off-by: Liran Funaro liran.funaro@gmail.com
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
Fabric-X Committer
Setup and Testing
See setup for details on prerequisites and quick start guide.
Background
The lifecycle of a transaction consists of 3 main stages: