-
Notifications
You must be signed in to change notification settings - Fork 161
LoadBalancer kills Logstash connections #249
Comments
Thanks for raising @mario-paniccia, we'll need to look into this. |
@russcam I've spent days on this issue without luck. This has been causing so many problems, including slow Logstash indexing time and documents lost during indexing. |
+1 output { elasticsearch { Thanks |
Yes, you can do this if you're using Azure DNS, or custom DNS that forwards to Azure DNS to be able to resolve VMs by hostname |
I've opened #292 to allow load balancer SKU to be specified for both internal and external load balancers. A |
Maybe we do not require internal load balancer at all ? In my setup with array of nodes in the logstash pipeline hosts option works much better. Or there is another purpose of this LB I do not aware? |
@RomasZekonis an internal load balancer is needed for some versions of Kibana that the template deploys, which was limited to communicating with Elasticsearch through only a single endpoint (see elastic/kibana#214 and elastic/kibana#21928). There's a fair amount of complexity involved in updating the template to deploy an internal loadbalancer only for versions that require it. It's not a high priority to address but would accept a PR for it. @mario-paniccia Would you like to see if a Standard SKU internal loadbalancer addresses this, which are now supported, or are we OK to close this issue? |
We’re closing this issue due to inactivity; if you’re still in need of resolution, feel free to re-open with the additional details and we'd be glad to help you out 👍 |
We are experiencing slow indexing time and data loss in Logstash because the cluster loadbalancer has a idle timeout of 5 minutes, and so is killing idle Logstash connections to ES.
Here's the LS logs that result when a new message is processed after a period of inactivity of more than 5 min (10.100.24.254 is the loadbalancer ip):
I've tried setting various combinations for the connection parameters of the elastic output plugin, e.g. timeout, validate_after_inactivity, resurrect_delay, but nothing seems to work:
https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html
Here's my Logstash configuration for the output:
Any idea of how I can configure Logstash to prevent this connection issue?
The text was updated successfully, but these errors were encountered: