File tree 5 files changed +30
-25
lines changed
5 files changed +30
-25
lines changed Original file line number Diff line number Diff line change @@ -61,13 +61,14 @@ class KafkaAdminClient(object):
61
61
wait before attempting to reconnect to a given host.
62
62
Default: 50.
63
63
reconnect_backoff_max_ms (int): The maximum amount of time in
64
- milliseconds to wait when reconnecting to a broker that has
64
+ milliseconds to backoff/ wait when reconnecting to a broker that has
65
65
repeatedly failed to connect. If provided, the backoff per host
66
66
will increase exponentially for each consecutive connection
67
- failure, up to this maximum. To avoid connection storms, a
68
- randomization factor of 0.2 will be applied to the backoff
69
- resulting in a random range between 20% below and 20% above
70
- the computed value. Default: 1000.
67
+ failure, up to this maximum. Once the maximum is reached,
68
+ reconnection attempts will continue periodically with this fixed
69
+ rate. To avoid connection storms, a randomization factor of 0.2
70
+ will be applied to the backoff resulting in a random range between
71
+ 20% below and 20% above the computed value. Default: 1000.
71
72
request_timeout_ms (int): Client request timeout in milliseconds.
72
73
Default: 30000.
73
74
connections_max_idle_ms: Close idle connections after the number of
Original file line number Diff line number Diff line change @@ -69,13 +69,14 @@ class KafkaClient(object):
69
69
wait before attempting to reconnect to a given host.
70
70
Default: 50.
71
71
reconnect_backoff_max_ms (int): The maximum amount of time in
72
- milliseconds to wait when reconnecting to a broker that has
72
+ milliseconds to backoff/ wait when reconnecting to a broker that has
73
73
repeatedly failed to connect. If provided, the backoff per host
74
74
will increase exponentially for each consecutive connection
75
- failure, up to this maximum. To avoid connection storms, a
76
- randomization factor of 0.2 will be applied to the backoff
77
- resulting in a random range between 20% below and 20% above
78
- the computed value. Default: 1000.
75
+ failure, up to this maximum. Once the maximum is reached,
76
+ reconnection attempts will continue periodically with this fixed
77
+ rate. To avoid connection storms, a randomization factor of 0.2
78
+ will be applied to the backoff resulting in a random range between
79
+ 20% below and 20% above the computed value. Default: 1000.
79
80
request_timeout_ms (int): Client request timeout in milliseconds.
80
81
Default: 30000.
81
82
connections_max_idle_ms: Close idle connections after the number of
Original file line number Diff line number Diff line change @@ -111,13 +111,14 @@ class BrokerConnection(object):
111
111
wait before attempting to reconnect to a given host.
112
112
Default: 50.
113
113
reconnect_backoff_max_ms (int): The maximum amount of time in
114
- milliseconds to wait when reconnecting to a broker that has
114
+ milliseconds to backoff/ wait when reconnecting to a broker that has
115
115
repeatedly failed to connect. If provided, the backoff per host
116
116
will increase exponentially for each consecutive connection
117
- failure, up to this maximum. To avoid connection storms, a
118
- randomization factor of 0.2 will be applied to the backoff
119
- resulting in a random range between 20% below and 20% above
120
- the computed value. Default: 1000.
117
+ failure, up to this maximum. Once the maximum is reached,
118
+ reconnection attempts will continue periodically with this fixed
119
+ rate. To avoid connection storms, a randomization factor of 0.2
120
+ will be applied to the backoff resulting in a random range between
121
+ 20% below and 20% above the computed value. Default: 1000.
121
122
request_timeout_ms (int): Client request timeout in milliseconds.
122
123
Default: 30000.
123
124
max_in_flight_requests_per_connection (int): Requests are pipelined
Original file line number Diff line number Diff line change @@ -91,13 +91,14 @@ class KafkaConsumer(six.Iterator):
91
91
wait before attempting to reconnect to a given host.
92
92
Default: 50.
93
93
reconnect_backoff_max_ms (int): The maximum amount of time in
94
- milliseconds to wait when reconnecting to a broker that has
94
+ milliseconds to backoff/ wait when reconnecting to a broker that has
95
95
repeatedly failed to connect. If provided, the backoff per host
96
96
will increase exponentially for each consecutive connection
97
- failure, up to this maximum. To avoid connection storms, a
98
- randomization factor of 0.2 will be applied to the backoff
99
- resulting in a random range between 20% below and 20% above
100
- the computed value. Default: 1000.
97
+ failure, up to this maximum. Once the maximum is reached,
98
+ reconnection attempts will continue periodically with this fixed
99
+ rate. To avoid connection storms, a randomization factor of 0.2
100
+ will be applied to the backoff resulting in a random range between
101
+ 20% below and 20% above the computed value. Default: 1000.
101
102
max_in_flight_requests_per_connection (int): Requests are pipelined
102
103
to kafka brokers up to this number of maximum requests per
103
104
broker connection. Default: 5.
Original file line number Diff line number Diff line change @@ -209,13 +209,14 @@ class KafkaProducer(object):
209
209
wait before attempting to reconnect to a given host.
210
210
Default: 50.
211
211
reconnect_backoff_max_ms (int): The maximum amount of time in
212
- milliseconds to wait when reconnecting to a broker that has
212
+ milliseconds to backoff/ wait when reconnecting to a broker that has
213
213
repeatedly failed to connect. If provided, the backoff per host
214
214
will increase exponentially for each consecutive connection
215
- failure, up to this maximum. To avoid connection storms, a
216
- randomization factor of 0.2 will be applied to the backoff
217
- resulting in a random range between 20% below and 20% above
218
- the computed value. Default: 1000.
215
+ failure, up to this maximum. Once the maximum is reached,
216
+ reconnection attempts will continue periodically with this fixed
217
+ rate. To avoid connection storms, a randomization factor of 0.2
218
+ will be applied to the backoff resulting in a random range between
219
+ 20% below and 20% above the computed value. Default: 1000.
219
220
max_in_flight_requests_per_connection (int): Requests are pipelined
220
221
to kafka brokers up to this number of maximum requests per
221
222
broker connection. Note that if this setting is set to be greater
You can’t perform that action at this time.
0 commit comments