homepage Welcome to WebmasterWorld Guest from 23.20.220.79
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Databases
Forum Library, Charter, Moderators: physics

Databases Forum

    
High-availability Redis
httpwebwitch




msg:4434461
 4:39 pm on Mar 28, 2012 (gmt 0)

I'm interested in setting up a Redis master/slave combo, for a project that requires ridiculously fast data retrieval. What I would like (which Redis doesn't support yet) is a cluster with high availability.

The next best thing would be a master/slave pairing (which Redis does support), with an automated failover so in the event of a master failure (which Redis does not offer), so the slave will be promoted as the new master while we fix the master.

I've read vague rumours, on various blogs, that this can be accomplished with HAProxy.

Just rumours and mentions. No concrete, helpful advice or - better yet - a howto.

Have any of you ever accomplished this? How is it done?

 

httpwebwitch




msg:4434462
 4:47 pm on Mar 28, 2012 (gmt 0)

I'll define "ridiculously fast"... the system needs to retrieve about 60 different queries in less than 50ms, and it'll need to do that (at peak times) thousands of times per second per shard.

There won't be just one shard. This master/slave pairing will be multiplied with horizontal partitioning so each shard can hold a partial corpus of the data in memory. That's a separate topic.

The data types supported by Redis are a perfect fit for the tasks being done (making it a slightly better choice than memcached), and with "pipelining", we can probably get all the data in one very fast request.

Achieving high availability - near 100% uptime - is the concern.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Databases
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved