You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Odysci <od...@gmail.com> on 2020/06/24 14:38:54 UTC

Solr caches per node or per core

Hi,

I have a Solrcloud configuration with 2 nodes and 2 shards/2 replicas.
I configure the sizes of the solr caches on solrconfig.xml, which I
believe apply to nodes.

But when I look at the caches in the Solr UI, they are shown per core
(e.g., shard1_replica_N1). Are the cache sizes defined in the
solrconfig.xml the total size (adding up the caches for all cores in the
node)? or are the cache sizes defined in the solrconfig.xm applied to each
core separately?
Thanks

Reinaldo

Re: Solr caches per node or per core

Posted by Odysci <od...@gmail.com>.
Thanks!

Reinaldo

On Wed, Jun 24, 2020 at 11:47 AM Emir Arnautović <
emir.arnautovic@sematext.com> wrote:

> Hi Reinaldo,
> It is per core. Single node can have cores from different collections,
> each configured differently. When you size caches from memory consumption
> point of view, you have to take into account how many cores will be placed
> on each node. Of course, you have to count replicas as well.
>
> HTH,
> Emir
> --
> Monitoring - Log Management - Alerting - Anomaly Detection
> Solr & Elasticsearch Consulting Support Training - http://sematext.com/
>
>
>
> > On 24 Jun 2020, at 16:38, Odysci <od...@gmail.com> wrote:
> >
> > Hi,
> >
> > I have a Solrcloud configuration with 2 nodes and 2 shards/2 replicas.
> > I configure the sizes of the solr caches on solrconfig.xml, which I
> > believe apply to nodes.
> >
> > But when I look at the caches in the Solr UI, they are shown per core
> > (e.g., shard1_replica_N1). Are the cache sizes defined in the
> > solrconfig.xml the total size (adding up the caches for all cores in the
> > node)? or are the cache sizes defined in the solrconfig.xm applied to
> each
> > core separately?
> > Thanks
> >
> > Reinaldo
>
>

Re: Solr caches per node or per core

Posted by Emir Arnautović <em...@sematext.com>.
Hi Reinaldo,
It is per core. Single node can have cores from different collections, each configured differently. When you size caches from memory consumption point of view, you have to take into account how many cores will be placed on each node. Of course, you have to count replicas as well.

HTH,
Emir
--
Monitoring - Log Management - Alerting - Anomaly Detection
Solr & Elasticsearch Consulting Support Training - http://sematext.com/



> On 24 Jun 2020, at 16:38, Odysci <od...@gmail.com> wrote:
> 
> Hi,
> 
> I have a Solrcloud configuration with 2 nodes and 2 shards/2 replicas.
> I configure the sizes of the solr caches on solrconfig.xml, which I
> believe apply to nodes.
> 
> But when I look at the caches in the Solr UI, they are shown per core
> (e.g., shard1_replica_N1). Are the cache sizes defined in the
> solrconfig.xml the total size (adding up the caches for all cores in the
> node)? or are the cache sizes defined in the solrconfig.xm applied to each
> core separately?
> Thanks
> 
> Reinaldo