test-opensearch 0.0.0.5 → 0.0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/fluent-plugin-opensearch.gemspec +1 -1
- data/lib/fluent/plugin/in_opensearch.rb +5 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 688aae5c5812b999d341b2bb6bc638640185055a03e9f1397c9e9ee158fa545c
|
4
|
+
data.tar.gz: 607a8ce7bb14099d99e72f530227757e1b829d4931fe18fb0a62e34a6c1018f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa4dddc8538705d0ac83d4c11110281a40ac3bbbbd8af5c4bbbe07883f2e88b6d62f5789b60f768505175a305ed10dbf7a674cbe70c36eef45b9f474ad0d8469
|
7
|
+
data.tar.gz: 15eb1b0ca1f298ce932ddcb8e982fb59b75ad565afead9073ea765dea43bab5e450484a077629bff67b9c052924b8eb99ed4cb23bc5c90772364a84c4c707b53
|
@@ -86,16 +86,15 @@ module Fluent::Plugin
|
|
86
86
|
config_param :retry_timeout, :time, default: 72 * 60 * 60, desc: 'The maximum seconds to retry to flush while failing, until plugin discards buffer chunks.'
|
87
87
|
# 72hours == 17 times with exponential backoff (not to change default behavior)
|
88
88
|
config_param :retry_max_times, :integer, default: 5, desc: 'The maximum number of times to retry to flush while failing.'
|
89
|
-
config_param :retry_secondary_threshold, :float, default: 0.8, desc: 'ratio of retry_timeout to switch to use secondary while failing.'
|
90
89
|
# exponential backoff sequence will be initialized at the time of this threshold
|
91
|
-
config_param :retry_type, :enum, list: [:exponential_backoff, :periodic], default: :
|
90
|
+
config_param :retry_type, :enum, list: [:exponential_backoff, :periodic], default: :exponential_backoff
|
92
91
|
### Periodic -> fixed :retry_wait
|
93
92
|
### Exponential backoff: k is number of retry times
|
94
93
|
# c: constant factor, @retry_wait
|
95
94
|
# b: base factor, @retry_exponential_backoff_base
|
96
95
|
# k: times
|
97
96
|
# total retry time: c + c * b^1 + (...) + c*b^k = c*b^(k+1) - 1
|
98
|
-
config_param :retry_wait, :time, default:
|
97
|
+
config_param :retry_wait, :time, default: 1, desc: 'Seconds to wait before next retry to flush, or constant factor of exponential backoff.'
|
99
98
|
config_param :retry_exponential_backoff_base, :float, default: 2, desc: 'The base number of exponential backoff for retries.'
|
100
99
|
config_param :retry_max_interval, :time, default: nil, desc: 'The maximum interval seconds for exponential backoff between retries while failing.'
|
101
100
|
config_param :retry_randomize, :bool, default: false, desc: 'If true, output plugin will retry after randomized interval not to do burst retries.'
|
@@ -160,9 +159,9 @@ module Fluent::Plugin
|
|
160
159
|
|
161
160
|
def retry_state(randomize)
|
162
161
|
retry_state_create(
|
163
|
-
:input_retries
|
164
|
-
forever: @retry_forever,max_steps: @retry_max_times,
|
165
|
-
max_interval: @retry_max_interval,backoff_base: @retry_exponential_backoff_base,
|
162
|
+
:input_retries, @retry_type, @retry_wait, @retry_timeout,
|
163
|
+
forever: @retry_forever, max_steps: @retry_max_times,
|
164
|
+
max_interval: @retry_max_interval, backoff_base: @retry_exponential_backoff_base,
|
166
165
|
randomize: randomize
|
167
166
|
)
|
168
167
|
end
|