We’ve spin up 1 zero and 1 alpha docker containers and we have another container service that performs query and mutation operations to DGraph. We continue to encounter error below. Is there anything we should configure in our container for zero? Please help. Thanks!
zero | E1204 10:26:35.835508 16 node.go:713] [0x1] While trying to do lin read index: context deadline exceeded
zero | E1204 10:26:49.732154 16 node.go:660] Error while trying to call ReadIndex: context deadline exceeded
zero | W1204 10:26:49.774440 16 raft.go:788] Raft.Ready took too long to process: Timer Total: 15.13s. Breakdown: [{advance 5.424s} {disk 4.588s} {proposals 1.319s}]. Num entries: 0. MustSync: false
zero | E1204 10:26:51.141878 16 node.go:713] [0x1] While trying to do lin read index: context deadline exceeded
zero | E1204 10:27:03.523704 16 node.go:660] Error while trying to call ReadIndex: context deadline exceeded
zero | E1204 10:27:06.835512 16 node.go:713] [0x1] While trying to do lin read index: context deadline exceeded
zero | E1204 10:27:11.903326 16 node.go:660] Error while trying to call ReadIndex: context deadline exceeded
zero
Can you share details of your configs in the cluster?
Also, have you tried to start it from scratch? cuz sometimes when doing tests, killing and starting up the cluster again. Some configs get messy, so start from scratch would solve those issues.
Hi we’re just using the compose file provided by the site.
Yes, we start from scratch with docker-compose up then perform mutation/query operations.
We also have tests where we stop zero and check if we are still able to query from our alpha.
if I stop, remove all docker containers and prune system, then up compose again, is this as good as starting from scratch? Thank you.