Re: Determining master/slave from ZK in SolrCloud

2011-10-06 Thread Jamie Johnson
I attached my patch to do this to the JIRA at https://issues.apache.org/jira/browse/SOLR-2765?jwupdated=55859&focusedCommentId=13122185#comment-13122185. Any comments would be appreciated. On Tue, Oct 4, 2011 at 1:06 PM, Jamie Johnson wrote: > so my initial test worked, this appeared in ZK now >

Re: Determining master/slave from ZK in SolrCloud

2011-10-04 Thread Jamie Johnson
so my initial test worked, this appeared in ZK now roles=searcher,indexer which I can use to tell if it should be used to write to or not. It had fewer changes to other files as well I needed to change CloudDescriptor (add roles variable/methods) CoreContainer (parse roles attribute) ZKCo

Re: Determining master/slave from ZK in SolrCloud

2011-10-04 Thread Jamie Johnson
So I see this JIRA which references roles https://issues.apache.org/jira/browse/SOLR-2765 I'm looking at implementing what Yonik suggested, namely in solrconfig.xml I have something like these will be pulled out and added to the cloudDescriptor so they can be saved in ZK. Seem reasonable?

Re: Determining master/slave from ZK in SolrCloud

2011-10-04 Thread Jamie Johnson
also as an FYI I created this JIRA https://issues.apache.org/jira/browse/SOLR-2811 which perhaps should be removed if the roles option comes to life. Is there a JIRA on that now? On Tue, Oct 4, 2011 at 12:12 PM, Jamie Johnson wrote: > Thanks for the reply Mark.  So a couple of questions. > > W

Re: Determining master/slave from ZK in SolrCloud

2011-10-04 Thread Jamie Johnson
Thanks for the reply Mark. So a couple of questions. When is distributed indexing going to be available on Trunk? Are there docs on it now? I think having Roles on the shard would scratch the itch here, because as you said I could then include a role which indicated what to do with this server.

Re: Determining master/slave from ZK in SolrCloud

2011-10-04 Thread Mark Miller
Because the distributed indexing phase of SolrCloud will not use replication, we have not really gone down this path at all. One thing we are considering is adding the ability to add various roles to each shard as hints - eg a shard might be designated a searcher and another an indexer. You mi

Re: Determining master/slave from ZK in SolrCloud

2011-10-04 Thread Jamie Johnson
I'm putting this out there for comment. Right now I'm in ZKControllers and changed register as follows: public void register(SolrCore core, boolean forcePropsUpdate) throws IOException, and at line 479 I've added this SolrRequestHandler requestHandler = core.getRequestHandler("/replicatio

Re: Determining master/slave from ZK in SolrCloud

2011-10-04 Thread Jamie Johnson
Ok, so I am pretty sure this information is not available. What is the most appropriate way to add information like this to ZK? I can obviously look for the system properties enable.master and enable.slave, but that won't be fool proof since someone could put this in the config file instead and n