Git Product home page Git Product logo

cloud-weather-report's Introduction

Overview

Cloud Weather Report (cwr) enables charm authors and maintainers to run health checks and benchmarks on multiple clouds.

When the cwr starts executing, it deploys a bundle or charm on the clouds chosen by the author. It runs all the tests associated with each charm in each cloud it deployed to. It also runs benchmarks on those clouds allowing charm authors to see how their charms are performing on different clouds.

Installing prerequisites

Cloud Weather Report uses make and unzip during execution and python-dev during installation. Make sure these tools are installed before installing the cwr. If you are on Ubuntu, you can install them using apt-get.

Installation

[sudo] pip install cloud-weather-report

Installing from a source

curl -L -o cwr.zip https://github.com/juju-solutions/cloud-weather-report/archive/master.zip
unzip cwr.zip
cd cloud-weather-report-master
python setup.py install

Usage

After installing the Cloud Weather Report, you will have cwr command installed on your machine. It is assumes that the controller is already bootstrapped before running cwr. You can simply run cwr by specifying one or more controllers and the path to the test plan.

cwr controller  [controller ...] test-plan.yaml

For example if you already have bootstrapped aws and gce controllers:

cwr aws gce test-plan.yaml

Note: aws and gce are the names of your Juju 1.25 environment (found in your environments.yaml) or the name of your Juju 2.0 controller (found in juju list-controllers). If you had named your environment or controller for AWS soemthing like aws-west1 the CWR command would look like:

cwr aws-west1 test-plan.yaml

Once cwr starts running, it deploys the bundle, runs the tests and benchmarks that are defined in the test plan. An example of the test plan is included in the examples directory.

Running bundles

The following is example of a test plan to run the apache-analytics-sql bundle. It deploys apache-analytics-sql and runs terasort benchmarks.

bundle: bundle:apache-analytics-sql
benchmark:
    plugin:
        terasort

The following example deploys the mongodb charm and runs the perf benchmark. The runtime: 60 is a parameter passed to perf.

bundle: cs:mongodb
benchmark:
    mongodb:
        perf:
            runtime: 60

Result outputs

Once the run is completed, the cwr generates a HTML file containing the test and benchmark results. The path to the HTML file will be displayed and will also be opened in a web browser.

cloud-weather-report's People

Contributors

arosales avatar johnsca avatar ktsakalozos avatar kwmonroe avatar marcoceppi avatar pengale avatar seman avatar tvansteenburgh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.