test-opensearch 0.0.0.20 → 0.0.0.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.OpenSearchInput.md +2 -2
- data/fluent-plugin-opensearch.gemspec +1 -1
- data/lib/fluent/plugin/in_opensearch.rb +2 -2
- 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: 833739abc81a6562071c9047e266225855f059853b5071cd11452cff393b4a1a
|
4
|
+
data.tar.gz: 75c81ae847a0d5a3e12d8e3e211a7614778ee419ee5ef10f8aa2c194b3063d6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6d93a2323842bf0258558d0da05da7bd76a3b95bfbbd191943cfc9c6203e131db9ee49e0455a7426c7626ca8668d4800c3cb0d3dc0b9ec283d171698b44b3d5
|
7
|
+
data.tar.gz: ce93e37096e8ebf4c502990fc172b1c6523b8ba6f285a8e3bc7e9bdb9ef219a45d4385dee1ab4b377e686e51e949990b8f6b95bf22c16e0cf49e20a312cb0e8d
|
data/README.OpenSearchInput.md
CHANGED
@@ -322,7 +322,7 @@ retry_max_times 5
|
|
322
322
|
|
323
323
|
The parameter needs for how long need to wait (time in seconds) to retry again:
|
324
324
|
`exponential_backoff`: wait in seconds will become large exponentially per failure,
|
325
|
-
`periodic
|
325
|
+
`periodic`: plugin will retry periodically with fixed intervals (configured via retry_wait). The default value is `:exponential_backoff`
|
326
326
|
Periodic -> fixed :retry_wait
|
327
327
|
Exponential backoff: k is number of retry times
|
328
328
|
c: constant factor, @retry_wait
|
@@ -331,7 +331,7 @@ k: times
|
|
331
331
|
total retry time: c + c * b^1 + (...) + c*b^k = c*b^(k+1) - 1
|
332
332
|
|
333
333
|
```
|
334
|
-
retry_type :
|
334
|
+
retry_type :exponential_backoff
|
335
335
|
```
|
336
336
|
|
337
337
|
### retry_wait
|
@@ -94,7 +94,7 @@ module Fluent::Plugin
|
|
94
94
|
# b: base factor, @retry_exponential_backoff_base
|
95
95
|
# k: times
|
96
96
|
# total retry time: c + c * b^1 + (...) + c*b^k = c*b^(k+1) - 1
|
97
|
-
config_param :retry_wait, :time, default:
|
97
|
+
config_param :retry_wait, :time, default: 1, desc: 'Seconds to wait before next retry , or constant factor of exponential backoff.'
|
98
98
|
config_param :retry_exponential_backoff_base, :float, default: 2, desc: 'The base number of exponential backoff for retries.'
|
99
99
|
config_param :retry_max_interval, :time, default: nil, desc: 'The maximum interval seconds for exponential backoff between retries while failing.'
|
100
100
|
config_param :retry_randomize, :bool, default: false, desc: 'If true, output plugin will retry after randomized interval not to do burst retries.'
|
@@ -350,7 +350,7 @@ module Fluent::Plugin
|
|
350
350
|
rescue Faraday::ConnectionFailed, OpenSearch::Transport::Transport::Error => e
|
351
351
|
@retry.step
|
352
352
|
#Raise error if the retry limit has been reached
|
353
|
-
raise "Hit limit for retries. retry_times: #{@retry.
|
353
|
+
raise "Hit limit for retries. retry_times: #{@retry.steps}, error: #{e.message}" if @retry.limit?
|
354
354
|
|
355
355
|
#Retry if the retry limit hasn't been reached
|
356
356
|
log.warn("failed to connect or search.", retry_times: @retry.steps, next_retry_time: @retry.next_time.round, error: e.message)
|