test-opensearch 0.0.0.17 → 0.0.0.18
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 +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91c18a291793fda6a46f006bef41d93aa3f94ae6818d2b69ad27df0b5b4f6614
|
4
|
+
data.tar.gz: f6854e958070eaf6596b603f5aee2deacf41b68c70308a524adab089b658e609
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b98d89745b6419d64a2fb6e745791a715604e0c6aa28d2f52022648d71c322ca5c0b5c778f090e4a3ec88b3726a0a932357bd9aa41f900a4c8c807b9d24d01f7
|
7
|
+
data.tar.gz: 1c303c1587a238ab2c9042ae3d2e0efe7ad838fc7b53c0253db281f29ec6f43a461451b2475eb818e6c8fb610f3f71c4c7e82fd5412e42ea9bef309176629f22
|
@@ -83,9 +83,9 @@ module Fluent::Plugin
|
|
83
83
|
config_param :docinfo, :bool, :default => false
|
84
84
|
config_param :check_connection, :bool, :default => true
|
85
85
|
config_param :retry_forever, :bool, default: true, desc: 'If true, plugin will ignore retry_timeout and retry_max_times options and retry forever.'
|
86
|
-
config_param :retry_timeout, :time, default: 72 * 60 * 60, desc: 'The maximum seconds to retry
|
86
|
+
config_param :retry_timeout, :time, default: 72 * 60 * 60, desc: 'The maximum seconds to retry'
|
87
87
|
# 72hours == 17 times with exponential backoff (not to change default behavior)
|
88
|
-
config_param :retry_max_times, :integer, default: 5, desc: 'The maximum number of times to retry
|
88
|
+
config_param :retry_max_times, :integer, default: 5, desc: 'The maximum number of times to retry'
|
89
89
|
# exponential backoff sequence will be initialized at the time of this threshold
|
90
90
|
config_param :retry_type, :enum, list: [:exponential_backoff, :periodic], default: :exponential_backoff
|
91
91
|
### Periodic -> fixed :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: 1, desc: 'Seconds to wait before next retry
|
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.'
|
@@ -355,7 +355,7 @@ module Fluent::Plugin
|
|
355
355
|
@retry.step
|
356
356
|
# Check if the retry limit has been reached
|
357
357
|
if @retry.limit?
|
358
|
-
raise
|
358
|
+
raise "Hit limit for retries. retry_times: #{@retry.steps} error: #{e.message}"
|
359
359
|
else
|
360
360
|
msg = "failed to connect or search."
|
361
361
|
log.warn(msg, retry_times: @retry.steps, next_retry_time: @retry.next_time.round, error: e.message)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: test-opensearch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.0.
|
4
|
+
version: 0.0.0.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oleh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|