kazoo icon indicating copy to clipboard operation
kazoo copied to clipboard

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

Open lingnancfy opened this issue 3 years ago • 2 comments

lingnancfy avatar May 24 '22 14:05 lingnancfy

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

StephenSorriaux avatar Mar 08 '24 20:03 StephenSorriaux

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: @.***>

ceache avatar Mar 11 '24 00:03 ceache