-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update queue / ES connection defaults #36990
Conversation
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
Does that imply it is generally recommended to set |
Short answer is yes.
|
Apply the remaining config defaults changes in https://github.com/elastic/ingest-dev/issues/2399, following the conclusion of the benchmark tests of the new values under varying input loads. Full discussion of the changes and associated benchmarks are in that issue. All changes are neutral or positive on all tests, both individually and in combination. The
bulk_max_size
change in particular gives a significant reduction in CPU use, while the timeout changes reduce average connection count for many use cases.The full changes from this PR are:
Queue:
queue.mem.events
:4096
->3200
queue.mem.flush.min_events
:2048
->1600
queue.mem.flush.timeout
:1s
->10s
ES output:
output.elasticsearch.bulk_max_size
:50
->1600
output.elasticsearch.idle_connection_timeout
:60s
->3s
These changes will only take effect on configurations where the flags are unspecified. Any explicit user settings of these flags (in Beats or Agent) will override the values here.
Checklist
I have added tests that prove my fix is effective or that my feature worksCHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Related issues