lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brendan Grainger <>
Subject Re: state.json base_url has internal IP of ec2 instance set instead of 'public DNS' entry in some cases
Date Fri, 15 Jan 2016 23:49:55 GMT
Hi Hoss,

Thanks for your help. Going over the install page again I realized I had originally not adjusted
the value of SOLR_HOST and it had started up using the default internal IP. I changed that
to the public DNS and restarted solr. However in /live_nodes I then had 2 values: one for
the public DNS and one for the internal IP. It looks like it didn’t get removed. I removed
it using the zookeeper cli and all is working fine now.

I’m unsure, but wondering if the behavior I saw is somehow related to this:
<> However, as I said I’m
pretty new to this so I could be completely wrong.

Thanks again

> On Jan 15, 2016, at 6:07 PM, Chris Hostetter <> wrote:
> : What I’m finding is that now and then base_url for the replica in 
> : state.json is set to the internal IP of the AWS node. i.e.:
> : 
> : "base_url":"http://10.29.XXX.XX:8983/solr”,
> : 
> : On other attempts it’s set to the public DNS name of the node:
> : 
> : "base_url":"http://ec2_host:8983/solr”,
> : 
> : In my /etc/defaults/ I have:
> : 
> : SOLR_HOST=“ec2_host”
> : 
> : which I thought is what I needed to get the public DNS name set in base_url. 
> i believe you are correct.  the "now and then" part of your question is 
> weird -- it seems to indicate that sometimes the "correct" thing is 
> happening, and other times it is not.  
> /etc/defaults/ isn't the canonical path for 
> according to the docs/install script for running a production solr 
> instance...
> *exactly* are you running Solr on all of your nodes?
> because my guess is that you've got some kind of inconsistent setup where 
> sometimes when you startup (or restart) a new node it does refer to your 
> file, and other times it does not -- so sometimes solr never 
> sees your SOLR_HOST option.  In those cases, when it regesters itself with 
> ZooKeeper it uses the current IP as a fallback, and then that info gets 
> backed into the metadata for the replicas that get created on that node 
> at that point in time.
> FWIW, you should be able to spot check that the SOLR_HOST is being applied 
> correctly by looking at the java process command line args (using PS, or 
> loading the SOlr UI in your browser) and checking for the "-Dhost=..." 
> option -- if it's not there, then your probably wasn't read in 
> correctly
> -Hoss

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message