Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible inconsistency in configuration parameter doc #56

Open
FFrederic opened this issue Sep 4, 2020 · 1 comment
Open

Possible inconsistency in configuration parameter doc #56

FFrederic opened this issue Sep 4, 2020 · 1 comment

Comments

@FFrederic
Copy link

Hello,

I was trying to tune the kafka consumer configuration parameters listed in docs/include/plugin_header-integration.asciidoc

If I am reading it right, there seems to be an inconsistency between the default values of two configuration parameters and the suggestion that one should be lower than the other.

===== fetch_max_wait_ms

  • Default value is 500 milliseconds.

This should be less than or equal to the timeout used in poll_timeout_ms

...

===== poll_timeout_ms

  • Default value is 100 milliseconds.
@jsvd
Copy link
Member

jsvd commented Mar 30, 2022

The recommendation does makes sense IMO. Having poll timeouts higher than fetch.max.wait.ms means that each poll request lets the kafka broker respond whenever it reaches fetch.min.bytes of data: either immediately or up to fetch.max.wait.ms.
The poll should never reach the timeout, we only need it if the kafka server doesn't respond in time for some reason and we want to terminate the pipeline, so we need the timeout to unblock the plugin thread.

That said, most users shouldn't need to touch either of these unless they have very low EPS but need the data with very low latency. In this case lowering fetch.max.wait.ms and perhaps even fetch.min.bytes will help.

From my understanding I think the best course of action here would be to set the default poll timeout to 1000ms to avoid having polls timeout, but as mentioned above, no ill should come from the current defaults.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants