Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How many retries fluent-bit will try to send to output plugin in case of any failure? #309

Closed
chillaxd opened this issue Jun 28, 2017 · 5 comments
Labels

Comments

@chillaxd
Copy link

chillaxd commented Jun 28, 2017

When I am trying to test my output plugin in failure scenario I saw fluent-bit is giving me this after 3 retry:

[debug] [task] task_id=0 reached retry-attemps limit 2/1
[ warn] [engine] Task cannot be retried: task_id=0 thread_id=2 output=<my_output_plugin>.0
[debug] [task] destroy task=0x21b4540 (task_id=0)
[debug] [dyntag tail.0] 0x21b44b0 destroy (tag=tail.0)

And after this when I have removed the constraint (which triggers to fail my output plugin), I could not see any flushing done by fluent-bit.

If you ( @edsiper ) please elaborate the failure mechanism of fluent-bit, it will be really helpful for me.

@edsiper
Copy link
Member

edsiper commented Jun 28, 2017

hi @chillaxd

Every output plugin have an inherit option called Retry_Limit, basically it specify the number of times that the engine can retry to flush a chunk of data in case of failure, by default is always set to 1.

If you want to retry until it succeed you can add the following configuration in the output section, e.g:

[OUTPUT]
    Name es
    Retry_Limit False

Setting the value to false will make it try indefinitely. Note that this can make your memory usage (RAM) go up because the data cannot be flushed, if your sources are log files consider to enabling the Mem_Buf_Limit option.

Let me know how that goes.

@chillaxd
Copy link
Author

Hi @edsiper

Thanks for this information. It will help me to design my output plugin with great ease. I will surely update you on this part. Thank you again.

@edsiper
Copy link
Member

edsiper commented Jun 29, 2017

@chillaxd are you building an output plugin ?

@chillaxd
Copy link
Author

@edsiper yes I am building an output plugin

@edsiper
Copy link
Member

edsiper commented Jun 29, 2017

Since the question is answered I am closing this issue. If you have more question or face any technical issue don't hesitate to ask again.

Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants