From a6aa7e95eb7444b9adaf4dc8fb788bb92427a7e9 Mon Sep 17 00:00:00 2001 From: Daijiro Fukuda Date: Thu, 31 Mar 2022 14:10:36 +0900 Subject: [PATCH] Fix wrong number of retry times See also: https://github.com/fluent/fluentd/pull/3649 Before the fix, the number was mistakenly 19. This fixes it to 18. (The document was also wrong.) n-th retry is triggered at `2^n - 1` seconds elapsed since the first flush. So 18-th retry is at 262143 seconds elapsed and this exceeds 72 hours (259200 seconds). If the next retry is going to exceed this time limit, the last retry will be made at exactly this time limit. So the last time is 18. Signed-off-by: Daijiro Fukuda --- output/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/output/README.md b/output/README.md index ec2fbb53..b21b911a 100644 --- a/output/README.md +++ b/output/README.md @@ -204,7 +204,7 @@ Default: `72` \(hours\) #### `retry_max_times` -The maximum number of times to retry to flush while failing. If `retry_timeout` is the default, the number is 17 with exponential backoff. +The maximum number of times to retry to flush while failing. If `retry_timeout` is the default, the number is 18 with exponential backoff. Default: `nil`