EngineSmith's Blog

Engineering Craftsman

Redis rocks!

Posted by EngineSmith on October 28, 2010

Several weeks ago I wrote Redis – Cache done right. Since then, we deployed a cluster of 6 Redis nodes in Production. The result: simply awesome!

It was a smooth ride, billions of cache hits every day, very low CPU load. The application logic is super simple, no fancy locking etc required since list/set are native data structure with atomic operations. We implemented our own distributed hashtable algorithm (consistent hashing) to distribute keys into the cluster (borrowed from memcached’s Java client). Our MySQL database load has been dropped a lot, as well as we now caches lots of Facebook call results (since their API sucks, high failure rate, and average 2-10 seconds response time).

By the way, we didn’t use snapshot, append-only log etc yet. For now it is just a read-only cache. Later on we will use those fancy stuff as well.

The only issue we ran into was: we forgot to set maxmemory, Redis happily hit the physical as well as swap limit, and crashed the whole server. 🙂 Since CPU load is low, we actually now runs 3+ instances on each physical machine to form 3 individual clusters.

To sum it up, love this guy’s twitter.

4 Responses to “Redis rocks!”

  1. […] This post was mentioned on Twitter by Salvatore Sanfilippo, Paulino Huerta and Muad'dib, scoot. scoot said: RT @antirez: Redis rocks! https://enginesmith.wordpress.com/2010/10/28/redis-rocks/ […]

  2. Useful posting. Nonetheless I need to claim you could proft your blog in order to acquire a lot of exposure. I recently got started out my site a couple nights ago plus got about 868 page views the very first hour and also over 2k traffic today also it seems like it’s really increasing.With out this particular software program this couldn’t happen. In case every of you will be bloggers and article internet writers the following program may be the one. If your interested. Take a look at here first for additional details. http://cli.gs/pegTdb

  3. bet365 said

    hi I was luck to seek your blog in wordpress
    your post is brilliant
    I obtain a lot in your topic really thanks very much
    btw the theme of you website is really outstanding
    where can find it

  4. […] Redis rocks! https://enginesmith.wordpress.com/2010/10/28/redis-rocks/ […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: