2023-04-18 10:14:13 +00:00
|
|
|
# jepsen.garage
|
|
|
|
|
2023-04-18 15:47:53 +00:00
|
|
|
Jepsen checking of Garage consistency properties.
|
2023-04-18 10:14:13 +00:00
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2023-04-18 15:47:53 +00:00
|
|
|
Requirements:
|
|
|
|
|
|
|
|
- vagrant
|
|
|
|
- VirtualBox, configured so that nodes can take an IP in a private network `192.168.56.0/24`
|
|
|
|
- a user that can create VirtualBox VMs
|
|
|
|
- leiningen
|
|
|
|
- gnuplot
|
|
|
|
|
|
|
|
Set up VMs:
|
|
|
|
|
|
|
|
```
|
|
|
|
vagrant up
|
|
|
|
```
|
|
|
|
|
2023-04-19 13:27:26 +00:00
|
|
|
Run tests (this one should fail):
|
2023-04-18 15:47:53 +00:00
|
|
|
|
|
|
|
```
|
2023-04-19 13:27:26 +00:00
|
|
|
lein run test --nodes-file nodes.vagrant --time-limit 64 --concurrency 50 --rate 50 --workload reg
|
2023-04-18 15:47:53 +00:00
|
|
|
```
|
2023-04-18 10:14:13 +00:00
|
|
|
|
2023-04-19 14:16:34 +00:00
|
|
|
These ones are working:
|
|
|
|
|
|
|
|
```
|
|
|
|
lein run test --nodes-file nodes.vagrant --time-limit 64 --rate 50 --concurrency 50 --workload set1
|
|
|
|
lein run test --nodes-file nodes.vagrant --time-limit 64 --rate 50 --concurrency 50 --workload set2
|
|
|
|
```
|
|
|
|
|
2023-10-19 12:34:19 +00:00
|
|
|
## Results
|
|
|
|
|
|
|
|
**Register linear, without timestamp patch**
|
|
|
|
|
|
|
|
Command: `lein run test --nodes-file nodes.vagrant --time-limit 60 --rate 20 --concurrency 20 --workload reg --ops-per-key 100`
|
|
|
|
|
|
|
|
Results: fails with a simple clock-scramble nemesis.
|
|
|
|
|
|
|
|
Explanation: without the timestamp patch, nodes will create objects using their
|
|
|
|
local clock only as a timestamp, so the ordering will be all over the place if
|
|
|
|
clocks are scrambled.
|
|
|
|
|
|
|
|
**Register linear, with timestamp patch**
|
|
|
|
|
|
|
|
Command: `lein run test --nodes-file nodes.vagrant --time-limit 60 --rate 20 --concurrency 20 --workload reg --ops-per-key 100 -I`
|
|
|
|
|
|
|
|
Results:
|
|
|
|
|
|
|
|
- No failure with clock-scramble nemesis
|
|
|
|
- Fails with clock-scramble nemesis + partition nemesis
|
|
|
|
|
|
|
|
Explanation: S3 objects are not meant to behave like linearizable registers. TODO explain using a counter-example
|
|
|
|
|
|
|
|
**Read-after-write CRDT register model**: TODO: determine the expected semantics of such a register, code a checker and show that results are correct
|
|
|
|
|
|
|
|
**Set, basic test**
|
|
|
|
|
|
|
|
Command: `lein run test --nodes-file nodes.vagrant --time-limit 60 --rate 20 --concurrency 20 --workload set1 --ops-per-key 100`
|
|
|
|
|
|
|
|
Results:
|
|
|
|
|
|
|
|
- ListObjects returns objects not within prefix????
|
|
|
|
|
2023-04-18 10:14:13 +00:00
|
|
|
## License
|
|
|
|
|
2023-04-18 15:47:53 +00:00
|
|
|
Copyright © 2023 Alex Auvolat
|
2023-04-18 10:14:13 +00:00
|
|
|
|
|
|
|
This program and the accompanying materials are made available under the
|
2023-04-19 10:56:40 +00:00
|
|
|
terms of the GNU Affero General Public License v3.0.
|