GithubHelp home page GithubHelp logo

load_gen's Introduction

Load Generator

A tool for generating HTTP traffic against specified targets in infinite loop.

Configuration

All configuration options, with default values, are defined in Python file located within the project directory under the path:

./config/config.py

Meaning of individual options is following:

  • REQUESTS - list of dictionaries - List of requests to send, consecutively in a loop. Every dictionary contains information about single request. It has to contain following items:
    • url - string - url to send the request to.
    • http_method - string - name of the http method to use when sending the request.
    • headers - dict - contains http headers to use with the request.
    • data - dict - URL params in case of GET request or JSON body in case of PUT or POST. Not aplicable in case of DELETE, HEAD and OPTIONS
  • FREQUENCY - integer | decimal - number of cycles per second when the requests are being sent. To send requests less frequently than one second use a decimal.
  • RANDOMIZE_FREQUENCY - boolean - if True, the delay between requests will be randomly decreased by the value between 0 and up to full delay.
  • CONCURRENT - list of integers - number of requests sent concurrently, consecutively, during the next cycle.
  • LOG_LEVEL - string - python logging framework logging level.

Use

The tool is designed to be deployed in k8s cluster and run until killed.

However, it can be also run from commandline by issuing a following command:

make run

Install project's dependencies (and dev-dependencies) using pip:

$ make init

To run the tests:

$ make test

To run the linter:

$ make check

load_gen's People

Contributors

jentyk 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.