In solr-9.8.0/bin/solr.in.sh it says about SOLR_HOST:

# By default the start script uses "localhost"; override the hostname here
# for production SolrCloud environments to control the hostname exposed to 
cluster state

I'd add for clarification the following statement:

# Note: Setting SOLR_HOST does not influence where the LISTEN gets
# created; for this see SOLR_JETTY_HOST below.

Thanks

        matthias

El día miércoles, febrero 04, 2026 a las 10:25:31a. m. -0500, Gus Heck escribió:

> SOLR_HOST is for handling oddball networking cases where, due to NAT or
> other trickery, the Solr node is unable to see the IP or resolve a host
> name that will be required for it to be addressed by other Solr nodes.
> 
> We are not responsible for whatever ChatGPT is smoking ;)
> 
> Typically the env variables are documented by comments in the Solr.in.sh
> script, or the primary solr control script where they are used. If we
> haven't documented it well enough, feel free to point how we can do better,
> and supply a PR if you are able :)
> Also note that SOLR_HOST is already slated to be renamed to
> SOLR_HOST_ADVERTISE
> 
> I offer https://issues.apache.org/jira/browse/SOLR-7977 and
> https://issues.apache.org/jira/browse/SOLR-17864 for your reading enjoyment
> 
> On Wed, Feb 4, 2026 at 3:17 AM Matthias Apitz <[email protected]> wrote:
> 
> > El día lunes, febrero 02, 2026 a las 02:22:49p. m. +0100, Alastair Porter
> > escribió:
> >
> > > Hi matthias,
> > > SOLR_HOST is not the same as SOLR_JETTY_HOST, see
> > >
> > https://solr.apache.org/guide/solr/latest/deployment-guide/taking-solr-to-production.html#security-considerations
> > >
> > > Regards,
> > > Alastair
> >
> > Hello Alastai, et all,
> >
> > Thanks! SOLR_JETTY_HOST did the trick.
> >
> > Btw: I (and my colleagues) have been confused by the env var SOLR_HOST.
> > And even ChatGPT spelled the nonsense attched below. For what is
> > SOLR_HOST exactly used for? Only for cosmetic purpos the show some
> > string in clients connecting?
> >
> > Thanks again
> >
> >
> >         matthias
> >
> >
-- 
Matthias Apitz, ✉ [email protected], http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub

Jens Spahn (CDU, 11.3.2025 in FAZ):
"Wir können uns verteidigen lernen oder alle Russisch lernen."
"We can learn to defend ourselves or we can all learn Russian."
"Podemos aprender a defendernos o todos podemos aprender ruso."

Ich ziehe vor, Russisch zu lernen. I prefer to learn Russian.
Prefiero aprender ruso.

Reply via email to