Increase connection timeout to ES servers.
* modules/logstash/templates/kibana.vhost.erb: Increase the connection timeout to ElasticSearch when proxying to the limited ES API. This prevents errors when ElasticSearch is slow due to cold caches. Change-Id: I066a7c7822a0ae75bda52b9b37ad27bc07bd7e0a
This commit is contained in:
parent
17bc1cfbf6
commit
ff9e6449c4
@ -11,7 +11,7 @@
|
||||
<% if proxy_elasticsearch == true %>
|
||||
# Proxy for elasticsearch _aliases, .*/_status, and .*/_search.
|
||||
<LocationMatch "^/elasticsearch/(_aliases|(.*/)?_status|(.*/)?_search|_cluster/health)$">
|
||||
ProxyPassMatch http://<%= scope.lookupvar("::logstash::web::discover_nodes")[0] %>/$1 connectiontimeout=5 timeout=120
|
||||
ProxyPassMatch http://<%= scope.lookupvar("::logstash::web::discover_nodes")[0] %>/$1 connectiontimeout=15 timeout=120
|
||||
</LocationMatch>
|
||||
ProxyPassReverse /elasticsearch/ http://<%= scope.lookupvar("::logstash::web::discover_nodes")[0] %>/
|
||||
<% end %>
|
||||
|
Loading…
x
Reference in New Issue
Block a user