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

[KIP-601] Increase connection timeout #1627

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

emasab
Copy link

@emasab emasab commented Sep 29, 2023

being closer to the defaults in KIP-601.

In KafkaJS the connection establishment limit corresponds to the connectionTimeout + authenticationTimeout.

authenticationTimeout has been increased to 10s, but connectionTimeout is 1s.

KIP-601 socket.connection.setup.timeout.ms is about connection and in librdkafka corresponds to 30s, while in kafka-clients is exponential from a minimum of socket.connection.setup.timeout.ms (10s) to a maximum of socket.connection.setup.timeout.max.ms (30s).

This reduces the gap by setting the minimum to 10s and the sum of them to 20s.

being closer to the defaults in KIP-601
@stanislavkozlovski
Copy link

Thanks for this PR @emasab

I think it's important to bump this limit too @Nevon - otherwise it makes the client too fragile to connection storm issues - we've seen cases where clients connect to brokers at once and due to either throttling or simple overload of the acceptor thread in Kafka, the broker can take more than a second to establish the connection.

If clients are too sensitive to this timeout, they risk perpetuating the issue

Copy link

@stanislavkozlovski stanislavkozlovski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Successfully merging this pull request may close these issues.

None yet

2 participants