From 749ee5405c0f928b88912712bbf812b5c21c4258 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Fri, 8 Dec 2017 13:48:43 -0800 Subject: [PATCH] Timeout logstash es pushes after 300s By default the elasticsearch output plugin for logstash has no timeout. I think this is the cause of logstash daemons hanging when we have elasticsearch node outages. Goal here is to have the timeout force the request to be retried again (ideally against a different server entirely but even if it is simply retried to the same server we should operate properly again once the server that went down is back up). Change-Id: I0511f32f8ee3f0c40987cab3e2528a85595785b2 --- modules/openstack_project/templates/logstash/output.conf.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/openstack_project/templates/logstash/output.conf.erb b/modules/openstack_project/templates/logstash/output.conf.erb index 7c4f4aa08e..fd6db1fdea 100644 --- a/modules/openstack_project/templates/logstash/output.conf.erb +++ b/modules/openstack_project/templates/logstash/output.conf.erb @@ -3,6 +3,7 @@ output { hosts => <%= @elasticsearch_nodes.map { |node| node + ":9200" }.inspect %> manage_template => false flush_size => 1024 + timeout => 300 } }