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

Allows a maximum of 1 connection to zookeeper per (pod) IP #230

Merged
merged 1 commit into from
Dec 2, 2018

Conversation

solsson
Copy link
Contributor

@solsson solsson commented Dec 2, 2018

Part of the 5.0 destabilization effort :)

I like this kind of restrictions as sanity check. It discourages use of the Kafka pods for administration stuff (bad practice wrt resource limits etc) and use of legacy clients that connect directly to zookeeper. Zookeeper docs also mentions "file descriptor exhaustion".

See the commit comment for the rationale behind the number 1. Sure, we'll increase it if anyone sees practical issues. For now it's on par with the philosophy behind memory limits in 5.0.0.

one zk connection per pod should be sufficient in Kubernetes.

I'm adding this config because it's represented in
https://github.com/apache/kafka/blob/2.1/config/zookeeper.properties
@solsson solsson merged commit 6719fda into master Dec 2, 2018
@solsson solsson mentioned this pull request Dec 3, 2018
@solsson
Copy link
Contributor Author

solsson commented Dec 10, 2018

I'd like to keep this limit as "for microservices". There really shoudn't be more than one zk client per IP, unless maybe multiple containers in the same pod needs zk access. Such a requirement seems unlikely though, as Kafka's client libs have been undergoing a transition towards not contacting zk directly.

Access to zookeeper from outside the cluster could be another use case, but as some threads in this project have discussed I don't think it's feasible.

solsson added a commit that referenced this pull request Jun 19, 2019
for example kafka-topics --create --if-not-exists.

This commit constitues an instance of "anyone sees practical issues" in #230 :)
solsson added a commit that referenced this pull request Jun 25, 2019
for example kafka-topics --create --if-not-exists.

This commit constitues an instance of "anyone sees practical issues" in #230 :)
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

1 participant