memgraph/tests/distributed/raft
Matej Ferencevic c877c87bb4 Refactor RPC
Summary:
Previously, the RPC stack used the network stack only to receive messages. The
messages were then added to a separate queue that was processed by different
thread pools. This design was inefficient because there was a lock when
inserting and getting messages from the common queue.

This diff removes the need for separate thread pools by utilising the new
network stack design. This is possible because the new network stack allows
full processing of the network request without blocking the whole queue.

Reviewers: buda, florijan, teon.banek, dgleich, mislav.bradac

Reviewed By: buda

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D1229
2018-02-23 12:07:22 +01:00
..
CMakeLists.txt Integrate code coverage with Apollo 2018-01-15 12:20:11 +01:00
example_client.cpp Refactor RPC 2018-02-23 12:07:22 +01:00
example_server.cpp Refactor RPC 2018-02-23 12:07:22 +01:00
example_test.py Setup RAFT test infrastructure 2018-01-05 09:59:42 +01:00
messages.hpp RPC refactor 2018-01-24 15:27:40 +01:00
README.md Setup RAFT test infrastructure 2018-01-05 09:59:42 +01:00

Raft Tests

To run test locally execute following command:

./local_runner {test_suite} {test_name}

Every test has to be defined as python module with exposed run(machine_ids, workers) method. In each test there has to be constant NUM_MACHINES which specifies how many workers to run in cluster.