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 2018/05/30 19:52:30 UTC
[ambari] branch trunk updated: AMBARI-23985. Change the default
shard/replica numbers for Log Search collections. (#1418)
This is an automated email from the ASF dual-hosted git repository.
oleewere pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/trunk by this push:
new c935be3 AMBARI-23985. Change the default shard/replica numbers for Log Search collections. (#1418)
c935be3 is described below
commit c935be32ee6ba30e035ade787ba885a14d366a3a
Author: Olivér Szabó <ol...@gmail.com>
AuthorDate: Wed May 30 21:52:14 2018 +0200
AMBARI-23985. Change the default shard/replica numbers for Log Search collections. (#1418)
---
.../LOGSEARCH/0.5.0/configuration/logsearch-properties.xml | 8 ++++----
.../common-services/LOGSEARCH/0.5.0/package/scripts/params.py | 2 +-
.../src/test/python/stacks/2.4/LOGSEARCH/test_logsearch.py | 2 +-
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/ambari-server/src/main/resources/common-services/LOGSEARCH/0.5.0/configuration/logsearch-properties.xml b/ambari-server/src/main/resources/common-services/LOGSEARCH/0.5.0/configuration/logsearch-properties.xml
index 24947bb..3d4f3e9 100644
--- a/ambari-server/src/main/resources/common-services/LOGSEARCH/0.5.0/configuration/logsearch-properties.xml
+++ b/ambari-server/src/main/resources/common-services/LOGSEARCH/0.5.0/configuration/logsearch-properties.xml
@@ -43,7 +43,7 @@
</property>
<property>
<name>logsearch.collection.service.logs.numshards</name>
- <value>5</value>
+ <value>4</value>
<display-name>Log Search Solr Service Logs Shards</display-name>
<description>Number of shards for Service Logs collection</description>
<value-attributes>
@@ -57,7 +57,7 @@
</property>
<property>
<name>logsearch.collection.service.logs.replication.factor</name>
- <value>1</value>
+ <value>2</value>
<display-name>Log Search Solr Service Logs Replication Factor</display-name>
<description>Replication factor for Service Logs Solr collection</description>
<value-attributes>
@@ -71,7 +71,7 @@
</property>
<property>
<name>logsearch.collection.audit.logs.numshards</name>
- <value>5</value>
+ <value>4</value>
<display-name>Log Search Solr Audit Logs Shards</display-name>
<description>Number of shards for Audit Logs collection</description>
<value-attributes>
@@ -85,7 +85,7 @@
</property>
<property>
<name>logsearch.collection.audit.logs.replication.factor</name>
- <value>1</value>
+ <value>2</value>
<display-name>Log Search Solr Audit Logs Replication Factor</display-name>
<description>Replication factor for Audit Logs Solr collection</description>
<value-attributes>
diff --git a/ambari-server/src/main/resources/common-services/LOGSEARCH/0.5.0/package/scripts/params.py b/ambari-server/src/main/resources/common-services/LOGSEARCH/0.5.0/package/scripts/params.py
index ef5d9dd..b700a8b 100644
--- a/ambari-server/src/main/resources/common-services/LOGSEARCH/0.5.0/package/scripts/params.py
+++ b/ambari-server/src/main/resources/common-services/LOGSEARCH/0.5.0/package/scripts/params.py
@@ -259,7 +259,7 @@ logsearch_properties['logsearch.solr.audit.logs.zk_connect_string'] = logsearch_
logsearch_properties['logsearch.solr.collection.history'] = 'history'
logsearch_properties['logsearch.solr.history.config.name'] = 'history'
-logsearch_properties['logsearch.collection.history.replication.factor'] = '1'
+logsearch_properties['logsearch.collection.history.replication.factor'] = '2'
logsearch_properties['logsearch.solr.jmx.port'] = infra_solr_jmx_port
diff --git a/ambari-server/src/test/python/stacks/2.4/LOGSEARCH/test_logsearch.py b/ambari-server/src/test/python/stacks/2.4/LOGSEARCH/test_logsearch.py
index 0c3d38c..7cf3751 100644
--- a/ambari-server/src/test/python/stacks/2.4/LOGSEARCH/test_logsearch.py
+++ b/ambari-server/src/test/python/stacks/2.4/LOGSEARCH/test_logsearch.py
@@ -95,7 +95,7 @@ class TestLogSearch(RMFTestCase):
'logsearch.auth.simple.enabled': 'false',
'logsearch.collection.audit.logs.numshards': '10',
'logsearch.collection.audit.logs.replication.factor': '1',
- 'logsearch.collection.history.replication.factor': '1',
+ 'logsearch.collection.history.replication.factor': '2',
'logsearch.collection.service.logs.numshards': '10',
'logsearch.collection.service.logs.replication.factor': '1',
'logsearch.config.zk_connect_string': 'c6401.ambari.apache.org:2181',
--
To stop receiving notification emails like this one, please contact
oleewere@apache.org.