File tree Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,11 @@ class KafkaClient(object):
79
79
the computed value. Default: 1000.
80
80
request_timeout_ms (int): Client request timeout in milliseconds.
81
81
Default: 30000.
82
+ connections_max_idle_ms: Close idle connections after the number of
83
+ milliseconds specified by this config. The broker closes idle
84
+ connections after connections.max.idle.ms, so this avoids hitting
85
+ unexpected socket disconnected errors on the client.
86
+ Default: 540000
82
87
retry_backoff_ms (int): Milliseconds to backoff when retrying on
83
88
errors. Default: 100.
84
89
max_in_flight_requests_per_connection (int): Requests are pipelined
Original file line number Diff line number Diff line change @@ -212,6 +212,11 @@ class KafkaConsumer(six.Iterator):
212
212
api_version_auto_timeout_ms (int): number of milliseconds to throw a
213
213
timeout exception from the constructor when checking the broker
214
214
api version. Only applies if api_version set to 'auto'
215
+ connections_max_idle_ms: Close idle connections after the number of
216
+ milliseconds specified by this config. The broker closes idle
217
+ connections after connections.max.idle.ms, so this avoids hitting
218
+ unexpected socket disconnected errors on the client.
219
+ Default: 540000
215
220
metric_reporters (list): A list of classes to use as metrics reporters.
216
221
Implementing the AbstractMetricsReporter interface allows plugging
217
222
in classes that will be notified of new metric creation. Default: []
Original file line number Diff line number Diff line change @@ -171,6 +171,11 @@ class KafkaProducer(object):
171
171
will block up to max_block_ms, raising an exception on timeout.
172
172
In the current implementation, this setting is an approximation.
173
173
Default: 33554432 (32MB)
174
+ connections_max_idle_ms: Close idle connections after the number of
175
+ milliseconds specified by this config. The broker closes idle
176
+ connections after connections.max.idle.ms, so this avoids hitting
177
+ unexpected socket disconnected errors on the client.
178
+ Default: 540000
174
179
max_block_ms (int): Number of milliseconds to block during
175
180
:meth:`~kafka.KafkaProducer.send` and
176
181
:meth:`~kafka.KafkaProducer.partitions_for`. These methods can be
You can’t perform that action at this time.
0 commit comments