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

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?

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.

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

Check this idea in this context

1 Like