-
- Downloads
Break away group zero into Dgraphzero.
This is a HUGE change. Dgraphzero keeps track of membership information, and UID assignment. Dgraphzero also uses Raft so we can have multiple instances working as a Raft group. The lease and membership state is stored via Raft WAL. Squashed commit of the following: Break away Raft node in conn package, so it can be shared by dgraphzero. Add dgraphzero code. Add tablet code. Remove uid range for now. Some more refactoring to push raft.Node into conn package. Dgraph zero started to crawl Working raft across dgraphzero. Ignore w directory Modify how membership is stored. Start working on proposals and contexts. Logic for proposing cluster joining and tablet assignment. Logic to handle membership updates. Store group zero as well. Port over lease code to dgraphzero as well. Start removing special group crap from worker package. Revert "Start removing special group crap from worker package." This reverts commit fea7bbc3b8c51e85b7d9071302039412c6329ed1. The whole thing finally compiles. Doesn't work, but compiles Remove some unneeded code. Janardhan's comments Add a TODO
Showing
- cmd/dgraphzero/.gitignore 2 additions, 0 deletionscmd/dgraphzero/.gitignore
- cmd/dgraphzero/assign.go 47 additions, 46 deletionscmd/dgraphzero/assign.go
- cmd/dgraphzero/main.go 167 additions, 0 deletionscmd/dgraphzero/main.go
- cmd/dgraphzero/raft.go 279 additions, 0 deletionscmd/dgraphzero/raft.go
- cmd/dgraphzero/zero.go 273 additions, 0 deletionscmd/dgraphzero/zero.go
- conn/node.go 53 additions, 61 deletionsconn/node.go
- conn/pool.go 58 additions, 2 deletionsconn/pool.go
- protos/bulkloader.pb.go 5 additions, 2 deletionsprotos/bulkloader.pb.go
- protos/facets.pb.go 2 additions, 3 deletionsprotos/facets.pb.go
- protos/graphresponse.pb.go 2 additions, 3 deletionsprotos/graphresponse.pb.go
- protos/payload.pb.go 234 additions, 138 deletionsprotos/payload.pb.go
- protos/payload.proto 10 additions, 6 deletionsprotos/payload.proto
- protos/schema.pb.go 2 additions, 3 deletionsprotos/schema.pb.go
- protos/task.pb.go 1378 additions, 194 deletionsprotos/task.pb.go
- protos/task.proto 29 additions, 9 deletionsprotos/task.proto
- protos/types.pb.go 2 additions, 3 deletionsprotos/types.pb.go
- worker/draft.go 8 additions, 72 deletionsworker/draft.go
- worker/export.go 1 addition, 1 deletionworker/export.go
- worker/groups.go 156 additions, 356 deletionsworker/groups.go
- worker/lease.go 0 additions, 124 deletionsworker/lease.go
Loading
Please register or sign in to comment