SetHttp2Windows plug-in
SetHttp2Windows is a plug-in that optimizes memory usage. The HTTP/2 decoder of a sidecar has two parameters: initial_stream_window_size and initial_connection_window_size. These parameters correspond to the stream-level buffered byte limit and the connection-level buffered byte limit, respectively, in the HTTP/2 encoding and decoding buffer of the sidecar. By default, both parameters are set to 256 MB. As a result, when a service cannot process data fast enough, data accumulates in sidecar memory and memory usage increases. Enable the SetHttp2Windows plug-in and set initial_stream_window_size and initial_connection_window_size to smaller, reasonable values. This significantly reduces the growth in sidecar memory usage that data accumulation causes for HTTP/2 or gRPC requests. After you enable the plug-in, restart the pods within the effective scope for the optimization to take effect.
Configuration fields
Name | Data type | Requirement | Default value | Description |
patch_context | string | Optional | ANY | Specifies the scenario in which the plug-in takes effect. Set this parameter based on the specific effective scope of the plug-in. Valid values:
The default value is ANY. |
port_number | string | Required | - | Specifies the port on which the plug-in takes effect.
|
initial_connection_window_size | string | Required | - | The initial connection-level window size. Recommended value: |
initial_stream_window_size | string | Required | - | The initial stream-level window size. Recommended value: |