mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-05-04 19:15:25 +00:00
Merge pull request #274 from White-Knight-IT/master
Set replication to 0 so that single node setups have "healthy" green …
This commit is contained in:
+1
-1
@@ -253,7 +253,7 @@ def _main():
|
||||
elasticsearch_hosts=None,
|
||||
elasticsearch_timeout=60,
|
||||
elasticsearch_number_of_shards=1,
|
||||
elasticsearch_number_of_replicas=1,
|
||||
elasticsearch_number_of_replicas=0,
|
||||
elasticsearch_index_suffix=None,
|
||||
elasticsearch_ssl=True,
|
||||
elasticsearch_ssl_cert_path=None,
|
||||
|
||||
@@ -218,7 +218,7 @@ def create_indexes(names, settings=None):
|
||||
logger.debug("Creating Elasticsearch index: {0}".format(name))
|
||||
if settings is None:
|
||||
index.settings(number_of_shards=1,
|
||||
number_of_replicas=1)
|
||||
number_of_replicas=0)
|
||||
else:
|
||||
index.settings(**settings)
|
||||
index.create()
|
||||
@@ -281,7 +281,7 @@ def save_aggregate_report_to_elasticsearch(aggregate_report,
|
||||
index_suffix=None,
|
||||
monthly_indexes=False,
|
||||
number_of_shards=1,
|
||||
number_of_replicas=1):
|
||||
number_of_replicas=0):
|
||||
"""
|
||||
Saves a parsed DMARC aggregate report to ElasticSearch
|
||||
|
||||
@@ -411,7 +411,7 @@ def save_forensic_report_to_elasticsearch(forensic_report,
|
||||
index_suffix=None,
|
||||
monthly_indexes=False,
|
||||
number_of_shards=1,
|
||||
number_of_replicas=1):
|
||||
number_of_replicas=0):
|
||||
"""
|
||||
Saves a parsed DMARC forensic report to ElasticSearch
|
||||
|
||||
|
||||
Reference in New Issue
Block a user