Skip to content

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.

@stanislavkozlovski
Copy link

Is this project still actively maintained?

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.

2 participants