You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: administration/buffering-and-storage.md
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,16 @@ Understanding the chunks, buffering and backpressure concepts is critical for a
14
14
15
15
When an input plugin \(source\) emits records, the engine groups the records together in a _Chunk_. A Chunk size usually is around 2MB. By configuration, the engine decides where to place this Chunk, the default is that all chunks are created only in memory.
16
16
17
+
#### Irrecoverable Chunks
18
+
19
+
There are two scenarios where fluent-bit marks chunks as irrecoverable:
20
+
21
+
* When Fluent Bit encounters a bad layout in a chunk. A bad layout is a chunk that does not conform to the expected format. [Chunk definition](https://github.com/fluent/fluent-bit/blob/master/CHUNKS.md)
22
+
23
+
* When Fluent Bit encounters an incorrect or invalid chunk header size.
24
+
25
+
In both scenarios Fluent-Bit will log an error message and then discard the irrecoverable chunks.
26
+
17
27
#### Buffering and Memory
18
28
19
29
As mentioned above, the Chunks generated by the engine are placed in memory but this is configurable.
@@ -105,7 +115,7 @@ The Service section refers to the section defined in the main [configuration fil
105
115
| storage.max\_chunks\_up | If the input plugin has enabled `filesystem` storage type, this property sets the maximum number of Chunks that can be `up` in memory. *This is the setting to use to control memory usage when you enable `storage.type filesystem`*. | 128 |
106
116
| storage.backlog.mem\_limit | If _storage.path_ is set, Fluent Bit will look for data chunks that were not delivered and are still in the storage layer, these are called _backlog_ data. _Backlog chunks_ are filesystem chunks that were left over from a previous Fluent Bit run; chunks that could not be sent before exit that Fluent Bit will pick up when restarted. Fluent Bit will check the `storage.backlog.mem_limit` value against the current memory usage from all `up` chunks for the input. If the `up` chunks currently consume less memory than the limit, it will bring the _backlog_ chunks up into memory so they can be sent by outputs. | 5M |
107
117
| storage.metrics | If `http_server` option has been enabled in the main `[SERVICE]` section, this option registers a new endpoint where internal metrics of the storage layer can be consumed. For more details refer to the [Monitoring](monitoring.md) section. | off |
108
-
| storage.delete_irrecoverable_chunks | When enabled, corrupted chunks will be deleted during runtime, and the previously corrupted chunks in the storage path will be deleted when Fluent-Bit starts. | Off |
118
+
| storage.delete_irrecoverable_chunks | When enabled, [irrecoverable chunks](./buffering-and-storage.md#irrecoverable-chunks) will be deleted during runtime, and any other irrecoverable chunk located in the configured storage path directory will be deleted when Fluent-Bit starts. | Off |
0 commit comments