evertrue / zookeeper-cookbook

Chef cookbook for installing and managing Zookeeper.
https://supermarket.chef.io/cookbooks/zookeeper
Apache License 2.0
81 stars 119 forks source link

Node LWRP creates a new connection to zk on each action call #133

Closed ArtemZ closed 8 years ago

ArtemZ commented 9 years ago

Hello, I need to insert a bunch of nodes into zookeeper in a cycle, but because this cookbook's lwrp will establish a new connection on each create action call zookeeper will eventually stop accepting new connections and reply something like this:

org.apache.zookeeper.server.NIOServerCnxn: Too many connections from /127.0.0.1 - max is 10

In order to solve it I added a new attribute :collection to create action which accepts a hash with keys for node names and creates or updates them using the same connection.

Please. either accept my pull request #132 or explain how this issue could be solved in a better way.

Thanks

jeffbyrnes commented 8 years ago

Closing due to lack of activity here & on #132