Skip to content

Support for max_requests_connection in downstream connections #14531

Closed

Description

@CAFxX

As discussed in #13388 (comment) it would be ideal to have a way to configure envoy to serve up to a certain number of requests on each downstream HTTP connection before signaling to the client (via Connection: close) that the connection should be closed.

nginx support this with keepalive_requests:

Sets the maximum number of requests that can be served through one keep-alive connection. After the maximum number of requests are made, the connection is closed.

The main use case for us is forcing load balancers to periodically reopen requests to speed up the convergence to a uniform load distribution on the backends.

Activity

  1. mk46 commented on Jan 27, 2021

    @mk46
    Contributor

    I would like to take up this issue. If I am correct, need to add max_requests_connection in the *protocol.proto file for the config.

  2. ggreenway commented on Jan 28, 2021

    @ggreenway
    Member

    There's already an option for this on the upstream side on the cluster config. So you can either add the downstream option on the HCM config, or we could consider deprecating the existing cluster option and adding the new one to core.v3.HttpProtocolOptions.

  3. mk46 commented on Feb 4, 2021

    @mk46
    Contributor

    @ggreenway Thanks for the suggestion to move on. Could you please guide me to implement further? See the linked PR.

  4. github-actions commented on Mar 6, 2021

    @github-actions

    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 "no stalebot" or other activity occurs. Thank you for your contributions.

  5. added
    stale
    on Mar 6, 2021
  6. github-actions commented on Mar 13, 2021

    @github-actions

    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" or "no stalebot". Thank you for your contributions.

  7. CAFxX commented on Mar 13, 2021

    @CAFxX
    Author

    Can we reopen? This is still relevant.

  8. added
    help wanted
    and removed
    stale
    on Mar 14, 2021
  9. mk46 commented on Jun 29, 2021

    @mk46
    Contributor

    /assign

  10. repokitteh-read-only commented on Jun 29, 2021

    @repokitteh-read-only

    mk46 is not allowed to assign users.

    🐱

    Caused by: a #14531 (comment) was created by @mk46.

    see: more, trace.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions