Support setting predicateMoveTimeout value

Moved from GitHub dgraph/5246

Posted by JimWen:

Experience Report

Note: Feature requests are judged based on user experience and modeled on Go Experience Reports. These reports should focus on the problems: they should not focus on and need not propose solutions.

What you wanted to do

Now the timeout param of movePredicate is set to a fix const value(predicateMoveTimeout=20min), but sometime the predicate is too big to finish moving in 20min.

What you actually did

Why that wasn’t great, with examples

Add an option param of alpha to support setting this value when starting an alpha node.

Any external references to support your case

JimWen commented :

If someone meet the same problem of moving big predicate by hand, change the value in source code " dgraph/cmd/zero/tablet.go" like followings and rebuild then restart the zero using new file.

const ( predicateMoveTimeout = 600 * time.Minute )