two_nodes

Multi-node integration scripts for the distribute library.

All scripts:

Prerequisites

Scripts

integration_test.sh

A minimal “two node” end-to-end check:

Run:

./examples/two_nodes/integration_test.sh

swim_integration.sh

Starts 3 nodes and runs the SWIM-like membership service, then queries membership/metrics via RPC.

Run:

./examples/two_nodes/swim_integration.sh

partition_rejoin.sh

Starts 3 nodes, simulates a “partition” by stopping the membership service on node B, then starts it again and prints membership views.

Run:

./examples/two_nodes/partition_rejoin.sh

raft_failover_test.sh

Starts 3 nodes, triggers Raft-lite election, kills the leader node, and checks that a new leader is elected.

Run:

./examples/two_nodes/raft_failover_test.sh

Notes

Search Document