summaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/search/dispatch/searchcluster
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2022-03-15 11:26:52 +0100
committerJon Bratseth <bratseth@gmail.com>2022-03-15 11:26:52 +0100
commita0ce45b48fb249aa8225825a57ac051b31dcf839 (patch)
tree602a3badaf662e91ea8d3d11c5b771a0e9020d44 /container-search/src/main/java/com/yahoo/search/dispatch/searchcluster
parentb1015bd850fb94157d8c21077578e45628384e02 (diff)
Improve 'not balanced' info message
Diffstat (limited to 'container-search/src/main/java/com/yahoo/search/dispatch/searchcluster')
-rw-r--r--container-search/src/main/java/com/yahoo/search/dispatch/searchcluster/Group.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/dispatch/searchcluster/Group.java b/container-search/src/main/java/com/yahoo/search/dispatch/searchcluster/Group.java
index e99c1d5ad32..5e12fb550c8 100644
--- a/container-search/src/main/java/com/yahoo/search/dispatch/searchcluster/Group.java
+++ b/container-search/src/main/java/com/yahoo/search/dispatch/searchcluster/Group.java
@@ -17,7 +17,7 @@ import java.util.logging.Logger;
public class Group {
private static final Logger log = Logger.getLogger(Group.class.getName());
- private final static double maxContentSkew = 0.10; // If documents on a node is more than 10% off from the average the group is unbalanced
+ private final static double maxContentSkew = 0.10;
private final static int minDocsPerNodeToRequireLowSkew = 100;
private final int id;
@@ -77,8 +77,9 @@ public class Group {
if (!isBalanced.get() || balanced != isBalanced.get()) {
if (!isSparse())
log.info("Content in " + this + ", with " + numWorkingNodes + "/" + nodes.size() + " working nodes, is " +
- (balanced ? "" : "not ") + "well balanced. Current deviation = " + skew * 100 / activeDocs +
- " %. activeDocs = " + activeDocs + ", skew = " + skew + ", average = " + average);
+ (balanced ? "" : "not ") + "well balanced. Current deviation: " + skew * 100 / activeDocs +
+ "%. Active documents: " + activeDocs + ", skew: " + skew + ", average: " + average +
+ (balanced ? "" : ". Top-k summary fetch optimization is deactivated."));
isBalanced.set(balanced);
}
} else {