diff --git a/sentinel-cluster/sentinel-cluster-common-default/src/main/java/com/alibaba/csp/sentinel/cluster/ClusterErrorMessages.java b/sentinel-cluster/sentinel-cluster-common-default/src/main/java/com/alibaba/csp/sentinel/cluster/ClusterErrorMessages.java
index 3e6ad416..6b4020a1 100644
--- a/sentinel-cluster/sentinel-cluster-common-default/src/main/java/com/alibaba/csp/sentinel/cluster/ClusterErrorMessages.java
+++ b/sentinel-cluster/sentinel-cluster-common-default/src/main/java/com/alibaba/csp/sentinel/cluster/ClusterErrorMessages.java
@@ -25,7 +25,7 @@ public final class ClusterErrorMessages {
public static final String UNEXPECTED_STATUS = "unexpected status";
public static final String TOO_MANY_REQUESTS = "too many requests (client side)";
public static final String REQUEST_TIME_OUT = "request time out";
- public static final String CLIENT_NOT_READY = "client not ready (not running or initializing)";
+ public static final String CLIENT_NOT_READY = "client not ready";
public static final String NO_RULES_IN_SERVER = "no rules in token server";
private ClusterErrorMessages() {}
diff --git a/sentinel-cluster/sentinel-cluster-server-default/src/main/java/com/alibaba/csp/sentinel/cluster/flow/rule/ClusterFlowRuleManager.java b/sentinel-cluster/sentinel-cluster-server-default/src/main/java/com/alibaba/csp/sentinel/cluster/flow/rule/ClusterFlowRuleManager.java
index 13bee56a..85464bb4 100644
--- a/sentinel-cluster/sentinel-cluster-server-default/src/main/java/com/alibaba/csp/sentinel/cluster/flow/rule/ClusterFlowRuleManager.java
+++ b/sentinel-cluster/sentinel-cluster-server-default/src/main/java/com/alibaba/csp/sentinel/cluster/flow/rule/ClusterFlowRuleManager.java
@@ -104,6 +104,7 @@ public final class ClusterFlowRuleManager {
}
public static void setPropertySupplier(Function
* Requests arriving at the pulse may drag down long idle systems even though it * has a much larger handling capability in stable period. It usually happens in - * scenarios that require extra time for initialization, e.g. DB - * establishes a connection; connects to a remote service, and so on. - * - * That’s why we need “warm up”. - * - * Sentinel's "warm-up" implementation is based on the guava-based algorithm. - * However, Guava’s implementation focus on adjusting the request interval, in - * other words, a Leaky bucket. Sentinel pays more attention to controlling the - * count of incoming requests per second without calculating its interval, it is - * more like a “Token bucket.” + * scenarios that require extra time for initialization, e.g. DB establishes a connection, + * connects to a remote service, and so on. That’s why we need “warm up”. + *
* + *+ * Sentinel's "warm-up" implementation is based on the Guava's algorithm. + * However, Guava’s implementation focuses on adjusting the request interval, + * which is similar to leaky bucket. Sentinel pays more attention to + * controlling the count of incoming requests per second without calculating its interval, + * which resembles token bucket algorithm. + *
* + ** The remaining tokens in the bucket is used to measure the system utility. * Suppose a system can handle b requests per second. Every second b tokens will * be added into the bucket until the bucket is full. And when system processes * a request, it takes a token from the bucket. The more tokens left in the * bucket, the lower the utilization of the system; when the token in the token * bucket is above a certain threshold, we call it in a "saturation" state. + *
* + ** Base on Guava’s theory, there is a linear equation we can write this in the * form y = m * x + b where y (a.k.a y(x)), or qps(q)), is our expected QPS * given a saturated period (e.g. 3 minutes in), m is the rate of change from * our cold (minimum) rate to our stable (maximum) rate, x (or q) is the * occupied token. + *
* * @author jialiang.linjl */ diff --git a/sentinel-core/src/main/java/com/alibaba/csp/sentinel/slots/logger/LogSlot.java b/sentinel-core/src/main/java/com/alibaba/csp/sentinel/slots/logger/LogSlot.java index b43cd32c..802690a9 100755 --- a/sentinel-core/src/main/java/com/alibaba/csp/sentinel/slots/logger/LogSlot.java +++ b/sentinel-core/src/main/java/com/alibaba/csp/sentinel/slots/logger/LogSlot.java @@ -38,7 +38,7 @@ public class LogSlot extends AbstractLinkedProcessorSlot