-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(concurrentbatchprocessor) Fail fast when size limit is exceeded (#126)
Fixes #124 Unrelated cleanups: - rename max_in_flight_bytes_mib to max_in_flight_size_mib ("bytes" is redundant), since it's unreleased - add a brief README.md - remove an accidental profile output named `out`.
- Loading branch information
Showing
8 changed files
with
127 additions
and
352 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Concurrent Batch Processor | ||
|
||
This component is an experimental processor, forked from the [core | ||
OpenTelemetry Collector `batchprocessor` | ||
component](https://github.com/open-telemetry/opentelemetry-collector/blob/main/processor/batchprocessor/README.md). | ||
The differences in this component, relative to that component are: | ||
|
||
1. Synchronous pipeline support: this component blocks each producer | ||
until the request returns with success or an error status code. | ||
2. Maximim in-flight-bytes setting. This component measures the | ||
in-memory size of each request it admits to the pipeline and | ||
otherwise stalls requests until they timeout. | ||
3. Unlimited concurrency: this component will start as many goroutines | ||
as needed to send batches through the pipeline. | ||
|
||
Here is an example configuration: | ||
|
||
``` | ||
processors: | ||
concurrentbatch: | ||
send_batch_max_size: 1500 | ||
send_batch_size: 1000 | ||
timeout: 1s | ||
max_in_flight_size_mib: 128 | ||
``` | ||
|
||
In this configuration, the component will admit up to 128MiB of | ||
request data before stalling. |
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
Oops, something went wrong.