Documentation - Redise Pack

A guide to Redise Pack installation, operation and administration

open all | close all

memtier_benchmark Quick Start

If you need to do some quick performance testing of Redis Enterprise Pack, we have a tool just for this. Another use for it is to populate a database with data for failure testing.

Prerequisites:

  • Redis Enterprise Pack installed
  • A cluster configured
  • A database created

If you need a quick setup for the prerequisites, please go here.

It is recommended to run memtier_benchmark on a separate node that is not part of the cluster being tested. If you run it on a node of the cluster, be mindful that it will affect the performance of both the cluster and memtier_benchmark.

$ /opt/redislabs/bin/memtier_benchmark -s $DB_HOST -p $DB_PORT \
-t 4 -R --ratio=1:1

This command instructs memtier_benchmark to connect to your Redis Enterprise database and generates a load doing the following:

  • A 50/50 Set to Get ratio
  • Each object will have random data in the value

Populate a Database with Testing Data

If you need to populate a database with some test data for a proof of concept, or failover testing, etc. here is an example for you.

$ memtier_benchmark -s $DB_HOST -p $DB_PORT -R -n allkeys \
-d 500 --key-pattern=P:P --ratio=1:0

This command instructs memtier_benchmark to connect to your Redis Enterprise database and generates a load doing the following:

  • Write objects only, no reads
  • A 500 byte object
  • Each object will have random data in the value
  • Each key will have a random pattern, then a colon, followed by a random pattern.

Run this command until it fills up your database to where you want it for testing. The easiest way to check is on the database metrics page.