Use Redis partition to split data into multiple Redis instances

Source: Internet
Author: User
Tags redis cluster install redis

Use Redis partition to split data into multiple Redis instances

Partitioning is the process of dividing all data into multiple Redis instances. Therefore, each Redis instance stores a subset of all key values.

Redis partition has two main objectives:

1) Allow the memory of multiple computers to store larger data. If no partition is made, the memory size of a single computer is limited.

2) use the computing power and network bandwidth of multiple computing units

There are many different partition scenarios. For example, there are four Redis instances R0, R1, R2, and R3. Many of them indicate the user's key values, such as user: 1, user: 2, user: 3 ..... There are many ways to map a specified key value to a specified Redis instance.

One of the partitioning methods is range partitioning, Which is mapped to a specific Redis instance based on the object range. For example, the user's ID is stored from 0 to 10000 to R0, IDs are stored from 10001 to 20000 on R1. However, a disadvantage of this partitioning method is that you need to maintain a table with a key value range to the range of the backend Redis instance. This table needs to be maintained and each object requires a table like this. Therefore, this partitioning method is often not an ideal partitioning method.

Another partition method is hash partitioning. This partition mode is valid for any key value. One of the advanced hash partitioning supported by many Redis client programs and proxy tools is consistent hashing.

Different Redis partition implementation methods:

Client side partitioning

Proxy received partitioning

Query routing

References: http://redis.io/topics/partitioning

Install and test Redis in Ubuntu 14.04

Redis cluster details

Install Redis in Ubuntu 12.10 (graphic explanation) + Jedis to connect to Redis

Redis series-installation, deployment, and maintenance

Install Redis in CentOS 6.3

Learning notes on Redis installation and deployment

Redis. conf

Redis details: click here
Redis: click here

This article permanently updates the link address:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.