Skip to content

HTTP2 flow control #6727

Closed
Closed

Description

@MSex

My use case is using envoy as a sidecar for a gRPC server streaming fast produced data to a slow client. The default behavior for envoy in this case was to buffer a huge amount of data and so it allocates a lot of memory. To configure flow control so to limit the memory usage it was necessary to set http2_protocol_options.initial_stream_window_size in both the cluster and the http_connection_manager filter.

I have two issues/questions:

1- Why it was necessary to set the value in both places since in this case the stream is only one direction?
2- Since using envoy in a sidecar for microservices is a very common use case, the default value for initial_stream_window_size should be smaller (now it is 256MiB). My sugestion it should be equal the minimum possible value: 65535 bytes.

In any case, thanks for your help.

Activity

  1. added
    question
    on Apr 27, 2019
  2. mattklein123 commented on Apr 27, 2019

    @mattklein123
    Member

    @MSex unfortunately there is a lot of historical baggage around the flow control defaults. @alyssawilk and I would both like to change some of them, but it's a hard thing to do at this point without a lot of thought. For now if you feel like it, please feel free to add more verbiage and warnings to https://www.envoyproxy.io/docs/envoy/latest/faq/configure_flow_control. Much appreciated.

  3. stale commented on May 27, 2019

    @stale

    This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions.

  4. added
    stale
    on May 27, 2019
  5. stale commented on Jun 3, 2019

    @stale

    This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted". Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionstale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions