Re: How to resolve a single domain name to multiple zookeeper IP in Solr

2019-09-29 Thread LEE Ween Jiann
Filed. https://issues.apache.org/jira/browse/SOLR-13801 I'll try the repeated dns method as well. Thanks! On 29/9/19, 3:37 AM, "Mikhail Khludnev" wrote: Yes. Please raise a jira ticket. -- Sincerely yours Mikhail Khludnev

Re: How to resolve a single domain name to multiple zookeeper IP in Solr

2019-09-28 Thread Mikhail Khludnev
Yes. Please raise a jira ticket. On Sat, Sep 28, 2019 at 10:59 AM LEE Ween Jiann wrote: > Yes, that is the best way to go, but only available for zk >3.5, I have > spun up zookeeper and checked /zookeeper/config. > > Any idea if querying the ZK client for information for zk >3.5 will be > added

Re: How to resolve a single domain name to multiple zookeeper IP in Solr

2019-09-28 Thread Mikhail Khludnev
> and store this in the Solr config. I don't think it's ever possible. On Sat, Sep 28, 2019 at 2:02 PM Jörn Franke wrote: > Some food for thoughts: if zookeeper can dynamically reconfigure then Solr > must be able to do so as well. Let’s assume you start with an ensemble > server1,server2,serv

Re: How to resolve a single domain name to multiple zookeeper IP in Solr

2019-09-28 Thread Jörn Franke
Some food for thoughts: if zookeeper can dynamically reconfigure then Solr must be able to do so as well. Let’s assume you start with an ensemble server1,server2,server3 and store this in the Solr config. During lifetime of the Solr service it is changed to server4,server5,server6. Now Solr serv

Re: How to resolve a single domain name to multiple zookeeper IP in Solr

2019-09-28 Thread LEE Ween Jiann
Yes, that is the best way to go, but only available for zk >3.5, I have spun up zookeeper and checked /zookeeper/config. Any idea if querying the ZK client for information for zk >3.5 will be added in the near future? Should I raise a JIRA for it? On 28/9/19, 1:33 AM, "Shawn Heisey" wrote:

Re: How to resolve a single domain name to multiple zookeeper IP in Solr

2019-09-27 Thread Shawn Heisey
On 9/27/2019 10:39 AM, LEE Ween Jiann wrote: FYI, solr-zookeeper-headless resolves to 3 different IPs. And getZkRawResponse() method only connects to 1 of the 3. My suggestion is the following: - List zookeepers = Arrays.asList(zkHost.split("/")[0].split(",")); + List zookeeperHosts = Arrays.as

Re: How to resolve a single domain name to multiple zookeeper IP in Solr

2019-09-27 Thread LEE Ween Jiann
Hi, I have looked the zookeeper code and confirmed with the ZK people. What I found was that the ZKclient does indeed resolve multiple IPs from a single address, however, solr only reports one of them. I have dug deeper and found out that fortunately this only affects the solr webapp and not

Re: How to resolve a single domain name to multiple zookeeper IP in Solr

2019-09-27 Thread Mikhail Khludnev
--Original Message- > From: Jörn Franke > Sent: Thursday, September 26, 2019 6:41 PM > To: solr-user@lucene.apache.org > Subject: Re: How to resolve a single domain name to multiple zookeeper IP > in Solr > > The newest zk version supports dynamic change of the zk instances: > > http

Re: How to resolve a single domain name to multiple zookeeper IP in Solr

2019-09-26 Thread LEE Ween Jiann
Thank you, this is what I needed to know. On 26/9/19, 9:08 PM, "Shawn Heisey" wrote: On 9/26/2019 4:12 AM, LEE Ween Jiann wrote: > I'm trying to modify the helm chart for solr such that it works for kubernetes (k8s) deployment correctly. There needs to be a particular change in the wa

Re: How to resolve a single domain name to multiple zookeeper IP in Solr

2019-09-26 Thread Shawn Heisey
On 9/26/2019 4:12 AM, LEE Ween Jiann wrote: I'm trying to modify the helm chart for solr such that it works for kubernetes (k8s) deployment correctly. There needs to be a particular change in the way solr resolves zookeepers hostname in order for this to happen. This is the solr-user mailing

RE: How to resolve a single domain name to multiple zookeeper IP in Solr

2019-09-26 Thread LEE Ween Jiann
This three addresses will be the zookeeper servers. -Original Message- From: Jörn Franke Sent: Thursday, September 26, 2019 6:41 PM To: solr-user@lucene.apache.org Subject: Re: How to resolve a single domain name to multiple zookeeper IP in Solr The newest zk version supports dynamic cha

Re: How to resolve a single domain name to multiple zookeeper IP in Solr

2019-09-26 Thread Jörn Franke
The newest zk version supports dynamic change of the zk instances: https://zookeeper.apache.org/doc/r3.5.3-beta/zookeeperReconfig.html However, for that to work properly in case of a Solr restart you always need a minimal set of servers that do not change and just increase/decrease additional o

How to resolve a single domain name to multiple zookeeper IP in Solr

2019-09-26 Thread LEE Ween Jiann
I'm trying to modify the helm chart for solr such that it works for kubernetes (k8s) deployment correctly. There needs to be a particular change in the way solr resolves zookeepers hostname in order for this to happen. Let me explain... The standard way to configure solr is by listing all the zo