Setup to trace consistency changes

Steps for tracing consistency changes.

To setup five nodes on your local computer, trace reads at different consistency levels, and then compare the results.


  1. Get the ccm library of scripts from github.

    You will use this library in subsequent steps to perform the following actions:

    • Download Apache Cassandra source code.
    • Create and launch an Apache Cassandra cluster on a single computer.

    Refer to the ccm README for prerequisites.

  2. Set up loopback aliases. For example, enter the following commands on the command line to set up the alias on the Mac. On some platforms, you can probably skip this step.
    sudo ifconfig lo0 alias up
    $ sudo ifconfig lo0 alias up
    $ sudo ifconfig lo0 alias up
    $ sudo ifconfig lo0 alias up
  3. Download Apache Cassandra source code, version 2.1.0 for example, into the /.ccm/repository, and start the ccm cluster named trace_consistency.
    ccm create trace_consistency -v 2.1.0
    Downloading to /var/folders/9k/ywsprd8n14s7hzb5qnztgb5h0000gq/T/ccm-d7fGAN.tar.gz (15.750MB)
      16514874  [100.00%]
    Extracting /var/folders/9k/ywsprd8n14s7hzb5qnztgb5h0000gq/T/ccm-d7fGAN.tar.gz as version 2.1.0 ...
    Compiling Cassandra 2.1.0 ...
    Current cluster is now: trace_consistency
  4. Use the following commands to populate and check the cluster:
    ccm populate -n 5
    $ ccm start
  5. Check that the cluster is up:
    ccm node1 ring
    The output shows the status of all five nodes.