A tool to load OpenStack clouds end to end in both control plane and data plane.
Go to file
ahothan 8b701a26ec Build image using diskimage-builder/vagrant
Change-Id: I5b3abc0695cd44b2cc262808db88c3d33ab7e9cb
2015-06-03 18:53:29 -07:00
doc Remove VMTP key pair and use user's key pair instead 2015-04-30 16:24:20 -07:00
scale Build image using diskimage-builder/vagrant 2015-06-03 18:53:29 -07:00
tools Initial release of VMTP to stackforge 2015-02-09 14:14:00 -08:00
vmtp Initial release of VMTP to stackforge 2015-02-09 14:14:00 -08:00
.coveragerc Initial release of VMTP to stackforge 2015-02-09 14:14:00 -08:00
.dockerignore Initial release of VMTP to stackforge 2015-02-09 14:14:00 -08:00
.gitignore Add scripts for building snapshot images 2015-05-12 13:12:34 -07:00
.gitreview Added .gitreview 2015-02-02 15:01:21 +00:00
.mailmap README file enhancements and DockerHub preparation 2015-02-10 16:07:22 -08:00
.testr.conf Initial release of VMTP to stackforge 2015-02-09 14:14:00 -08:00
babel.cfg Initial release of VMTP to stackforge 2015-02-09 14:14:00 -08:00
cfg.default.yaml Remove VMTP key pair and use user's key pair instead 2015-04-30 16:24:20 -07:00
cfg.existing.yaml Initial release of VMTP to stackforge 2015-02-09 14:14:00 -08:00
compute.py Remove VMTP key pair and use user's key pair instead 2015-04-30 16:24:20 -07:00
credentials.py Remove VMTP key pair and use user's key pair instead 2015-04-30 16:24:20 -07:00
Dockerfile Adding contributing page into documentation 2015-02-25 15:43:02 -08:00
genchart.py Update docuentation for genchart 2015-04-28 00:19:44 -07:00
HACKING.rst Initial release of VMTP to stackforge 2015-02-09 14:14:00 -08:00
instance.py Remove VMTP key pair and use user's key pair instead 2015-04-30 16:24:20 -07:00
iperf_tool.py Initial release of VMTP to stackforge 2015-02-09 14:14:00 -08:00
LICENSE Initial release of VMTP to stackforge 2015-02-09 14:14:00 -08:00
MANIFEST.in Initial release of VMTP to stackforge 2015-02-09 14:14:00 -08:00
monitor.py Initial release of VMTP to stackforge 2015-02-09 14:14:00 -08:00
network.py Add support for SRIOV NIC 2015-03-11 16:56:44 -07:00
nuttcp_tool.py Workaround for negative packet count bug in nuttcp 2015-03-03 15:13:30 -08:00
openstack-common.conf Initial release of VMTP to stackforge 2015-02-09 14:14:00 -08:00
perf_instance.py Remove VMTP key pair and use user's key pair instead 2015-04-30 16:24:20 -07:00
perf_tool.py IPV6 changes for VMTP 2015-02-25 13:51:00 -08:00
pns_mongo.py Initial release of VMTP to stackforge 2015-02-09 14:14:00 -08:00
pnsdb_summary.py Initial release of VMTP to stackforge 2015-02-09 14:14:00 -08:00
pylintrc Initial release of VMTP to stackforge 2015-02-09 14:14:00 -08:00
README.rst Update docuentation for genchart 2015-04-28 00:19:44 -07:00
requirements-dev.txt Adding support to store CPU info 2015-02-25 16:07:19 -08:00
requirements.txt Use redis as the communication protocol 2015-04-21 13:08:39 -07:00
run_tests.sh Initial release of VMTP to stackforge 2015-02-09 14:14:00 -08:00
setup.cfg Initial release of VMTP to stackforge 2015-02-09 14:14:00 -08:00
setup.py Initial release of VMTP to stackforge 2015-02-09 14:14:00 -08:00
sshutils.py Remove VMTP key pair and use user's key pair instead 2015-04-30 16:24:20 -07:00
test-requirements.txt Adding support to store OpenStack deployment info 2015-02-13 15:56:44 -08:00
tox.ini Initial release of VMTP to stackforge 2015-02-09 14:14:00 -08:00
vmtp.py Remove VMTP key pair and use user's key pair instead 2015-04-30 16:24:20 -07:00

Overview

VMTP is a data path performance measurement tool for OpenStack clouds.

Features

Have you ever had the need for a quick, simple and automatable way to get VM-level or host-level single-flow throughput and latency numbers from any OpenStack cloud, and take into account various Neutron topologies? Or check whether some OpenStack configuration option, Neutron plug-in performs to expectation or if there is any data path impact for upgrading to a different OpenStack release?

VMTP is a small python application that will automatically perform ping connectivity, round trip time measurement (latency) and TCP/UDP throughput measurement for the following East/West flows on any OpenStack deployment:

  • VM to VM same network (private fixed IP, flow #1)
  • VM to VM different network using fixed IP (same as intra-tenant L3 fixed IP, flow #2)
  • VM to VM different network using floating IP and NAT (same as floating IP inter-tenant L3, flow #3)

Optionally, when an external Linux host is available for testing North/South flows:

  • External host/VM download and upload throughput/latency (L3/floating IP, flow #4 and #5)

image

Optionally, when SSH login to any Linux host (native or virtual) is available:

  • Host to host process-level throughput/latency (intra-node and inter-node)

Optionally, VMTP can extract automatically CPU usage from all native hosts in the cloud during the throughput tests, provided the Ganglia monitoring service (gmond) is installed and enabled on those hosts.

For VM-related flows, VMTP will automatically create the necessary OpenStack resources (router, networks, subnets, key pairs, security groups, test VMs) using the public OpenStack API, install the test tools then orchestrate them to gather the throughput measurements then cleanup all related resources before exiting.

See the usage page for the description of all the command line arguments supported by VMTP.

Pre-requisite

VMTP runs on any Python 2.X envirnment (validated on Linux and MacOSX).

  • Access to the cloud Horizon Dashboard (to retrieve the openrc file)
  • 1 working external network pre-configured on the cloud (VMTP will pick the first one found)
  • At least 2 floating IP if an external router is configured or 3 floating IP if there is no external router configured
  • 1 Linux image available in OpenStack (any distribution)
  • A configuration file that is properly set for the cloud to test (see "Configuration File" section below)

For native/external host throughputs

  • A public key must be installed on the target hosts (see ssh password-less access below)

For pre-existing native host throughputs

  • Firewalls must be configured to allow TCP/UDP ports 5001 and TCP port 5002

For running VMTP Docker Image

  • Docker is installed. See here for instructions.

Sample Results Output

VMTP will display the results to stdout with the following data:

- Session general information (date, auth_url, OpenStack encaps, VMTP version, OpenStack release, Agent type, CPU...)
- List of results per flow, for each flow:
|   flow name
|   to and from IP addresses
|   to and from availability zones (if VM)
|   - results:
|   |   -TCP
|   |   |  packet size
|   |   |  throughput value
|   |   |  number of retransmissions
|   |   |  round trip time in ms
|   |   |  - CPU usage (if enabled), for each host in the openstack cluster
|   |   |  | baseline (before test starts)
|   |   |  | 1 or more readings during test
|   |   -UDP
|   |   |  - for each packet size
|   |   |  | throughput value
|   |   |  | loss rate
|   |   |  | CPU usage (if enabled)
|   |   - ICMP
|   |   |  average, min, max and stddev round trip time in ms

Detailed results can also be stored in a file in JSON format using the --json command line argument and/or stored directly into a MongoDB server. See here <_static/example.json> for an example JSON file that is generated by VMTP. The packaged python tool genchart.py can be used to generate from the JSON result files column charts in HTML format visible from any browser.

Example of column chart generated by genchart.py:

image

Limitations and Caveats

VMTP only measures performance for single-flows at the socket/TCP/UDP level (in a VM or natively). Measured numbers therefore reflect what most applications will see.

It is not designed to measure driver level data path performance from inside a VM (such as bypassing the kernel TCP stack and write directly to virtio), there are better tools that can address this type of mesurement.

Licensing

VMTP is licensed under Apache License 2.0 and comes packaged with the following tools for convenience:

Redistribution of nuttcp and iperf is governed by their respective licenses. Please make sure you read and understand each one before further redistributing VMTP downstream.