Modelling Network Partitions with Juju
Channel: Juju Devops
Date: 04/11/2015

Read the blog post here http://blog.mattyw.net/blog/2015/11/02/jupsen-modelling-networking-partitions-with-juju/


Network partitions happen, your distributed system needs to be designed to handle them. One of the reasons they're often not tested is the difficulty in setting up failure scenarios.
I'd like to show jupsen (https://github.com/mattyw/jupsen). Jupsen is a juju plugin that allows you to model network partitions in a simple way, so you can easily test how your app handles them.
I will start by giving a brief tour of the commands available. I will then show an app writing to a mongodb replica set during a network partition. I will create a partition that causes lost writes, and demonstrate how you can guard against them.