<commit_before>---
layout: post
title: CHAOS TESTING WITH DOCKER AND CASSANDRA ON MAC OS X
author: mkrasser
tag: eventuate
---

*This article was originally posted [here](https://krasserm.github.io/2015/07/13/chaos-testing-with-docker-and-cassandra/).*

In this blog post I summarize the setup of a local [Cassandra](http://cassandra.apache.org/) cluster with [Docker](https://www.docker.com/) on Mac OS X for chaos testing on a single machine. Chaos is generated by a coordinator written in Scala that randomly kills and restarts cluster nodes. I used [boot2docker](http://boot2docker.io/) 1.6.2 and Mac OS X 10.9.5 but the following should also work with newer versions. It is assumed that the boot2docker VM is running:

    almdudler:~ martin$ boot2docker start
    Waiting for VM and Docker daemon to start...
    ..........ooooooooo
    Started.

and Mac OS terminal sessions are initialized with:

    almdudler:~ martin$ eval `boot2docker shellinit`
 
Running the cluster<commit_msg>Update to mention improvements to eventuate-chaos<commit_after>---
layout: post
title: CHAOS TESTING WITH DOCKER AND CASSANDRA ON MAC OS X
author: mkrasser
tag: eventuate
---

<hr/>

**12.12.2015**: This blog posts refers to an [initial version](https://github.com/RBMHTechnology/eventuate-chaos/tree/blog-01) of the [eventuate-chaos](https://github.com/RBMHTechnology/eventuate-chaos) tools project. Meanwhile, this project has been significantly improved by [<NAME>](https://github.com/kongo2002) and provides now a rich and user-friendly tool set for injecting random network and node failures into [Apache Cassandra](http://cassandra.apache.org/) and [Eventuate](https://github.com/RBMHTechnology/eventuate) clusters.    

<hr/>

*This article was originally posted [here](https://krasserm.github.io/2015/07/13/chaos-testing-with-docker-and-cassandra/).*

In this blog post I summarize the setup of a local [Cassandra](http://cassandra.apache.org/) cluster with [Docker](https://www.docker.com/) on Mac OS X for chaos testing on a single machine. Chaos is generated by a coordinator written in Scala that randomly kills and restarts cluster nodes. I used [boot2docker](http://boot2docker.io/) 1.6.2 and Mac OS X 10.9.5 but the following should also work with newer versions. It is assumed that the boot2docker VM is running:

    almdudler:~ martin$ boot2docker start
    Waiting for VM and Docker daemon to start...
    ..........ooooooooo
    Started.

and Mac OS terminal sessions are initialized with:

    almdudler:~ martin$ eval `boot2docker shellinit`
 
Running the cluster
{'fraction_non_alphanumeric': 0.10287267080745342, 'fraction_numerical': 0.02096273291925466, 'mean_word_length': 4.052941176470588, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 8, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3630612', 'n_tokens_mistral': 814, 'n_tokens_neox': 751, 'n_words': 297}