Problem with kazoo and celery

72 views
Skip to first unread message

devos

unread,
Jul 28, 2014, 5:02:52 AM7/28/14
to pyth...@googlegroups.com
Hi,

I'm using kazoo to access some data on zookeeper in my celery tasks

but what happens is that, although I call stop() and close() after i finish quering the ZK it doesn't close the connections to the server and after some time it gets to the max number of connections of the ZK.

does anyone know how to solve this? or has an example of using kazoo with celery?

Thanks.

Ben Bangert

unread,
Sep 23, 2014, 3:31:07 PM9/23/14
to pyth...@googlegroups.com, asa.sv...@gmail.com
Without looking at the code, its pretty hard to diagnose this situation. It should have stopped, however, celery uses multiprocessing and it could be forking and causing copies of the kazoo client to move between processes. This could be why closing a single client is not stopping them all.
Reply all
Reply to author
Forward
0 new messages