fluent-bit icon indicating copy to clipboard operation
fluent-bit copied to clipboard

Disk based backpressure mechanism

Open katrielt opened this issue 9 years ago • 4 comments

Would like to see a disk based (As opposed to memory / Mem_Buf_Limit) back-pressure, like fluentd. In many cases, RAM is expensive or not readily available (i.e. taken up by the application). Not having a disk based buffer can mean lost logs or hanged application threads that are waiting to write logs.

katrielt avatar Jul 04 '17 14:07 katrielt

@katrielt are you using a source of data different than log files in the file system ?

edsiper avatar Jul 04 '17 17:07 edsiper

Most of my logs come over in_forward from a java process using a fluentd appeder roughly based on fluent-logger-java. Currently, fluentd's "store-and-forward" disk buffering mechanism is used to make sure logs are not lost if the logs aggregator has any problems.

katrielt avatar Jul 05 '17 05:07 katrielt

sorry for the late reply.

Disk-buffering mechanism in Fluent Bit is not designed to work as an aggregator, there is an enhancement request on that area but no ETA yet. For a strong aggregator I recommend you use Fluentd instead

edsiper avatar Mar 28 '18 18:03 edsiper

for the record: file system buffering mechanism already exists:

https://docs.fluentbit.io/manual/configuration/buffering

edsiper avatar Dec 23 '19 22:12 edsiper