This is an automated email from the ASF dual-hosted git repository. ab pushed a commit to branch jira/solr-15300 in repository https://gitbox.apache.org/repos/asf/solr.git
commit b0fa4889c1af0f2cce3113e0750d576a4cdc4fac Author: Andrzej Bialecki <[email protected]> AuthorDate: Wed May 5 14:39:06 2021 +0200 SOLR-15300: Modify (arbitrary) alert levels so that they work better with a small number of replicas. --- solr/core/src/java/org/apache/solr/handler/admin/ClusterStatus.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/solr/core/src/java/org/apache/solr/handler/admin/ClusterStatus.java b/solr/core/src/java/org/apache/solr/handler/admin/ClusterStatus.java index 1eeae07..d75e8ba 100644 --- a/solr/core/src/java/org/apache/solr/handler/admin/ClusterStatus.java +++ b/solr/core/src/java/org/apache/solr/handler/admin/ClusterStatus.java @@ -59,8 +59,10 @@ public class ClusterStatus { /** No leader or most replicas down. */ RED; - public static final float ORANGE_LEVEL = 0.66f; - public static final float RED_LEVEL = 0.33f; + // somewhat higher than 2/3 + public static final float ORANGE_LEVEL = 0.67f; + // somewhat higher than 1/3 + public static final float RED_LEVEL = 0.34f; public static Health calcShardHealth(float fractionReplicasUp, boolean hasLeader) { if (hasLeader) {
