test-opensearch 0.0.0.4 → 0.0.0.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 02f5edf87413e75d76cccf387d11dbeb7a8502886eba394e9459732443c7cee1
4
- data.tar.gz: 63c9e706cba2353bbdde7c84a74631d44fd238a1d4af963f7daa1b3c5573019b
3
+ metadata.gz: aa673ebc53c796e5a252d1233467baaa43b008012e81dfc23868e99577da7c4d
4
+ data.tar.gz: e829229526efec02e22ab4085dccbea383e5f52de391e27c3e4efca90d1320fe
5
5
  SHA512:
6
- metadata.gz: 94fa2926b6e5d279fcd1280dd2cfba36edbb4888a8173a37a50fad399305c78935435ec50dab4e3924a89bc74a9cbe119c83b02190ded6f4795cea05f488ef03
7
- data.tar.gz: 512196484795198c681a6d7d62fbeacd8d457e4dd39bdd401787a95cef9712374692442c3efef193da41d0c6cd5c80550b7f14ae7fc0c1d87f97f38f3cd39c69
6
+ metadata.gz: da2839cc17c1e05eeea453ce7aaca64a7c55c05020db3461b6cfbe00a0df17fb4448824d9d8e2211aaf1fcdd6c08377f33425b2ceb0d3131af2877e7e8c9df6f
7
+ data.tar.gz: 1420695eeac03116e00e23ea35f5167bca923a6b50ee377e6e1870dfc8657edc41b135e52b5a0dbfc2f2bf5d6094a56a9b572e9c5a0001e154ffbc178e214e3f
@@ -3,7 +3,7 @@ $:.push File.expand_path('../lib', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'test-opensearch'
6
- s.version = '0.0.0.4'
6
+ s.version = '0.0.0.6'
7
7
  s.authors = ['Oleh']
8
8
  s.email = ['imcotop@icloud.com']
9
9
  s.description = %q{test}
@@ -85,8 +85,7 @@ module Fluent::Plugin
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
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
- config_param :retry_max_times, :integer, default: nil, 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.'
88
+ config_param :retry_max_times, :integer, default: 5, desc: 'The maximum number of times to retry to flush while failing.'
90
89
  # exponential backoff sequence will be initialized at the time of this threshold
91
90
  config_param :retry_type, :enum, list: [:exponential_backoff, :periodic], default: :periodic
92
91
  ### Periodic -> fixed :retry_wait
@@ -95,7 +94,7 @@ module Fluent::Plugin
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: 1, desc: 'Seconds to wait before next retry to flush, or constant factor of exponential backoff.'
97
+ config_param :retry_wait, :time, default: 10, 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,@retry_type,@retry_type,@retry_timeout,
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test-opensearch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0.4
4
+ version: 0.0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oleh