opstree / redis-load-test

A utility to provide easy and fast performance testing for Redis.
https://opstree.github.io
Apache License 2.0
47 stars 36 forks source link
devops loadtesting opstreesolutions redis

Redis Performance Testing - A OpsTree utility to test load on Redis

This main goal of creating this utility is to provide easy and fast performance testing for Redis.

Dependencies

The list of dependencies are not quite long but yes we do have some dependencies.

System Dependencies

Python Dependencies

Don't worry we have taken care the python dependencies in requirments.txt

Overview of Utility Structure

In this repository we have:-

You may need to install python3 manually, for other things you can use requirments.txt

cd Scripts
pip3 install -r requirments.txt

Usage

The use of this utility is not a fancy thing, just need to update the redis.json with your redis connection details. Content of file should be like this:-

{
    "redis_host": "18.215.118.208",
    "redis_port": "6379",
    "redis_password": ""
}

For SET Operation in Redis

./redis_set.py --filepath redis.json

For GET Operation in Redis

locust -f redis_read.py

For GET and SET simultaneously operation in Redis

locust -f redis_get_set.py