/split-brain

Clustering testing network setup

Primary LanguageShellMIT LicenseMIT

split-brain

Clustering testing network setup

This network setup helps to perform checks on your cluster software with various network issues may happen in production time. Overall network setup is preseneted on fugure below:

Network Structure

This setup include:

  • four networks: n1, n2, n3, n4. These networks can represent your physical machines. To run process in particular network namespace, you can use ip netns exec n1 my-app or for docker docker run -n n1 myimage
  • two software briges, that can be compared to network hub/switch in real world: vbr-left and vbr-right
  • lines on figure represents virtual links, that will be wires in real world.

For example, to simulate broken connection between two datacenters, just shut down one end of link between two bridges:

ip link set vbr-left2right down