You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sh...@apache.org on 2017/03/30 11:40:00 UTC

[29/31] lucene-solr:feature/autoscaling: SOLR-10352: Fixing available entropy warning limit to 300

SOLR-10352: Fixing available entropy warning limit to 300


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/91da9af9
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/91da9af9
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/91da9af9

Branch: refs/heads/feature/autoscaling
Commit: 91da9af988a682b6c6a50668db7987fe76280c15
Parents: 1d8193c
Author: Ishan Chattopadhyaya <is...@apache.org>
Authored: Wed Mar 29 19:22:02 2017 +0530
Committer: Shalin Shekhar Mangar <sh...@apache.org>
Committed: Thu Mar 30 17:09:07 2017 +0530

----------------------------------------------------------------------
 solr/bin/solr | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/91da9af9/solr/bin/solr
----------------------------------------------------------------------
diff --git a/solr/bin/solr b/solr/bin/solr
index 27ec054..903309b 100755
--- a/solr/bin/solr
+++ b/solr/bin/solr
@@ -1771,7 +1771,7 @@ function launch_solr() {
 	1>"$SOLR_LOGS_DIR/solr-$SOLR_PORT-console.log" 2>&1 & echo $! > "$SOLR_PID_DIR/solr-$SOLR_PORT.pid"
 
     # check if /proc/sys/kernel/random/entropy_avail exists then check output of cat /proc/sys/kernel/random/entropy_avail to see if less than 300
-    if [[ -f /proc/sys/kernel/random/entropy_avail ]] && (( `cat /proc/sys/kernel/random/entropy_avail` < 30000)); then
+    if [[ -f /proc/sys/kernel/random/entropy_avail ]] && (( `cat /proc/sys/kernel/random/entropy_avail` < 300)); then
 	echo "Warning: Available entropy is low. As a result, use of the UUIDField, SSL, or any other features that require"
 	echo "RNG might not work properly. To check for the amount of available entropy, use 'cat /proc/sys/kernel/random/entropy_avail'."
 	echo ""