← Files Meetings (Beta)ARCHIVED FILE
THIRD_PARTY_LICENSES/licenses/tower-0.5.3-c19b7c6f92/SOURCE_NOTICES.txt
1.25 KB · Oct 8, 2026 · 12:02 UTC
Source-file copyright and license notices, preserved verbatim. ===== src/load/peak_ewma.rs (source SHA-256 24a5e76918466916009a981393383835bdf51081199705529e35a3f2c773222e) ===== /// Measures the load of the underlying service using Peak-EWMA load measurement. /// /// [`PeakEwma`] implements [`Load`] with the [`Cost`] metric that estimates the amount of /// pending work to an endpoint. Work is calculated by multiplying the /// exponentially-weighted moving average (EWMA) of response latencies by the number of /// pending requests. The Peak-EWMA algorithm is designed to be especially sensitive to /// worst-case latencies. Over time, the peak latency value decays towards the moving /// average of latencies to the endpoint. /// /// When no latency information has been measured for an endpoint, an arbitrary default /// RTT of 1 second is used to prevent the endpoint from being overloaded before a /// meaningful baseline can be established.. /// /// ## Note /// /// This is derived from [Finagle][finagle], which is distributed under the Apache V2 /// license. Copyright 2017, Twitter Inc. /// /// [finagle]: /// https://github.com/twitter/finagle/blob/9cc08d15216497bb03a1cafda96b7266cfbbcff1/finagle-core/src/main/scala/com/twitter/finagle/loadbalancer/PeakEwma.scala
SHA-256: bdc11b86372a6e7eece5a086d1c73a83b1e285cdb98eacfb7af99d5288eaf9af