Skip to content

Sampling more streams to measure error rate correctly #5195

Closed

Description

@masaori335

"Closing a H2 connection with high stream error rate" is added by 693b3cb.
The close event could be triggered when the first stream got error regardless value of proxy.config.http2.stream_error_rate_threshold. Because the error rate bacomes 1. We should wait for more streams to measure stream error rate correctly.

} else if (this->connection_state.get_stream_error_rate() >
Http2::stream_error_rate_threshold) { // For a case many stream errors happened

double
get_stream_error_rate() const
{
int total = get_stream_requests();
if (total > 0) {
return (double)stream_error_count / (double)total;
} else {
return 0;
}
}

Activity

  1. added this to the 9.0.0 milestone on Mar 22, 2019
  2. maskit commented on Mar 28, 2019

    @maskit
    Member

    We should wait for more streams to measure stream error rate correctly.

    Why? If a client sent 1 request and it failed, the error rate is obviously 100%.

    A error rate won't be less than 10% until a client makes 10 requests if a stream error happened on the first stream, and it would be 20 if the threshold was 5%.

    Do we want more requests from a client that cannot do things correctly on the first stream?

  3. modified the milestones: 9.0.0, 9.1.0 on Jul 10, 2019
  4. removed their assignment
    on Mar 17, 2020
  5. removed this from the 9.1.0 milestone on Mar 17, 2020
  6. masaori335 commented on Jun 10, 2020

    @masaori335
    ContributorAuthor

    Fixed by #6525

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