fluentd icon indicating copy to clipboard operation
fluentd copied to clipboard

Back pressure-like flow control for in/out_forward protocol

Open tagomoris opened this issue 9 years ago • 8 comments

Using opts (possibly v0.12)

tagomoris avatar Mar 27 '15 04:03 tagomoris

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

repeatedly avatar Mar 27 '15 06:03 repeatedly

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.

tagomoris avatar Mar 27 '15 06:03 tagomoris

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

lam-juice avatar Jul 30 '15 20:07 lam-juice

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.

ghost avatar Dec 17 '15 01:12 ghost

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.

donato avatar Feb 28 '17 19:02 donato

+1

fragatina avatar Feb 22 '18 01:02 fragatina

+1

seungyongshim avatar Jul 10 '19 07:07 seungyongshim

Much required feature

rverma-jm avatar Apr 09 '20 01:04 rverma-jm