Skip to content

Instantly share code, notes, and snippets.

@prydin
Created July 3, 2019 13:29
Show Gist options
  • Save prydin/79372935ff039cbf46518335d663f78c to your computer and use it in GitHub Desktop.
Save prydin/79372935ff039cbf46518335d663f78c to your computer and use it in GitHub Desktop.

Istio/Distributed Tracing Demo Tools

This repository contains tools needed for the Wavefront "CNA Demo". The cental component is a traces replayer, along with datafiles for simulating scenarios, such as canary deployments.

Installation

Mac

  1. Download the distribution from here.
  2. Create a director and extract the files from the tarball
mkdir ~/cna-demo-tools
cd ~/cna-demo-tools
tar xzf ~/Downloads/cna-demo-tools.gz

Windows

  1. Download the distribution from here here.
  2. Open a file explorer and navigate to the contents of the archive
  3. Type Ctrl-A and Ctrl-C to copy all files.
  4. Create a directory somewhere on your machine
  5. Navigate to that directory and type Ctrl-V to paste the files into that directory

Running the tool

The tool consists of two components: A server that runs in the background on your computer feeding data in real time to Wavefront and a set of scripts for feeding various data too the tool.

Starting the server (Mac)

  1. Open a new terminal window and navigate to where you unpacked the tarball.
  2. Start the server
./server.sh

Starting the server (Windows)

  1. Open a Command window (cmd)
  2. Navigate to where you unpacked the zip file
  3. Start the server. A separate window will automatically pop up.
server.bat

Initiating the demo (Mac)

  1. In a shell, navigate to where you unpacked the files
  2. Type the following
./init.sh

You should not see any error messages

Initiating the demo (Windows)

  1. In a shell, navigate to where you unpacked the files
  2. Type the following
init.bat <username>

The username should be your VMware username without @vmware, e.g. "prydin". Please refrain from using "funny" usernames, as they will be visible to customer watching the demo. You should not see any error messages.

Running the demo scenarios

There are three demo scenarios. They are invoked the same way as the "init" sctript

  1. init.sh/init.bat - Runs the application with a performance issue at the pricing service.
  2. canary.sh/canary.bat - Deploys a canary with improved cache. One of the pricing nodes should perform a lot better.
  3. cache.sh/cache.bat - Deploys an improved cache across all nodes. You should see much better overall perfomance of the entire application.

Stopping the demo

  1. Go to the window where you started the server and type Ctrl-C.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment