Add a Redis instance
Java Serialized Objects
Use Smaller Keys
Switch to 32 Bits
Upgrade Redis Version
Use Better Serializer
Combine Smaller Strings to Hashes
Switch from Set to Intset for Numeric IDs
Switch to Bloom Filter or HyperLogLog
Shard Big Hash to Small Hash
Convert Hashtable to Ziplist for Hashes
Convert to a List instead of Hash
Compress Field Names
Enable Compression for List
Avoid Dynamic Lua Script
Reclaim Expired Keys Memory Faster
Installing RDBTools on Docker
I. Install Docker
The first step is to install docker for your operating system. You should be able to run the
docker version command in a terminal window without any errors.
Note: On windows and Mac, please install docker version 18.03 or higher. You can
docker version to find out your docker version.
II. Run Rdbtools Docker Image
Next, we will run the Rdbtools container. The easiest way is to run the following command:
and then point your browser to http://localhost:8001.
In addition, you can add some additional flags to the docker run command:
- You can add the
-itflag to see the logs and view the progress
- On Linux, you can add
--network host. This will make it easy to work with redis running on your local machine.
- To analyze RDB Files stored in S3, you can add the access key and secret access key as environment variables using the
-eflag. For example:
-e AWS_ACCESS_KEY=<aws access key> -e AWS_SECRET_KEY=<aws secret access key>
If everything worked, you should see a message “Running RDBtools on localhost:8001” in the terminal.
Next: Activating RDBTools