You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Shalin Shekhar Mangar (JIRA)" <ji...@apache.org> on 2013/10/11 07:29:42 UTC

[jira] [Updated] (SOLR-5338) Split shards by a route key

     [ https://issues.apache.org/jira/browse/SOLR-5338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shalin Shekhar Mangar updated SOLR-5338:
----------------------------------------

    Description: 
Provide a way to split a shard using a route key such that all documents of the specified route key end up in a single dedicated sub-shard.

Example:
Assume that collection1, shard1 has hash range [0, 20]. Also that route key 'A!' has hash range [12,15]. Then invoking:
{code}
/admin/collections?action=SPLIT&collection=collection1&split.key=A!
{code}
should produce three sub-shards with hash range [0,11], [12,15] and [16,20]. Then the sub-shard dedicated to documents for route key 'A!' can be scaled separately.

Specifying the source shard is not required here because the route key is enough to figure it out.



  was:
Provide a way to split a shard using a route key such that all documents of the specified route key end up in a single dedicated sub-shard.

Example:
Assume that collection1, shard1 has hash range [0, 20]. Also that route key 'A!' has hash range [12,15]. Then invoking:
{code}
/admin/collections?action=SPLIT&collection=collection1&shard=shard1&split.key=A!
{code}
should produce three sub-shards with hash range [0,11], [12,15] and [16,20].

Now the sub-shard dedicated to documents for route key 'A!' can be scaled separately.


> Split shards by a route key
> ---------------------------
>
>                 Key: SOLR-5338
>                 URL: https://issues.apache.org/jira/browse/SOLR-5338
>             Project: Solr
>          Issue Type: Improvement
>          Components: SolrCloud
>            Reporter: Shalin Shekhar Mangar
>            Assignee: Shalin Shekhar Mangar
>             Fix For: 4.6, 5.0
>
>
> Provide a way to split a shard using a route key such that all documents of the specified route key end up in a single dedicated sub-shard.
> Example:
> Assume that collection1, shard1 has hash range [0, 20]. Also that route key 'A!' has hash range [12,15]. Then invoking:
> {code}
> /admin/collections?action=SPLIT&collection=collection1&split.key=A!
> {code}
> should produce three sub-shards with hash range [0,11], [12,15] and [16,20]. Then the sub-shard dedicated to documents for route key 'A!' can be scaled separately.
> Specifying the source shard is not required here because the route key is enough to figure it out.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org