fluent-plugin-kafka 0.9.1 → 0.9.2
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/ChangeLog +4 -0
- data/README.md +5 -5
- data/fluent-plugin-kafka.gemspec +1 -1
- data/lib/fluent/plugin/out_kafka_buffered.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19ca96347c691e54c3e17b448f35cd854ce47631
|
4
|
+
data.tar.gz: 71ffa3bf2f49fbc7b8e6524a35a42753d1fbb916
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b81ecd0cd9d0a8373df4de46165342b36caf67e214df542b6e790bc1363a9bd3f01662710c2076f027c618aacd2552fc1468716bf50f1e677f8e383d07b9e595
|
7
|
+
data.tar.gz: dc60575fc8913313c68774b9148eeb7e6eab1bd6f2ac47570f068333ce597ad058f558c4e3540b4f27022c098ec824bb8c0cb8825b48592ac4d7a2c090363479
|
data/ChangeLog
CHANGED
data/README.md
CHANGED
@@ -219,16 +219,16 @@ On CentOS 7 installation is also necessary.
|
|
219
219
|
#### Load balancing
|
220
220
|
|
221
221
|
Messages will be assigned a partition at random as default by ruby-kafka, but messages with the same partition key will always be assigned to the same partition by setting `default_partition_key` in config file.
|
222
|
-
If key name `
|
222
|
+
If key name `partition_key_key` exists in a message, this plugin set the value of partition_key_key as key.
|
223
223
|
|
224
|
-
|default_partition_key|
|
224
|
+
|default_partition_key|partition_key_key| behavior |
|
225
225
|
| --- | --- | --- |
|
226
226
|
|Not set|Not exists| All messages are assigned a partition at random |
|
227
227
|
|Set| Not exists| All messages are assigned to the specific partition |
|
228
|
-
|Not set| Exists | Messages which have
|
229
|
-
|Set| Exists | Messages which have
|
228
|
+
|Not set| Exists | Messages which have partition_key_key record are assigned to the specific partition, others are assigned a partition at random |
|
229
|
+
|Set| Exists | Messages which have partition_key_key record are assigned to the specific partition with partition_key_key, others are assigned to the specific partition with default_parition_key |
|
230
230
|
|
231
|
-
If key name `
|
231
|
+
If key name `message_key_key` exists in a message, this plugin publishes the value of message_key_key to kafka and can be read by consumers. Same message key will be assigned to all messages by setting `default_message_key` in config file. If message_key_key exists and if partition_key_key is not set explicitly, messsage_key_key will be used for partitioning.
|
232
232
|
|
233
233
|
### Output plugin
|
234
234
|
|
data/fluent-plugin-kafka.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
|
|
13
13
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
14
14
|
gem.name = "fluent-plugin-kafka"
|
15
15
|
gem.require_paths = ["lib"]
|
16
|
-
gem.version = '0.9.
|
16
|
+
gem.version = '0.9.2'
|
17
17
|
gem.required_ruby_version = ">= 2.1.0"
|
18
18
|
|
19
19
|
gem.add_dependency "fluentd", [">= 0.10.58", "< 2"]
|
@@ -313,7 +313,7 @@ DESC
|
|
313
313
|
record['tag'] = tag if @output_include_tag
|
314
314
|
topic = (@exclude_topic_key ? record.delete(@topic_key) : record[@topic_key]) || def_topic
|
315
315
|
partition_key = (@exclude_partition_key ? record.delete(@partition_key_key) : record[@partition_key_key]) || @default_partition_key
|
316
|
-
partition = (@exclude_partition ? record.delete(@
|
316
|
+
partition = (@exclude_partition ? record.delete(@partition_key) : record[@partition_key]) || @default_partition
|
317
317
|
message_key = (@exclude_message_key ? record.delete(@message_key_key) : record[@message_key_key]) || @default_message_key
|
318
318
|
|
319
319
|
records_by_topic[topic] ||= 0
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-kafka
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hidemasa Togashi
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-03-
|
12
|
+
date: 2019-03-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fluentd
|