You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@solr.apache.org by Ashwin Ramesh <as...@canva.com.INVALID> on 2022/01/12 02:01:38 UTC
Confirming location of config files in SolrCloud (7.7.x)
Hi,
I had a few questions about how SolrCloud handles configuration files that
are located in Zookeeper (ZK):
1. Does the local node/core download the config (schema etc.) & solr.xml
from ZK? If so, where would the files exist? (I can't seem to locate it in
my local running instance).
2. When I issue a RELOAD command, what does SolrCloud and the underlying
nodes in a collection actually do?
3. If we change the solr.xml file and upload the new version to the root
directory of the ZK path for the given cluster, will a RELOAD command
update the configuration for all running nodes?
Thanks in adv,
Ash
--
**
** <https://www.canva.com/>Empowering the world to design
Share accurate
information on COVID-19 and spread messages of support to your community.
Here are some resources
<https://about.canva.com/coronavirus-awareness-collection/?utm_medium=pr&utm_source=news&utm_campaign=covid19_templates>
that can help.
<https://twitter.com/canva> <https://facebook.com/canva>
<https://au.linkedin.com/company/canva> <https://twitter.com/canva>
<https://facebook.com/canva> <https://au.linkedin.com/company/canva>
<https://instagram.com/canva>
Re: Confirming location of config files in SolrCloud (7.7.x)
Posted by Ashwin Ramesh <as...@canva.com.INVALID>.
Thanks a lot Shawn. This answers my question really well!
On Thu, Jan 13, 2022 at 2:17 PM Shawn Heisey <ap...@elyograg.org> wrote:
> On 1/11/2022 7:01 PM, Ashwin Ramesh wrote:
> > 1. Does the local node/core download the config (schema etc.) & solr.xml
> > from ZK? If so, where would the files exist? (I can't seem to locate it
> in
> > my local running instance).
>
> The files are not downloaded. Solr pulls them from zookeeper and uses
> them directly. I really doubt that the files obtained are ever saved to
> the local disk.
>
> > 2. When I issue a RELOAD command, what does SolrCloud and the underlying
> > nodes in a collection actually do?
>
> If you issue a RELOAD with the collections API, Solr will ask each shard
> replica in the collection to reload.
>
> If you issue a RELOAD with CoreAdmin on a single core, I am actually not
> sure whether Solr would magnify that to the rest of the cores in the
> collection. Hopefully it won't. I do not have access to a SolrCloud
> install to try this. FYI: Using the CoreAdmin API for ANYTHING is
> strongly discouraged when Solr is in cloud mode.
>
> > 3. If we change the solr.xml file and upload the new version to the root
> > directory of the ZK path for the given cluster, will a RELOAD command
> > update the configuration for all running nodes?
>
> The solr.xml file contains configuration for the node as a whole.
> Reloading will not make changes take effect. After changing solr.xml in
> ZK you will need to completely restart each Solr instance connected to
> that zookeeper ensemble. When it starts, it check for the existence of
> solr.xml in ZK. If it finds it there, it will pull solr.xml from
> zookeeper to configure itself. If it doesn't find solr.xml in zookeeper
> then it will look for it in the solr home. I'm fairly sure that if it's
> not found in either location, the Solr versions I have used will not
> start. If that's still the case, I think it's a bug.
>
> Thanks,
> Shawn
>
--
**
** <https://www.canva.com/>Empowering the world to design
Share accurate
information on COVID-19 and spread messages of support to your community.
Here are some resources
<https://about.canva.com/coronavirus-awareness-collection/?utm_medium=pr&utm_source=news&utm_campaign=covid19_templates>
that can help.
<https://twitter.com/canva> <https://facebook.com/canva>
<https://au.linkedin.com/company/canva> <https://twitter.com/canva>
<https://facebook.com/canva> <https://au.linkedin.com/company/canva>
<https://instagram.com/canva>
Re: Confirming location of config files in SolrCloud (7.7.x)
Posted by Shawn Heisey <ap...@elyograg.org>.
On 1/11/2022 7:01 PM, Ashwin Ramesh wrote:
> 1. Does the local node/core download the config (schema etc.) & solr.xml
> from ZK? If so, where would the files exist? (I can't seem to locate it in
> my local running instance).
The files are not downloaded. Solr pulls them from zookeeper and uses
them directly. I really doubt that the files obtained are ever saved to
the local disk.
> 2. When I issue a RELOAD command, what does SolrCloud and the underlying
> nodes in a collection actually do?
If you issue a RELOAD with the collections API, Solr will ask each shard
replica in the collection to reload.
If you issue a RELOAD with CoreAdmin on a single core, I am actually not
sure whether Solr would magnify that to the rest of the cores in the
collection. Hopefully it won't. I do not have access to a SolrCloud
install to try this. FYI: Using the CoreAdmin API for ANYTHING is
strongly discouraged when Solr is in cloud mode.
> 3. If we change the solr.xml file and upload the new version to the root
> directory of the ZK path for the given cluster, will a RELOAD command
> update the configuration for all running nodes?
The solr.xml file contains configuration for the node as a whole.
Reloading will not make changes take effect. After changing solr.xml in
ZK you will need to completely restart each Solr instance connected to
that zookeeper ensemble. When it starts, it check for the existence of
solr.xml in ZK. If it finds it there, it will pull solr.xml from
zookeeper to configure itself. If it doesn't find solr.xml in zookeeper
then it will look for it in the solr home. I'm fairly sure that if it's
not found in either location, the Solr versions I have used will not
start. If that's still the case, I think it's a bug.
Thanks,
Shawn