airframe icon indicating copy to clipboard operation
airframe copied to clipboard

airframe-control: RateLimiter

Open xerial opened this issue 5 years ago • 2 comments

Reference:

  • https://www.alibabacloud.com/blog/detailed-explanation-of-guava-ratelimiters-throttling-mechanism_594820
  • https://docs.aws.amazon.com/AWSEC2/latest/APIReference/throttling.html
  • https://github.com/google/guava/blob/master/guava/src/com/google/common/util/concurrent/RateLimiter.java

xerial avatar Apr 04 '20 02:04 xerial

Similar to #1078

Sometimes, determining the max retry count is difficult, so instead, maintaining the average traffic rate at most +20% can be easier to configure.

Related: https://linkerd.io/2/features/retries-and-timeouts/#retry-budgets-to-the-rescue

xerial avatar May 17 '20 18:05 xerial

Implementing per-host rate limiter would be a good starting point.

xerial avatar Mar 29 '21 18:03 xerial