# Can we select the custom group for any predicate to control the sharding?

**URL:** <https://discuss.dgraph.io/t/can-we-select-the-custom-group-for-any-predicate-to-control-the-sharding/6806>\
**Category:** Dgraph\
**Created:** [May 22, 2020, 8:14am UTC](https://discuss.dgraph.io/t/can-we-select-the-custom-group-for-any-predicate-to-control-the-sharding/6806 "2020-05-22T08:14:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![venkatkiran.s](https://avatars.discourse-cdn.com/v4/letter/v/34f0e0/32.png) [@venkatkiran.s](https://discuss.dgraph.io/u/venkatkiran.s)\
**Post date:** [May 22, 2020, 8:14am UTC](https://discuss.dgraph.io/t/can-we-select-the-custom-group-for-any-predicate-to-control-the-sharding/6806/1 "2020-05-22T08:14:52Z")

</div>

For any specific predicate, can we have custom group id instead dgraph decides by itself?  
And can we manually control the groups which should go to which shard?

---

<div class="post-metadata">

**Author:** ![MichelDiz](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/micheldiz/32/11873_2.png) [@MichelDiz](https://discuss.dgraph.io/u/MichelDiz)\
**Post date:** [May 22, 2020, 3:38pm UTC](https://discuss.dgraph.io/t/can-we-select-the-custom-group-for-any-predicate-to-control-the-sharding/6806/2 "2020-05-22T15:38:10Z")

</div>

You can use `/moveTablet`

> `/moveTablet?tablet=name&group=2` This endpoint can be used to move a tablet to a group. Zero already does shard rebalancing every 8 mins, this endpoint can be used to force move a tablet.  
> [Self-managed cluster - Deploy](https://dgraph.io/docs/deploy/#more-about-dgraph-zero)

But after moving it, Dgraph can reallocate it following its internal rules of balancing data.

Check this idea in this context  
[https://github.com/dgraph-io/dgraph/issues/4452](https://github.com/dgraph-io/dgraph/issues/4452)
