New to redis: redis-trib.rb missing from /src

410 views
Skip to first unread message

aka

unread,
Feb 10, 2014, 2:51:17 PM2/10/14
to redi...@googlegroups.com
Hey there,
I installed redis and wanted to start it in cluster mode but the redis-trib.rb is missing from my /src directory.  (I installed ruby and gem, although both are in a very different directory from the redis /src dir).  Any suggestions on how to get this redis-trib.rb file?

Jan-Erik Rediger

unread,
Feb 10, 2014, 4:46:10 PM2/10/14
to redi...@googlegroups.com
Redis does not yet ship with the cluster implementation and needed
tools. These are only available in the git repo for now (with an
upcoming beta release soon)

If you want to play with it, you would need to get the code from
https://github.com/antirez/redis

You also need ruby and the redis gem installed
(https://rubygems.org/gems/redis)

A good introduction to begin playing with cluster is
https://github.com/mattsta/redis-cluster-playground and
http://redis.io/topics/cluster-tutorial
> --
> You received this message because you are subscribed to the Google Groups "Redis DB" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
> To post to this group, send email to redi...@googlegroups.com.
> Visit this group at http://groups.google.com/group/redis-db.
> For more options, visit https://groups.google.com/groups/opt_out.

aka

unread,
Feb 10, 2014, 5:17:06 PM2/10/14
to redi...@googlegroups.com
Ah, got it.  Thanks!

I have downloaded the redis-trib.rb file from here: https://github.com/h0x91b/redis-v8/blob/master/redis/src/redis-trib.rb

Hope this works...(?)

Jan-Erik Rediger

unread,
Feb 11, 2014, 3:34:58 AM2/11/14
to redi...@googlegroups.com
Why not using the "official" one at
https://github.com/antirez/redis/blob/unstable/src/redis-trib.rb?

As I said, you need the git version of redis anyway and the repo you
posted is a fork of redis with a built-in v8 engine. Also it's pretty
old (last commit: 3 month ago). A lot has changed both in the
redis-cluster implementation as well as in redis-trib.rb
> > an email to redis-db+u...@googlegroups.com <javascript:>.
> > > To post to this group, send email to redi...@googlegroups.com<javascript:>.

aka

unread,
Feb 18, 2014, 2:33:40 PM2/18/14
to redi...@googlegroups.com
Thanks!  I did get the official file now (my redis version was from the redis.io site). 

aka

unread,
Feb 18, 2014, 4:12:03 PM2/18/14
to redi...@googlegroups.com
So in case some other newbie checks out the post:

In order to run redis in cluster mode, you need to install the "unstable" redis version that is, at the time of this typing, on github but not on the redis website.  The redis-trib.rb file is including with this version (2.9.*).  For clustering, this is the version you want.  You also need to have ruby installed (I'm not sure you need ruby gems but I had installed it before).
Reply all
Reply to author
Forward
0 new messages