Commit 2383dfcd authored by Nick Thomas's avatar Nick Thomas

Retry Elasticsearch queries on failure

parent 786edf41
---
title: Retry Elasticsearch queries on failure
merge_request: 2181
author:
...@@ -10,7 +10,7 @@ module Gitlab ...@@ -10,7 +10,7 @@ module Gitlab
# Takes a hash as returned by `ApplicationSetting#elasticsearch_config`, # Takes a hash as returned by `ApplicationSetting#elasticsearch_config`,
# and configures itself based on those parameters # and configures itself based on those parameters
def self.build(config) def self.build(config)
base_config = { urls: config[:url] } base_config = { urls: config[:url], retry_on_failure: true }
if config[:aws] if config[:aws]
creds = resolve_aws_credentials(config) creds = resolve_aws_credentials(config)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment