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 rulinma <ru...@gmail.com> on 2013/02/27 09:03:30 UTC
solrCloud insert data steps
numshards=2
for example ids(1,4) will go to same shards
I have shard1(ip1,ip2,ip3) shard2(ip4,ip5,ip6) that each shard has 3 nodes,
and ip1 as the lead of shard1.
If i insert ids(1,4), I think basic step is:
1 search lead, and insert ids(1,4) to the lead locally
2 at the lead node, search follow and send addDocs request to (ip2,ip3)
3 ip2 and ip3 receive reqeust from the ip1 and insert ids(1,4) async
4 lead collect response and return
I don't know it is correct? If not, give me some suggestions.
Thanks.
--
View this message in context: http://lucene.472066.n3.nabble.com/solrCloud-insert-data-steps-tp4043315.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: solrCloud insert data steps
Posted by Erick Erickson <er...@gmail.com>.
bq: I want to improve performance and want to become a committer if possible
Super! In the words of the great wise one (Yonik), you become a committer
by acting like a committer. There are lots of options:
1> pick some JIRAs that are interesting to you. Ping the dev list to see if
there's active interest in them. Provide patches. Essentially a really good
way is to pick an area of Solr in which you want to become an expert and
"own" that. By that I mean consider it your responsibility to help
maintain/enhance/fix that code, in cooperation with others. A great model
is what David Smiley has done with Lucene Spatial.
2> Document, document, document. There's lots of room for improvement in
both the Wiki and Javadocs. This is an awesome way to become familiar with
an area of the code, and a great help to others.
3> participate int he user's list, helping others out.
4> look at the test coverage on the nightly builds, it'll point out parts
of the code that don't have coverage yet. Build some unit tests to exercise
those bits of code and make patches.
5> There are lots of other ways....
be prepared to dig in deeply to some code written by some very good
programmers. You _will not_ be able to understand the entire code-base at
once, trust me on that <G>...
Best
Erick
On Thu, Feb 28, 2013 at 8:01 PM, rulinma <ru...@gmail.com> wrote:
> I want to improve performance and want to become a committer if possible.
>
> THX!
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/SolrCloud-insert-data-steps-tp4043315p4043827.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
Re: solrCloud insert data steps
Posted by rulinma <ru...@gmail.com>.
I want to improve performance and want to become a committer if possible.
THX!
--
View this message in context: http://lucene.472066.n3.nabble.com/SolrCloud-insert-data-steps-tp4043315p4043827.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: solrCloud insert data steps
Posted by Erick Erickson <er...@gmail.com>.
Why do you want to know? General issues or are you having
a specific problem?
But here's the flow as I understand it.
Let's say a leader receives a doc
- if the doc is for this shard, forward the doc to all replicas and
collect the results before responding
- if the doc is for a different shard, forward the request to the leader
of that shard, wait for results before responding
Let's say a replica receives a doc
- forward to the leader for the correct shard, wait for response before
responding to client. Leader does as above.
Hope that helps,
Erick
On Wed, Feb 27, 2013 at 3:03 AM, rulinma <ru...@gmail.com> wrote:
> numshards=2
> for example ids(1,4) will go to same shards
> I have shard1(ip1,ip2,ip3) shard2(ip4,ip5,ip6) that each shard has 3 nodes,
> and ip1 as the lead of shard1.
>
> If i insert ids(1,4), I think basic step is:
>
> 1 search lead, and insert ids(1,4) to the lead locally
> 2 at the lead node, search follow and send addDocs request to (ip2,ip3)
> 3 ip2 and ip3 receive reqeust from the ip1 and insert ids(1,4) async
> 4 lead collect response and return
>
> I don't know it is correct? If not, give me some suggestions.
>
> Thanks.
>
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/solrCloud-insert-data-steps-tp4043315.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>