From ff9e6449c40c87f5d3bc8cf66493cd3c066f3238 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Fri, 13 Sep 2013 16:17:04 -0700 Subject: [PATCH] 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 --- modules/logstash/templates/kibana.vhost.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/logstash/templates/kibana.vhost.erb b/modules/logstash/templates/kibana.vhost.erb index 397c0277e4..65e004b225 100644 --- a/modules/logstash/templates/kibana.vhost.erb +++ b/modules/logstash/templates/kibana.vhost.erb @@ -11,7 +11,7 @@ <% if proxy_elasticsearch == true %> # Proxy for elasticsearch _aliases, .*/_status, and .*/_search. - 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 ProxyPassReverse /elasticsearch/ http://<%= scope.lookupvar("::logstash::web::discover_nodes")[0] %>/ <% end %>