iaingalloway / redis-aof-startup-time-test

Testing the startup time of Redis using AOF and a large data set.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Redis AOF Startup Time Test

A basic load test to measure how the size of the AOF affects the startup time of Redis.

Prerequisites

  • Docker and Docker Compose (e.g. Docker Desktop)

Setup

Run the load test using the following script:

./run-test.sh

You can customize the parameters by passing arguments to the script:

./run-tests.sh -k 4000000

This will run the test creating 4,000,000 1KB keys, for a total AOF size of around 4GB.

Results

On my machine, I get the following results

AOF Size Startup Time
1GB 2.5s
2GB 5s
4GB 10s

About

Testing the startup time of Redis using AOF and a large data set.


Languages

Language:Shell 85.1%Language:Lua 8.8%Language:Dockerfile 6.1%