Software Engineer

redis_loading

· by jsnby · Read in about 1 min · (151 Words)
Computers Redis

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.