You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ol...@apache.org on 2017/09/18 10:18:49 UTC

[3/3] ambari git commit: AMBARI-21975. Stack Advisor can reset the number of shards (Log Search) during adding a new service (BP install) (oleewere)

AMBARI-21975. Stack Advisor can reset the number of shards (Log Search) during adding a new service (BP install) (oleewere)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/7e61e3a9
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/7e61e3a9
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/7e61e3a9

Branch: refs/heads/trunk
Commit: 7e61e3a90f7990db8e166fab3d1a336a5ff5e8cc
Parents: 6cbb3a8
Author: Oliver Szabo <ol...@gmail.com>
Authored: Sun Sep 17 15:59:07 2017 +0200
Committer: Oliver Szabo <ol...@gmail.com>
Committed: Mon Sep 18 12:13:46 2017 +0200

----------------------------------------------------------------------
 .../resources/common-services/LOGSEARCH/0.5.0/service_advisor.py   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/7e61e3a9/ambari-server/src/main/resources/common-services/LOGSEARCH/0.5.0/service_advisor.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/LOGSEARCH/0.5.0/service_advisor.py b/ambari-server/src/main/resources/common-services/LOGSEARCH/0.5.0/service_advisor.py
index 6b29dbc..406f844 100644
--- a/ambari-server/src/main/resources/common-services/LOGSEARCH/0.5.0/service_advisor.py
+++ b/ambari-server/src/main/resources/common-services/LOGSEARCH/0.5.0/service_advisor.py
@@ -145,7 +145,7 @@ class LogSearchServiceAdvisor(service_advisor.ServiceAdvisor):
         
         recommendedMinShards = len(infraSolrHosts)
         recommendedShards = 2 * len(infraSolrHosts)
-        recommendedMaxShards = 3 * len(infraSolrHosts)
+        recommendedMaxShards = max(3 * len(infraSolrHosts), 5)
       # if there is no AMBARI_INFRA (i.e. external solr is used), use default values for min/max shards and recommendations
       else:
         recommendedReplicationFactor = 2