fluent / fluentd

Fluentd: Unified Logging Layer (project under CNCF)
https://www.fluentd.org
Apache License 2.0
12.9k stars 1.34k forks source link

Back pressure-like flow control for in/out_forward protocol #567

Open tagomoris opened 9 years ago

tagomoris commented 9 years ago

Using opts (possibly v0.12)

repeatedly commented 9 years ago

It means in_forward returns own busy status to out_forward and out_forward coordinates buffer handling?

tagomoris commented 9 years ago

I don't have clear answer what we can do about this feature. If buffer plugins has any APIs to explain its status, we can use it.

lam-juice commented 9 years ago

it means telling input plugins to not ACK / update pos file when the buffer is reaching its limits?

ghost commented 8 years ago

A possible way: create a mutex class and allow plugins to refer to it.

Usually, there are many plugins bug only a few places that need to implement backpressure. Under this approach, in the configuration for an input or output plugin you would explicitly refer to the mutex. Otherwise, plugins work as they do now.

donato commented 7 years ago

Is this a thing? Due to the us-east-1 outage from AWS today, we are experiencing some headaches with td-agent.

Td-agent reads as fast as it can, even though we can't write output to S3. The buffer fills until we run out of memory and td-agent gets reaped. If td-agent would use backpressure to not read past a certain level until the buffer is being flushed, then this wouldn't occur.

fragatina commented 6 years ago

+1

seungyongshim commented 5 years ago

+1

rverma-jm commented 4 years ago

Much required feature