test-opensearch 0.0.0.6 → 0.0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/fluent-plugin-opensearch.gemspec +1 -1
- data/lib/fluent/plugin/in_opensearch.rb +3 -3
- 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: 356a4b9a24e6a63553f267ccc1b58743baf6491d7b631463640ba5730e7470b9
|
4
|
+
data.tar.gz: 80e69ef8dbd2f95e2d99cfaff5e67a25a0b6243d3619ef0a97b4e7d2c81164d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 380290db70e56d2330f50b8211b3dec573460505ce9a6d2bc9a5b4bde01483cf88d175e575725b10870d567e582597a1cd2d8384d9eb6b0b99b6fba9a6be20f9
|
7
|
+
data.tar.gz: 707b112dce34dc702e99cd0c03ece5cd960d8640481f8ad71aca8be1b62f0d9d2fa02f684b29bbb22cfe70ca39cd0c20b41c574254a2ab127c63796262af6965
|
@@ -87,14 +87,14 @@ module Fluent::Plugin
|
|
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
89
|
# exponential backoff sequence will be initialized at the time of this threshold
|
90
|
-
config_param :retry_type, :enum, list: [:exponential_backoff, :periodic], default: :
|
90
|
+
config_param :retry_type, :enum, list: [:exponential_backoff, :periodic], default: :exponential_backoff
|
91
91
|
### Periodic -> fixed :retry_wait
|
92
92
|
### Exponential backoff: k is number of retry times
|
93
93
|
# c: constant factor, @retry_wait
|
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 to flush, 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.'
|
@@ -359,7 +359,7 @@ module Fluent::Plugin
|
|
359
359
|
log.warn msg, retry_times: @retry.steps, error: e.message
|
360
360
|
else
|
361
361
|
msg = "failed to connect or search."
|
362
|
-
log.warn(msg, retry_times: @retry.steps, next_retry_time: @retry.next_time.round, error:
|
362
|
+
log.warn(msg, retry_times: @retry.steps, next_retry_time: @retry.next_time.round, error: e.message)
|
363
363
|
sleep(@retry.next_time - Time.now)
|
364
364
|
retry
|
365
365
|
end
|