-
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
Add queue settings to docs #4884
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
677a952
Add queue settings to docs
387376a
Move queue setting to TOC + address some review
92c457f
Remove flush_interval and spooler from outputconfig
756ca3f
remove 'slot'
6128f32
more review changes
9662217
Update queueconfig.asciidoc
ruflin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
[[configuring-internal-queue]] | ||
== Configure the internal queue | ||
|
||
{beatname_uc} uses an internal queue to store events before publishing them. The | ||
queue is responsible for buffering and combining events into batches that can | ||
be consumed by the outputs. The outputs will use bulk operations to send a | ||
batch of events in one transaction. | ||
|
||
You can configure the type and behavior of the internal queue by setting options in the `queue` section of the +{beatname_lc}.yml+ config file. | ||
|
||
|
||
Example configuration: | ||
|
||
[source,yaml] | ||
------------------------------------------------------------------------------ | ||
queue.mem: | ||
events: 4096 | ||
------------------------------------------------------------------------------ | ||
|
||
[float] | ||
[[configuration-internal-queue-memory]] | ||
=== Configure the memory qeueue | ||
|
||
The memory queue keeps all events in memory. It is the only queue type | ||
supported right now. By default no flush interval is configured. All events | ||
published to this queue will be directly consumed by the outputs. | ||
The output's `bulk_max_size` setting limits the number of events being processed at once. | ||
|
||
The memory queue waits for the output to acknowledge or drop events. If | ||
the queue is full, no new events can be inserted into the memeory queue. Only | ||
after the signal from the output will the queue free up space for more events to be accepted. | ||
|
||
To enforce spooling in the queue, set the `flush.min_events` and `flush.timeout` options. | ||
|
||
This sample configuration forwards events to the output if 512 events are | ||
available or the oldest available event is already waiting for 5s in the queue: | ||
|
||
[source,yaml] | ||
------------------------------------------------------------------------------ | ||
queue.mem: | ||
events: 4096 | ||
flush.min_events: 512 | ||
flush.timeout: 5s | ||
------------------------------------------------------------------------------ | ||
|
||
[float] | ||
==== Configuration options | ||
|
||
You can specify the following options in the `queue.mem` section of the +{beatname_lc}.yml+ config file: | ||
|
||
[float] | ||
===== `events` | ||
|
||
Number of events the queue can store. | ||
|
||
The default value is 4096 events. | ||
|
||
[float] | ||
===== `flush.min_events` | ||
|
||
Minimum number of events required for publishing. If this value is set to 0, the | ||
output can start publishing events without additional waiting times. Otherwise | ||
the output has to wait for more events to become available. | ||
|
||
The default value is 0. | ||
|
||
[float] | ||
===== `flush.timeout` | ||
|
||
Maximum wait time for `flush.min_events` to be fulfilled. If set to 0s, events | ||
will be immediately available for consumption. | ||
|
||
The default values is 0s. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd add a [float] tag here to keep the info about the memory queue from becoming a separate topic. If you don't use the [float] tag, you get this:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Change did require me to add
[float]
about everywhere for the doc build not to fail.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yah, I really dislike [float] tags. We use them all over the library. They seem like such a hack, but are impossible to avoid without re-architecting all the content...and even so, you would still end up having to use them in some places.