Git Product home page Git Product logo

services.utils.rmqstresstests's Introduction

RabbitMQ Stress Testing Harness

Usage

This is meant to be checked out and played with locally. It doesn't have an installer.

To get started:

  1. Create a Python 3.7+ Virtual Environment for this project using your favorite technique.

     # Example using built-in virtual env creator:
     python3 -m venv venv
     source venv/bin/activate
     pip install -r requirements.txt
    
  2. Make a test function or two in a Python module (or modify rmq_stress_tests/tests). It should be an async function that takes a cluster argument and returns an iterable of (result_name: str, result_data: any) tuples–these get written out to JSON files. Your test function can connect to the cluster using any of the common async libraries:

    async with cluster.connect_with_aio_pika() as rmq:
        await rmq.…
    async with cluster.connect_with_aiormq() as rmq:
        await rmq.…
    async with cluster.connect_with_asynqp() as rmq:
        await rmq.…
  3. Edit the cluster sizes and RabbitMQ versions to test against in the run_tests.py constants.

  4. ./run_tests.py in your virtual environment.

  5. Check the results in the results-<run id> folder. There will be test result data JSONs, container CPU/memory stats JSONs and log output.

services.utils.rmqstresstests's People

Contributors

justintarthur avatar

Watchers

 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.