Re: Confusion around client ports and dynamic reconfiguration

2022-11-18 Thread Chris T.
We run secure client port at 2182 and standard port 2181. This 2181 is in the dynamic config strings. Then we have a firewalld rule to block incoming traffic on 2181. For us this works, no problem with Curator Ensemble tracker either if I recall. Our Curator based clients connect fine on the

Re: A question about the client side exception

2022-09-05 Thread Chris T.
Hi Yong, When you run an operation on a node you will mostly get ConnectionLossException, which you can retry. When the client connects to ZK again after session expiration time is exceeded and it gets a session expired notice, your node operation will also get a SessionExpiredException. The

Re: Can the leader of a Zookeeper be specifically selected at startup?

2022-06-19 Thread Chris T.
Hi George, As a Zookeeper user or developer you should not have to care about which ZK is the leader. What would be the use case of that? Leader election is automatic and the clients can connect to any of the zk cluster members regardless of role. Regards, Chris On 19 June 2022 17:01:15

Re: Info about Zookeeper 3.8.0

2022-05-03 Thread Chris T.
If you want to get rid of log4j1 in your existing Zookeeper installations, you could also take the following approach : Reload4j is the direct continuation / replacement of log4j1. Stop zookeeper. From the zookeeper/lib directory, remove log4j and slf4j-log4j. Download reload4j and

Re: Bootstrapping a new cluster and using the reconfig feature

2021-12-30 Thread Chris T.
If you want to run a zookeeper cluster you have to start with at least 2 members. From there you can scale up with the dynamic reconfig commands. Regards Chris On 30 December 2021 16:40:40 Eric Edgar wrote: I am experimenting with zk and the reconfig feature and trying to understand if I

Re: zookeeper digest authentication

2021-12-14 Thread Chris T.
Hi, I think you are referring to zookeeper.allowSaslFailedClients This is casually mentioned in the link you provided but not explained as a standalone option. Regards Chris On 15 December 2021 08:14:19 Szalay-Bekő Máté wrote: Hello Andrzej, In ZooKeeper, the authentication is not

Re: Zookeeper 3.5.5 RHEL Operating System Architecture Question

2021-12-02 Thread Chris T.
Hi Raymond, A zookeeper distribution consists of a java program and some bash scripts. It's independent of cpu architecture. Regards Chris On 2 December 2021 14:56:38 "Reed, Raymond J (CGI Federal)" wrote: Hello, I am working with Zookeeper version 3.5.5, and I noticed that the

Re: Zookeeper cluster won't cluster

2021-11-04 Thread Chris T.
You need the following on each server: The '. 1' refers to the myid number. server.1=ip-10-0-0-65.ec2.internal:2888:3888 server.2=ip-10-0-1-234.ec2.internal:2888:3888 server.3=ip-10-0-2-207.ec2.internal:2888:3888 Regards Chris On 4 November 2021 17:39:34 Ken Tune wrote: Hi I have 3

Re: Questions about network segmentation problems

2020-04-28 Thread Chris T.
1: It will close the client port and will remain unavailable for clients until it can form or join a quorum (majority). 2: No, see above. 3+4: They will keep trying to connect to the Zookeeper servers in the connection string until they find one that works. The exact messages you get depend on the

Re: [curator][lock-recipe] implementing locks with just ephemeral nodes

2020-02-04 Thread Chris T.
I have a type of locking mechanism using ephemerals via Curator framework, they are created with with creatingParentsIfNeeded. The whole tree disappears when the last ephemeral leaf node is removed. Parent nodes have an IP address as value. Code snip from our class: CreateModable>

Re: 'zkServer.sh status' connects only to local node ?

2019-12-13 Thread Chris T.
Hi Prashant, correct it only checks the local node. We built a script that parses the dynamic config file and goes over all the nodes to report their status. You can do this easily from shell by enabling adminserver functionality and issuing curl http://yourzookeepernode.com:8081/commands/stats

Re: Disable non-secured client port

2019-12-12 Thread Chris T.
just under review ( > https://github.com/apache/zookeeper/pull/1174) so it's likely to be in the > next 3.5.7 release, if / whenever that will happen. > > Regards, > Mate > > On Thu, Dec 12, 2019 at 2:31 PM Chris T. wrote: > > > Hi, > > > > we're workin

Disable non-secured client port

2019-12-12 Thread Chris T.
Hi, we're working on securing our clusters. For quorum, once we set sslQuorum=true, there is no more unsecured quorum port. Is such an option available or in the works for the client port as well ? Or is ssl client port always in addition to unsecured client port ? Regards, Chris

Re: About ZooKeeper Dynamic Reconfiguration

2019-10-09 Thread Chris T.
Please reply to my private mail address from now. On Thu, Oct 10, 2019 at 5:01 AM Gao,Wei wrote: > Hi Chris, > I received your codes about zookeeper balancer. It seems that there are a > few java class files missing. They include: > nl.ing.profileha.util.EventCreator; >

Re: About ZooKeeper Dynamic Reconfiguration

2019-10-09 Thread Chris T.
I sent it again, please check. On Wed, Oct 9, 2019 at 6:31 AM Gao,Wei wrote: > Hi oo4load, > Where did you sent it to? Through this site or directly sent to my email? > I received your pseudo codes last week just like this shown below: > > buildDatacenterAndServerModel(configurationFile) { >

Re: About ZooKeeper Dynamic Reconfiguration

2019-10-08 Thread Chris T.
I sent it 1 week ago. On Tue, Oct 8, 2019 at 10:08 AM Gao,Wei wrote: > Hi oo4load, > If it is convenient to you, I would like to get the actual code from you > about the zookeeper cluster balancer implementation. My email address is: > wei@arcserve.com > Thank you again. > > > > -- >

Re: About ZooKeeper Dynamic Reconfiguration

2019-09-27 Thread Chris T.
Let me write this from memory. :) We have the following: -A running zookeeper cluster with adminserver enabled -One or more balancer client processes (one per datacenter), of which one has a master role through some leader election. The master does the work, the others do nothing. -In our case,