Feature: Queue manager for circuit breaker queue
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
cc @tonya11en who I have discussed this with.
@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 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.
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.
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.