deimos-ruby 1.4.0.pre.beta5 → 1.4.0.pre.beta6
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.md +1 -1
- data/docs/CONFIGURATION.md +6 -0
- data/lib/deimos/config/configuration.rb +1 -0
- data/lib/deimos/version.rb +1 -1
- data/spec/config/configuration_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58b8ca2ce1fb3af003c2ac5fddc0370f37fece3ab0464d264d0baa79fa253e6b
|
4
|
+
data.tar.gz: 9d9a48674ccd05d41d6cb5b24cb40a60d9c462529ec80ea17c5ceb418bc6b8d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4fd2caf3c40460d83ceeb8520d4dd417928736ad9c3c108956e1f51111ddeb8d075e4e68766ea56466f9acb6bf49eb3db177380896805244962774dd5e6b23df
|
7
|
+
data.tar.gz: b5df09cdeea65676988284eb9895abfb2d1898931defb48a5c4d3cf022618fcfd99edd6e8683341c0b4b2d834a8fc0c6489a0ec339387c2cb9acaad0cfb433fa
|
data/CHANGELOG.md
CHANGED
data/docs/CONFIGURATION.md
CHANGED
@@ -36,6 +36,7 @@ end
|
|
36
36
|
```
|
37
37
|
|
38
38
|
You can have as many `producer` blocks as you like to define more producers.
|
39
|
+
|
39
40
|
Config name|Default|Description
|
40
41
|
-----------|-------|-----------
|
41
42
|
class_name|nil|Class name of the producer class (subclass of `Deimos::Producer`.)
|
@@ -66,6 +67,7 @@ end
|
|
66
67
|
In addition to the producer configs, you can define a number of overrides
|
67
68
|
to the basic consumer configuration for each consumer. This is analogous to
|
68
69
|
the `listener` config in `phobos.yml`.
|
70
|
+
|
69
71
|
Config name|Default|Description
|
70
72
|
-----------|-------|-----------
|
71
73
|
class_name|nil|Class name of the consumer class (subclass of `Deimos::Consumer`.)
|
@@ -88,6 +90,7 @@ heartbeat_interval|10|Interval between heartbeats; must be less than the session
|
|
88
90
|
backoff|`(1000..60_000)`|Range representing the minimum and maximum number of milliseconds to back off after a consumer error.
|
89
91
|
|
90
92
|
## Kafka Configuration
|
93
|
+
|
91
94
|
Config name|Default|Description
|
92
95
|
-----------|-------|-----------
|
93
96
|
kafka.logger|`Deimos.config.logger`|Logger passed to RubyKafka.
|
@@ -117,6 +120,7 @@ consumers.report_lag|false|Whether to send the `consumer_lag` metric. This requi
|
|
117
120
|
consumers.fatal_error|`proc { false }`|Block taking an exception, payload and metadata and returning true if this should be considered a fatal error and false otherwise. E.g. you can use this to always fail if the database is available. Not needed if reraise_errors is set to true.
|
118
121
|
|
119
122
|
## Producer Configuration
|
123
|
+
|
120
124
|
Config name|Default|Description
|
121
125
|
-----------|-------|-----------
|
122
126
|
producers.ack_timeout|5|Number of seconds a broker can wait for replicas to acknowledge a write before responding with a timeout.
|
@@ -137,12 +141,14 @@ producers.disabled|false|Disable all actual message producing. Generally more us
|
|
137
141
|
producers.backend|`:kafka_async`|Currently can be set to `:db`, `:kafka`, or `:kafka_async`. If using Kafka directly, a good pattern is to set to async in your user-facing app, and sync in your consumers or delayed workers.
|
138
142
|
|
139
143
|
## Schema Configuration
|
144
|
+
|
140
145
|
Config name|Default|Description
|
141
146
|
-----------|-------|-----------
|
142
147
|
schema.registry_url|`http://localhost:8081`|URL of the Confluent schema registry.
|
143
148
|
schema.path|nil|Local path to find your schemas.
|
144
149
|
|
145
150
|
## Database Producer Configuration
|
151
|
+
|
146
152
|
Config name|Default|Description
|
147
153
|
-----------|-------|-----------
|
148
154
|
db_producer.logger|`Deimos.config.logger`|Logger to use inside the DB producer.
|
data/lib/deimos/version.rb
CHANGED
@@ -80,7 +80,7 @@ describe Deimos, 'configuration' do
|
|
80
80
|
group_id: 'my_batch_group_id',
|
81
81
|
max_concurrency: nil,
|
82
82
|
start_from_beginning: nil,
|
83
|
-
max_bytes_per_partition:
|
83
|
+
max_bytes_per_partition: 500.kilobytes,
|
84
84
|
min_bytes: nil,
|
85
85
|
max_wait_time: nil,
|
86
86
|
force_encoding: nil,
|