|
|
hace 2 años | |
|---|---|---|
| .. | ||
| src | hace 2 años | |
| Cargo.lock | hace 2 años | |
| Cargo.toml | hace 3 años | |
| README.md | hace 4 años | |
| build.sh | hace 2 años | |
| curl.sh | hace 4 años | |
| pi-setup-notes.md | hace 4 años | |
| run_smoke_test.sh | hace 3 años | |
| setup-build-debian.sh | hace 2 años | |
durio is a distributed KV store that comes with a simple HTTP interface. I run it on Raspberry Pis. In this repo you
can find scripts (build.sh, curl.sh) and notes (pi-setup-notes) to
help build, run and test durio on Raspberry Pis.
By default durio has 3 replicas. Each replica has a web server, a KV server and a raft instance
behind it. The 3 web servers talk to all KV servers, while each KV server only talks to the raft instance in the same
process.
durio relies on warp to provide the web server, and tarpc to run the RPC services.
Clients connected to one web server get a consistent (linearizable) view of the data stored in the KV store. The web servers can accept multiple incoming requests. At any given time, at most one request will be sent to the leading KV server. That limits the amount of data one web server can process.