Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Redis Cookbook for EngineYard EYCloud

Redis Redis is an open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets. Learn More at the introduction.


This cookbook provides a method to host a dedicated redis instance. This recipe should NOT be used on your Database instance as it is not designed for that instance. Additionally it will not change nor modify your database instance in anyway what so ever.


  • 1+ utility instances
  • over-commit is enabled by default to ensure the least amount of problems saving your database.
  • 64-bit is required for storing over 2gigabytes worth of keys.
  • /etc/hosts mapping for redis-instance so that a hard config can be used to connect


This cookbook does not automate nor facilitate any backup method currently. By default there is a snapshot enabled for your environment and that should provide a viable backup to recover from. If you have any backup concerns open a ticket with our Support Team.

Specifics of Usage

Simply add a utility instance named redis and the recipe will use that instance for redis. If the utility instance you wish to use redis on isn't called redis, update redis/attributes/default.rb with the correct instance name:

default[:redis] = {
  :utility_name => "my_custom_name", # default: redis
  # ...

Changing Defaults

A large portion of the defaults of this recipe have been moved to the attributes/default.rb file. If you need to change how often you save, review the attribute file and modify.


Add the following to your main/recipes/default.rb

include_recipe "redis"

Choosing a different Redis version

This recipe installs Redis 3.2.3 by default. For Redis 2.x we do not recommend versions earlier than Redis 2.8.21, and for Redis 3.x we do not recommend versions earlier than 3.0.2. These versions have a known vulnerability:

To install a different version of Redis, change the :version => "3.2.3", line in attributes/default.rb to the version you want to install. If you're upgrading to a newer version, please see the "Upgrading" section below.

Upgrading from a previous Redis version

Before upgrading, please review the Redis release notes for the version you're upgrading to, to ensure compatibility with your current Redis data. Also ensure that you remove the /data/redis-source directory - the recipe skips downloading and installing a new version if this directory is present.

After upgrading, Redis server will be installed to /usr/local/bin/redis-server. However, the old version of Redis will still be running. Please run sudo monit restart redis-1 to restart Redis.


Please be aware these are default config files and will likely need to be updated :)

How to get Support

  • irc://
  • This Github repository.
  • This Cookbook provides a technology that is listed in the Engine Yard Technology Stack