Skip to content

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

Merged
solsson merged 1 commit into
masterfrom
zookeeper-max-connections
Dec 2, 2018
Merged

solsson merged 1 commit into
masterfrom
zookeeper-max-connections

Conversation

@solsson

@solsson solsson commented Dec 2, 2018

Copy link
Copy Markdown
Contributor

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.

@solsson
solsson merged commit 6719fda into master Dec 2, 2018
@solsson solsson mentioned this pull request Dec 3, 2018
@solsson

solsson commented Dec 10, 2018

Copy link
Copy Markdown
Contributor Author

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.

1 participant