envoy icon indicating copy to clipboard operation
envoy copied to clipboard

Feature: Queue manager for circuit breaker queue

Open lcabancla opened this issue 6 years ago • 5 comments

Currently, circuit breakers enqueue pending requests. A queue manager can be added to manage this queue. For example, algorithms like Adaptive LIFO with CoDel (see links below) have been shown to work well in large systems.

A possible configuration is below.

circuit_breakers:
      thresholds:
        - max_connections: 10
          max_pending_requests: 20
          max_requests: 10
          max_retries: 10
     queue_manager: adaptive_lifo_with_codel
         config:
            queue_size_threshold: 10
            low_timeout: 100
            high_timeout: 500

Links: Adaptive LIFO with Codel ACM talk (video) Summary of talk

lcabancla avatar Jan 08 '20 18:01 lcabancla

cc @tonya11en who I have discussed this with.

mattklein123 avatar Jan 08 '20 20:01 mattklein123

@lcabancla there's been talk here at Lyft on analysis of different queuing disciplines, but it was put on the back-burner because the latencies we're concerned with aren't caused by bufferbloat. I'm personally really interested in this, so if you'll be submitting any PRs or design documents, I'd love to help any way I can.

Have you instrumented your mesh to see how long requests have spent in the pending queues?

tonya11en avatar Jan 08 '20 20:01 tonya11en

@tonya11en No we haven't as our company is still in the process of migrating to Envoy. Let me discuss this with my team and see if it something that we can pick up.

lcabancla avatar Jan 08 '20 21:01 lcabancla

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.

stale[bot] avatar Feb 08 '20 01:02 stale[bot]

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.

stale[bot] avatar Feb 15 '20 01:02 stale[bot]