python-zk / kazoo

Kazoo is a high-level Python library that makes it easier to use Apache Zookeeper.
https://kazoo.readthedocs.io
Apache License 2.0
1.3k stars 386 forks source link

Whether there are configurable parameters to disable the client reconnection mechanism? #667

Open lingnancfy opened 2 years ago

StephenSorriaux commented 6 months ago

I don't think that can be done out of the box.

ceache commented 6 months ago

Hi,

Just to be clear, you are trying to disable all connection retries? Even in case of multiple servers? Or do you mean, regardless of the number of participants in the ensemble, after a successful connection (you have a session Id), from then on if you get disconnected (lose the session), do not retry? The former is too low level, kazoo tries to abstract the individual members of the ensemble as much as possible and instead focuses on the session abstraction. For instance you can easily setup a state watcher that will react on session loss.

I hope this helps

On Fri, Mar 8, 2024, 15:13 Stephen Sorriaux @.***> wrote:

I don't think that can be done out of the box.

— Reply to this email directly, view it on GitHub https://github.com/python-zk/kazoo/issues/667#issuecomment-1986355531, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIFTHV4BLHTTPADT6T4OYLYXILWNAVCNFSM5WZ3TEN2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJYGYZTKNJVGMYQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>