diff options
author | Jeff Widman <jeff@jeffwidman.com> | 2017-01-18 16:51:03 -0800 |
---|---|---|
committer | Dana Powers <dana.powers@gmail.com> | 2017-01-18 16:51:03 -0800 |
commit | 8d41f39702152be34303f067f618a2ffa9714bd2 (patch) | |
tree | 55b304479cee7d3ffcf4f2ec4b5ebf1f3f8b704e | |
parent | c1608dda6bb8a8a5872ab043831b9da38636cf44 (diff) | |
download | kafka-python-8d41f39702152be34303f067f618a2ffa9714bd2.tar.gz |
Default max_poll_records to Java default of 500 (#947)
-rw-r--r-- | kafka/consumer/group.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kafka/consumer/group.py b/kafka/consumer/group.py index d1d6185..10d293c 100644 --- a/kafka/consumer/group.py +++ b/kafka/consumer/group.py @@ -117,7 +117,7 @@ class KafkaConsumer(six.Iterator): session_timeout_ms (int): The timeout used to detect failures when using Kafka's group management facilities. Default: 30000 max_poll_records (int): The maximum number of records returned in a - single call to poll(). + single call to poll(). Default: 500 receive_buffer_bytes (int): The size of the TCP receive buffer (SO_RCVBUF) to use when reading data. Default: None (relies on system defaults). The java client defaults to 32768. @@ -223,7 +223,7 @@ class KafkaConsumer(six.Iterator): 'partition_assignment_strategy': (RangePartitionAssignor, RoundRobinPartitionAssignor), 'heartbeat_interval_ms': 3000, 'session_timeout_ms': 30000, - 'max_poll_records': sys.maxsize, + 'max_poll_records': 500, 'receive_buffer_bytes': None, 'send_buffer_bytes': None, 'socket_options': [(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)], |