Parameter Name | Default Value | Description |
auto.offset.reset | latest | Earliest: Automatically reset to the earliest offset. Latest: Automatically reset to the latest offset. |
enable.auto.commit | true | If true, the consumer offset will be submitted periodically in the backend. |
auto.commit.interval.ms | 5000 ms | If enable.auto.commit is set to true, the frequency of automatic commit for consumer offset (ms). |
Parameter Name | Default Value | Description |
fetch.max.wait.ms | 500 ms | Maximum waiting time for consumers to pull messages |
fetch.min.bytes | 1MB | The maximum data volume a server returns for a single request. If there is no sufficient data, the request will wait. |
fetch.max.bytes | 50MB | The maximum data volume a server returns for a single request. Too small (such as 1M): The amount of data is small every time, requiring more requests to obtain sufficient data, increasing the number of sessions on the server. Too large (such as 50M+): May exceed the client's processing capability, causing processing timeout, consumption backlog, and in extreme cases, repeatedly request the same batch of data from the server, leading to an increase in your metered billing. |
request.timeout.ms | 30000 ms | Request timeout period. Use together with fetch.max.bytes. Too short (such as 5s): May cause batch processing to return before reaching fetch.max.bytes, reducing processing efficiency. Too long (such as 60s): Increases message processing latency. |
max.poll.records | 5000 | Maximum record count returned by a single poll() call. |
session.timeout.ms | 10000 ms | Consumer session timeout period with Kafka server (ms). |
heartbeat.interval.ms | 3000 ms | Consumer heartbeat interval (ms). |
Parameter Name | Default Value | Description |
reconnect.backoff.ms | 50 ms | Initial backoff time to reconnect to server (ms). |
retry.backoff.ms | 100 ms | Waiting time before retry failure (ms). |
max.poll.interval.ms | 120000 ms | The upper limit between two poll() calls. If exceeded, the consumer will be considered failed and trigger a rebalance. |
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback