-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Output: Backup for bad chunk #1856
Comments
Is secondary ignored when |
Yes. backup feature is for bad chunk, not for wrong setup. If plugin re-raise an error for wrong setup, it is routed to backup directory. I think wrong setup should be found during configuration or start, e.g. S3 pluing check API key at start.
There are 2 cases:
To change secondary usage, adding option is one idea, |
Patch is here: #1952 |
Hello @repeatedly. Maybe this is the wrong place, but I didn't find any information in existing issues or in documentation. I have my own output plugin, which do some specific job with buffered data via network. Sometimes there may be some issue with network and my plugin failed to flush data after reaching retry_wait, retry_max_interval, retry_max_times and put that buffer chunk in secondary output plugin which is file. So I didn't lose any data. I have that chunks in my backup directory. Is there any way(I really didn't find anywhere documented or answered) to process that chunks later with the same plugin? by hand, by some external command or maybe there is some existing plugin which can process that data again? |
@artbeglaryan Currently, writing script is better for it. Here is an example: https://groups.google.com/d/msg/fluentd/6Pn4XDOPxoU/CiYFkJXXfAEJ I will add this to documetation. |
Fluentd's output plugin somtimes hit un-recoverable error during chunk flush.
Currently, we use retry limit and secondary for handling these chunks but it has several problems.
So we should care bad chunk for stability and performance.
The idea is if output plugin raises un-recoverable error during chunk flush, such chunks are routed to backup directory.
In addition,
<system>
directive providebackup_dir
parameter. The default is/tmp/fluentd
.The text was updated successfully, but these errors were encountered: