increase timeout and add retries

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-04-24 12:54:49 +02:00
parent 5f982e0595
commit 9174a62108
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 2 additions and 1 deletions

View File

@ -41,7 +41,8 @@ def main():
es = Elasticsearch(
[{ 'host': opts.es_host,
'port': opts.es_port }],
timeout=600
timeout=1200,
retry_on_timeout=True
)
print('Cluster: {}'.format(es.info().get('cluster_name')))