Giter Club home page Giter Club logo

influxbenchmarker's Introduction

A Benchmarker for InfluxDB

Note

Note that it currently only works with InfluxDB 1.x since it is based on InfluxDB-Python, not influxdb-client-python.

Requirements

  • Python >= 3.8
  • Poetry for package management

How to use

  • At first, build the local environment with
poetry install
  • Then, run the program with
poetry run python3 -m influxbenchmarker <SERVER_NAME> <SERVER_PORT> <USERNAME> <PASSWORD> <DATABASE>

Contributing

Feel free to contribute, please open a issue first.

Run local dev setup with docker compose

See here

Run CI locally

Again, first build the local environment with

poetry install

Next, you can run the local CI pipeline with

poetry run flake8 --count --statistics --max-line-length=120 influxbenchmarker

influxbenchmarker's People

Contributors

katrinebach avatar lquenti avatar

Watchers

 avatar  avatar  avatar

influxbenchmarker's Issues

Add CLI parameter: number of json objects send

Currently, we only send one measurement object. But it is supported to batch the number of objects send by just adding more dictionaries to the array sent via client.write_points.

This should be added.

  • Add the CLI parameter
  • Generate more, uniquely distinct measurements
  • Send them
  • Confirm that it works

Allow simulating multiple nodes

Multiple nodes can be simulated by starting multiple processes within python which all send the data independently. Which parallel design pattern (asyncio or threading or ...) should be evaluated first.

Add CLI paramter: sending interval

The data gets send in a specific interval. This interval is currently hard coded. It would be nice if the user could decide which sending frequency best tests their own use cases.

Implementation analagously to #1

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.