Files
memgraph/tests/jepsen
Marko Barišić 89e13109d7 Fix jepsen nodes not starting up healthy (#1846)
* add a loop to check if all nodes started correctly and restart if any failed
2024-03-21 18:39:40 +01:00
..
2021-01-21 15:56:21 +01:00
2021-01-21 15:56:21 +01:00
2021-01-21 15:56:21 +01:00
2024-03-18 16:38:58 +01:00

Jepsen Memgraph Test Suite

NOTE: Jepsen can only connect to the SSH server on the default 22 port. --node flag only takes the actual address (:port doesn't work).

Jepsen run under CI:

cd tests/jepsen
./run.sh test --binary ../../build/memgraph --run-args "test-all --node-configs resources/node-config.edn" --ignore-run-stdout-logs --ignore-run-stderr-logs

Local run of each test (including setup):

cd tests/jepsen
./run.sh cluster-up
docker exec -it jepsen-control bash
cd memgraph
lein run test --workload bank --node-configs resources/node-config.edn
lein run test --workload large --node-configs resources/node-config.edn

Logs are located under jepsen-control:/jepsen/memgraph/store.

If you setup cluster manually go to jepsen-control Docker container and ssh to all cluster nodes to save their host keys in known_hosts.

docker exec -it jepsen-control bash
ssh n1 -> yes -> exit
ssh n2 -> yes -> exit
ssh n3 -> yes -> exit
ssh n4 -> yes -> exit
ssh n5 -> yes -> exit