fluent-plugin-amqp 0.11.0 → 0.12.0
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/lib/fluent/plugin/in_amqp.rb +11 -0
- data/lib/fluent/plugin/out_amqp.rb +4 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56dd14125b5d5e11d718509bf5d5369724abfede
|
4
|
+
data.tar.gz: f365b23bfe48ba0532fcec25ae385b077d93dd97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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:
|
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.
|
170
|
+
rubygems_version: 2.5.2
|
171
171
|
signing_key:
|
172
172
|
specification_version: 4
|
173
173
|
summary: AMQP input/output plugin or fluentd
|