fluent-plugin-amqp 0.11.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 768712aa2801509d6676bd5afbed81f5871296b4
4
- data.tar.gz: f0020715d5163ed87e160f2cd13f54e2ff2e549f
3
+ metadata.gz: 56dd14125b5d5e11d718509bf5d5369724abfede
4
+ data.tar.gz: f365b23bfe48ba0532fcec25ae385b077d93dd97
5
5
  SHA512:
6
- metadata.gz: 4686083f14b7481987362864ddc535733b7c827d3839d91ecf08726afd24ff571bee3a9e8259db28f068cfa17698a4e9e85b9cdb7f4ef55442df60c83b327eca
7
- data.tar.gz: 0ed03675cdb45f9c6d4723cb3135decf2577d3d06e8bfe30a9ba9ad0a2f6f01c6e8bbe094e6917c6356a5a4986cd78d6075b677b9f38fdf6cd6a5a5bd76726f1
6
+ metadata.gz: 564dbdc68bfcbb594311e0db6f7ca8e46eb6304e1db46e3d4f78137577f2b03c0ba705dfdacba941ae603e6b928a233540df21c17783ae9d9d48e52cc6999cb8
7
+ data.tar.gz: 13e5add0d8226ab8fbdfb23ca1e2a729fab1465c015321a88f1851b85290704ccfd6d093402ada8a09fa5e46fd35612987fc931999dd4f0944253a9e54398397
@@ -69,6 +69,13 @@ module Fluent::Plugin
69
69
  @connection = Bunny.new get_connection_options unless @connection
70
70
  @connection.start
71
71
  @channel = @connection.create_channel
72
+
73
+ if @exclusive && fluentd_worker_id > 0
74
+ log.info 'Config requested exclusive queue with multiple workers'
75
+ @queue += ".#{fluentd_worker_id}"
76
+ log.info "Renamed queue name to include worker id: #{@queue}"
77
+ end
78
+
72
79
  q = @channel.queue(@queue, passive: @passive, durable: @durable,
73
80
  exclusive: @exclusive, auto_delete: @auto_delete)
74
81
  if @bind_exchange
@@ -89,6 +96,10 @@ module Fluent::Plugin
89
96
  super
90
97
  end
91
98
 
99
+ def multi_workers_ready?
100
+ true
101
+ end
102
+
92
103
  private
93
104
  def parse_payload(msg)
94
105
  if @parser
@@ -137,6 +137,10 @@ module Fluent::Plugin
137
137
  super
138
138
  end
139
139
 
140
+ def multi_workers_ready?
141
+ true
142
+ end
143
+
140
144
  def formatted_to_msgpack_binary
141
145
  true
142
146
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-amqp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiromi Ishii
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2017-03-10 00:00:00.000000000 Z
14
+ date: 2018-11-02 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: fluentd
@@ -167,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  version: '0'
168
168
  requirements: []
169
169
  rubyforge_project:
170
- rubygems_version: 2.6.10
170
+ rubygems_version: 2.5.2
171
171
  signing_key:
172
172
  specification_version: 4
173
173
  summary: AMQP input/output plugin or fluentd