Comments (4)
Line 18 in 56c0fb5
from aegis.
type Bucket struct {
Points float64
Count int64
next *Bucket
}
我是说是否可以定位这样,因为bbr的allow里都是调用add方法,bucket本身也只有在Count==0的时候调用append一次,所以Points本身的长度不会超过1,这样的话为什么不直接用Points float64呢?
from aegis.
Points
需要是slice类型,可以存储单个窗口内的多个指标值,方便后续对其进行最大值或最小值或平均值等转换。
from aegis.
方便扩展
from aegis.
Related Issues (11)
- [BUG] Invalid number of arguments?
- lastAppendTime设置可能会延迟 HOT 1
- Kata 容器中获取的CPU Limit 值错误 HOT 4
- bbr限流实现 maxInFlight 方法可能有误 HOT 5
- minRT in bbr may be wrong HOT 1
- Limiter 接口 Allow() 方法是否考虑传入 ctx 和 req HOT 4
- 直接用CPU的值做判断
- pointer arithmetic result points to invalid allocation in the murmur
- bbr 限流算法部分为什么没有排空逻辑? HOT 1
- breaker&limiter api definition
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aegis.