Reconsider the timeout value of connection_idle_timeout / idle_connection_timeout #40749
Labels
discuss
Issue needs further discussion.
enhancement
Team:Elastic-Agent-Data-Plane
Label for the Agent Data Plane team
Describe the enhancement:
With version 8.12. we changed the default connection timeout from Beats/Agent to Elasticsearch from 60 to 3 seconds. As a result, Agents have to reconnect to Elasticsearch more frequently, leading to potential situations where the DNS severs might get spammed.
In most cases, this does not seem to be an issue when a local DNS server is installed on the OS. However, in some scenarios this is not the default or desired, leading to unexpected high network requests.
As such, it is questionable if closing connections after three seconds is feasible, given that this is supposed to be an HTTP connection where users would expect an active keep.alive. A more balanced value like 10-30 seconds might be a better compromise for the default value.
References:
The text was updated successfully, but these errors were encountered: