From 3acf2611ac2622005ac0b064281c8ccf908eebea Mon Sep 17 00:00:00 2001 From: Dan Jaglowski Date: Tue, 14 Sep 2021 15:04:52 -0400 Subject: [PATCH] Change default max_concurrent_files to 512 --- docs/operators/file_input.md | 2 +- operator/builtin/input/file/config.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/operators/file_input.md b/docs/operators/file_input.md index 457207adb..95627e4ac 100644 --- a/docs/operators/file_input.md +++ b/docs/operators/file_input.md @@ -22,7 +22,7 @@ The `file_input` operator reads logs from files. It will place the lines read in | `delete_after_read` | `false` | After reading a to the end of a file, delete it. Cannot be `true` when `start_at` is `end`. | | `fingerprint_size` | `1kb` | The number of bytes with which to identify a file. The first bytes in the file are used as the fingerprint. Decreasing this value at any point will cause existing fingerprints to forgotten, meaning that all files will be read from the beginning (one time). | | `max_log_size` | `1MiB` | The maximum size of a log entry to read before failing. Protects against reading large amounts of data into memory | -| `max_concurrent_files` | 1024 | The maximum number of log files from which logs will be read concurrently (minimum = 2). If the number of files matched in the `include` pattern exceeds half of this number, then files will be processed in batches. One batch will be processed per `poll_interval`. | +| `max_concurrent_files` | 512 | The maximum number of log files from which logs will be read concurrently (minimum = 2). If the number of files matched in the `include` pattern exceeds half of this number, then files will be processed in batches. One batch will be processed per `poll_interval`. | | `labels` | {} | A map of `key: value` labels to add to the entry's labels | | `resource` | {} | A map of `key: value` labels to add to the entry's resource | diff --git a/operator/builtin/input/file/config.go b/operator/builtin/input/file/config.go index e3c9d8b12..fefe52a1d 100644 --- a/operator/builtin/input/file/config.go +++ b/operator/builtin/input/file/config.go @@ -17,7 +17,7 @@ func init() { const ( defaultMaxLogSize = 1024 * 1024 - defaultMaxConcurrentFiles = 1024 + defaultMaxConcurrentFiles = 512 ) // NewInputConfig creates a new input config with default values