lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arnon Yogev <ARN...@il.ibm.com>
Subject Re: Implicit Router Configurations
Date Wed, 24 Jun 2015 06:54:42 GMT
Thank you Erick,

What is the recommended way to manually change clusterstate.json?
Is there a java code \ script way of editing a file in ZK?

Best,
Arnon



From:   Erick Erickson <erickerickson@gmail.com>
To:     solr-user@lucene.apache.org
Date:   23/06/2015 09:09 PM
Subject:        Re: Implicit Router Configurations



Please raise a JIRA for this, I can see why this would occur.
You can manually change the clusterstate.json file when this
happens as a stop-gap, I'd have all the Solr instances down
when doing this though.

Best,
Erick



On Tue, Jun 23, 2015 at 8:19 AM, Arnon Yogev <ARNONY@il.ibm.com> wrote:
> We have a use case where documents are indexed in shards according to a
> specific field (shard per user), and the number of shards is unknown 
when
> creating the collection.
> For that purpose we use the implicit router and define 
router.field=user.
>
> From what we've seen, the only way to define an implicit router is 
during
> the collection creation.
> Moreover, the router definitions (router.name and router.field) are kept
> only in clusterstate.json and not in any solr configuration file on 
disk.
>
> In some cases solr state becomes inconsistent and we need to delete the
> configs from ZK and restart the solr server. The behavior we see is the
> new clusterstate.json generated by solr on startup has the default
> router.name=compositeId, which is not what we defined during creation.
>
> Are we missing something? Is there a place to configure the implicit
> router on disk such that it will be persistent?
>
> Thanks,
> Arnon
>
>



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