Skip to content
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.mem defaults #5150

Merged
merged 4 commits into from
Sep 13, 2017
Merged

Update queue.mem defaults #5150

merged 4 commits into from
Sep 13, 2017

Conversation

urso
Copy link

@urso urso commented Sep 11, 2017

Requires: #5148

  • Enable flush based memory queue by default:
    Increases chance of pushing bigger batches of events to the outputs.
    Especially if number of CPUs is limited to 1 or 2 this helps with
    throughput, as outputs and producers go-routines will interleave less.

  • Set flush.events=2048 and flush.timeout=1s

@urso urso added libbeat needs_backport PR is waiting to be backported to other branches. labels Sep 11, 2017
Copy link
Member

@ruflin ruflin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change LGTM. I like the timeout set to 1s which is kind of "near realtime" but still ensures that several events are combined for fileoutput for example.

Was flush.timeout in beta2? If yes, a CHANGLOGE entry should be added.

It seems to break quite a few of our tests. I'm a bit surprised as I did kind of expect the opposite that the flush.timeout: 1s makes things more stable.

@urso
Copy link
Author

urso commented Sep 12, 2017

Rebased on master with #5148 being merged.

- Enable flush based memory queue by default:
  Increases chance of pushing bigger batches of events to the outputs.
  Especially if number of CPUs is limited to 1 or 2 this helps with
  throughput, as outputs and producers go-routines will interleave less.

- Set flush.events=2048 and flush.timeout=1s
@urso
Copy link
Author

urso commented Sep 12, 2017

added changelog entry

update queue flush parameters to min_events of 8 and a timeout of 0.1s.
This hopefully stabilizes some time sensitive tests.
@@ -68,6 +68,7 @@ https://github.com/elastic/beats/compare/v6.0.0-beta2...master[Check the HEAD di
- Changed the hashbang used in the beat helper script from `/bin/bash` to `/usr/bin/env bash`. {pull}5051[5051]
- Changed beat helper script to use `exec` when running the beat. {pull}5051[5051]
- Fix reloader error message to only print on actual error {pull}5066[5066]
- Enable flush timeout by defauly. {pull}5150[5150]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/defauly/default

@tsg tsg merged commit 052172f into elastic:master Sep 13, 2017
tsg pushed a commit to tsg/beats that referenced this pull request Sep 13, 2017
* Update queue.mem defaults

- Enable flush based memory queue by default:
  Increases chance of pushing bigger batches of events to the outputs.
  Especially if number of CPUs is limited to 1 or 2 this helps with
  throughput, as outputs and producers go-routines will interleave less.

- Set flush.events=2048 and flush.timeout=1s

* set queue flush parameters in system tests

update queue flush parameters to min_events of 8 and a timeout of 0.1s.
This hopefully stabilizes some time sensitive tests.

* Fix typo in CHANGELOG

(cherry picked from commit 052172f)
@tsg tsg removed the needs_backport PR is waiting to be backported to other branches. label Sep 13, 2017
ruflin pushed a commit that referenced this pull request Sep 13, 2017
* Update queue.mem defaults (#5150)

* Update queue.mem defaults

- Enable flush based memory queue by default:
  Increases chance of pushing bigger batches of events to the outputs.
  Especially if number of CPUs is limited to 1 or 2 this helps with
  throughput, as outputs and producers go-routines will interleave less.

- Set flush.events=2048 and flush.timeout=1s

* set queue flush parameters in system tests

update queue flush parameters to min_events of 8 and a timeout of 0.1s.
This hopefully stabilizes some time sensitive tests.

* Fix typo in CHANGELOG

(cherry picked from commit 052172f)

* fix changelog
@urso urso deleted the pipeline/queue-defaults branch February 19, 2019 18:38
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
)

* Update queue.mem defaults (elastic#5150)

* Update queue.mem defaults

- Enable flush based memory queue by default:
  Increases chance of pushing bigger batches of events to the outputs.
  Especially if number of CPUs is limited to 1 or 2 this helps with
  throughput, as outputs and producers go-routines will interleave less.

- Set flush.events=2048 and flush.timeout=1s

* set queue flush parameters in system tests

update queue flush parameters to min_events of 8 and a timeout of 0.1s.
This hopefully stabilizes some time sensitive tests.

* Fix typo in CHANGELOG

(cherry picked from commit 8877dd4)

* fix changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants