Pārlūkot izejas kodu

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

master
changxing.yu Eric Zhao pirms 5 gadiem
vecāks
revīzija
17365f3d5f
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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 Parādīt failu

@@ -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;



Notiek ielāde…
Atcelt
Saglabāt