On Wed, Apr 3, 2013 at 7:55 PM, Shawn Heisey <s...@elyograg.org> wrote:
> In situations where I don't want to change the default value, I prefer
> to leave config elements out of the solrconfig.  It makes the config
> smaller, and it also makes it so that I will automatically see benefits
> from the default changing in new versions.
>
Thanks. This makes sense. I take it, then, that you update (or at
least review) solrconfig for each new Solr version. As I become more
familiar with that file I will begin doing the same.

> In the case of maxWarmingSearchers, I would hope that you have your
> system set up so that you would never need more than 1 warming searcher
> at a time.  If you do a commit while a previous commit is still warming,
> Solr will try to create a second warming searcher.
>

How would I set the system up for that? We have very many commits
(every few seconds) and each commit contains a few tens of documents
(mostly smaller than 1 KiB per document). Right now we get about
200-300 searches per minute.

Note that I expect both the commit rate and the search rate to
increase 2-3 times in the next month, and ideally I should be able to
scale it beyond that. I'm right now looking into sharding as a
possible solution.

> I went poking in the code, and it seems that maxWarmingSearchers
> defaults to Integer.MAX_VALUE.  I'm not sure whether this is a bad
> default or not.  It does mean that a pathological setup without
> maxWarmingSearchers in the config will probably blow up with an
> OutOfMemory exception, but is that better or worse than commits that
> don't make new documents searchable?  I can see arguments either way.
>

This is interesting, what you found is that the value in the stock
solrconfig.xml file differs from the Solr default value. I think that
this is bad practice: a single default should be decided upon and Solr
should use this value when nothing is specified in solrconfig.xml, and
that _same_value_ should be specified in the stock solrconfig.xml. Is
it not a reasonable assumption that this would be the case?

--
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com

Reply via email to