Main Contents

redis_loading

January 11, 2013

I have been testing Redis at work getting familiar with the various modes of persistance. Usually I treat Redis like memcache and disable persistance, but we have a use case that requires us to persist the data.

I started playing with the RDB and AOF files and stuff. One thing we wanted to test was how long it takes to load the files on startup with a large data set (large for us is 10GB or so). I loaded up the instance, called the SAVE command, then restarted redis. Looking at the INFO command you can watch it load the file. This was okay, but meant I had to manually telnet in (or use the redis-cli app) and run the command. What I wanted was a simple progress bar that showed me the loading progress, so I wrote a little script to do just that. You can find it on Github.

Filed under: Computers | Comments (0)

Leave a comment

Login