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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 53e87736881101e91b0fc1004c8a25d935ee9bd89d17c820c664f811d49a99fe
4
- data.tar.gz: ecad569803023bf9d1145ccd09cea5e34610a69f521b3ae7a2291e7ad93333db
3
+ metadata.gz: 58b8ca2ce1fb3af003c2ac5fddc0370f37fece3ab0464d264d0baa79fa253e6b
4
+ data.tar.gz: 9d9a48674ccd05d41d6cb5b24cb40a60d9c462529ec80ea17c5ceb418bc6b8d3
5
5
  SHA512:
6
- metadata.gz: 2f08f51ceed90aae81988abd32a18a803b42f643d70e50b05491d1dab2842b6387cd1ea242f632fa57d157ebe63c52803d381fee7b1dfc4de61d9934d61520c7
7
- data.tar.gz: a659b85a2a5486217fc190ef58fbf79ba9dfd2970ff20e6737d7154d5519f8d6c85008754336850b0061c15e9406571ffc01f91dc6e81620361f7a439a110f73
6
+ metadata.gz: 4fd2caf3c40460d83ceeb8520d4dd417928736ad9c3c108956e1f51111ddeb8d075e4e68766ea56466f9acb6bf49eb3db177380896805244962774dd5e6b23df
7
+ data.tar.gz: b5df09cdeea65676988284eb9895abfb2d1898931defb48a5c4d3cf022618fcfd99edd6e8683341c0b4b2d834a8fc0c6489a0ec339387c2cb9acaad0cfb433fa
@@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## UNRELEASED
9
9
 
10
- # [1.4.0-beta5] - 2019-12-16
10
+ # [1.4.0-beta6] - 2019-12-16
11
11
  - Added default for max_bytes_per_partition.
12
12
 
13
13
  # [1.4.0-beta4] - 2019-11-26
@@ -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.
@@ -4,6 +4,7 @@ require_relative 'phobos_config'
4
4
  require_relative 'configurable'
5
5
  require_relative '../metrics/mock'
6
6
  require_relative '../tracing/mock'
7
+ require 'active_support/core_ext/numeric'
7
8
 
8
9
  # :nodoc:
9
10
  module Deimos
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Deimos
4
- VERSION = '1.4.0-beta5'
4
+ VERSION = '1.4.0-beta6'
5
5
  end
@@ -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: nil,
83
+ max_bytes_per_partition: 500.kilobytes,
84
84
  min_bytes: nil,
85
85
  max_wait_time: nil,
86
86
  force_encoding: nil,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deimos-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0.pre.beta5
4
+ version: 1.4.0.pre.beta6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Orner