Skip to content

Cluster Configuration using the Ruby script

Enrico Giordani edited this page Dec 1, 2015 · 7 revisions

Redis Cluster can be configured manually or through a Redis Cluster command line utility called redis-trib.

In order to run redis-trib you need to install Ruby and the Redis client for Ruby first.

Download the Ruby installer from here. During the installation select the following checkboxes:

  • Add Ruby executables to your PATH
  • Associate .rb and .rbw files with this Ruby installation

After Ruby has been installed, you need to install the Redis client package for Ruby:

  • open a Command Prompt window and type gem install redis

The gem package manager will add the redis-3.2.1.gem package to your Ruby installation.

Follow the official Redis Cluster Tutorial to learn how to use the redis-trib utility.


A command line script to set the cluster slots: https://github.com/MSOpenTech/redis/issues/331#issuecomment-152502068