Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultK = 2.0
Functions ¶
func RejectionProbability ¶
RejectionProbability 客户端节流算法 requests 请求数量 应用层代码发出的所有请求的数量总计(指运行于自适应节流系统之上的应用代码 accepts 请求接受数量 后端任务接受的请求数量 k 倍值 降低倍值会使自适应节流算法更加激进 举例来说,假设将客户端请求的上限从request=2 * accepts调整为request=1.1* accepts,那么就意味着每10个后端请求之中只有1个会被拒绝
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.