浏览代码

Fix the bug of getting the wrong current flow QPS in ClusterFlowChecker (#972)

master
changxing.yu Eric Zhao 5 年前
父节点
当前提交
17365f3d5f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      sentinel-cluster/sentinel-cluster-server-default/src/main/java/com/alibaba/csp/sentinel/cluster/flow/ClusterFlowChecker.java

+ 1
- 1
sentinel-cluster/sentinel-cluster-server-default/src/main/java/com/alibaba/csp/sentinel/cluster/flow/ClusterFlowChecker.java 查看文件

@@ -64,7 +64,7 @@ final class ClusterFlowChecker {
return new TokenResult(TokenResultStatus.FAIL);
}

double latestQps = metric.getAvg(ClusterFlowEvent.PASS_REQUEST);
double latestQps = metric.getAvg(ClusterFlowEvent.PASS);
double globalThreshold = calcGlobalThreshold(rule) * ClusterServerConfigManager.getExceedCount();
double nextRemaining = globalThreshold - latestQps - acquireCount;



正在加载...
取消
保存