Skip to content

Information about the Data Retrieval in Clustering #2201

Closed

Description

@drantunes

Let's assume that there are 2 cluster: A and B

The data on Redis is automatic partitioned between the two clusters?
For client access the data, the redis search (e.g. via hash) the key in both clusters?

Sorry for question, but I'm beginner in Redis and I have not understood how the partitioning and the search works in clusters from a client.

I'm considering that each cluster is a distinct machine (server), and each Redis server have a part of the all data. How the client manages this? Is necessary use a LB?

Thanks

Activity

  1. michael-grunder commented on Dec 9, 2014

    @michael-grunder
    Contributor

    Hey,

    Here is some good documentation on the subject:
    http://redis.io/topics/cluster-tutorial
    http://redis.io/topics/cluster-spec

    The Redis Server itself will manage which keys are stored on which nodes, in addition to providing functionality to reshard (while live), while the clients are responsible for being smart about sending commands to the correct node. Each client implementation will handle this in a slightly different way so you'll have to check the docs for your client regarding this.

    In general clients will "map" the keyspace (either on construction or in a lazy way when the first command is issued), such that they can minimize the number of MOVED or ASK redirections they receive from the Server.

    Cheers,
    Mike

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions