• Felföldi Zsolt's avatar
    les/utils: UDP rate limiter (#21930) · 7a800f98
    Felföldi Zsolt authored
    * les/utils: Limiter
    
    * les/utils: dropped prior weight vs variable cost logic, using fixed weights
    
    * les/utils: always create node selector in addressGroup
    
    * les/utils: renamed request weight to request cost
    
    * les/utils: simplified and improved the DoS penalty mechanism
    
    * les/utils: minor fixes
    
    * les/utils: made selection weight calculation nicer
    
    * les/utils: fixed linter warning
    
    * les/utils: more precise and reliable probabilistic test
    
    * les/utils: fixed linter warning
    7a800f98
limiter.go 11.5 KB