File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ class KafkaClient(object):
40
40
'max_in_flight_requests_per_connection' : 5 ,
41
41
'receive_buffer_bytes' : 32768 ,
42
42
'send_buffer_bytes' : 131072 ,
43
+ 'retry_backoff_ms' : 100 ,
44
+ 'metadata_max_age_ms' : 300000 ,
43
45
}
44
46
45
47
def __init__ (self , ** configs ):
@@ -69,6 +71,12 @@ def __init__(self, **configs):
69
71
(SO_SNDBUF) to use when sending data. Default: 131072
70
72
receive_buffer_bytes (int): The size of the TCP receive buffer
71
73
(SO_RCVBUF) to use when reading data. Default: 32768
74
+ metadata_max_age_ms (int): The period of time in milliseconds after
75
+ which we force a refresh of metadata even if we haven't seen any
76
+ partition leadership changes to proactively discover any new
77
+ brokers or partitions. Default: 300000
78
+ retry_backoff_ms (int): Milliseconds to backoff when retrying on
79
+ errors. Default: 100.
72
80
"""
73
81
self .config = copy .copy (self .DEFAULT_CONFIG )
74
82
for key in self .config :
You can’t perform that action at this time.
0 commit comments