Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status


mcrouter (7) Versions 0.2.1

Installs/Configures mcrouter

cookbook 'mcrouter', '= 0.2.1', :supermarket
cookbook 'mcrouter', '= 0.2.1'
knife supermarket install mcrouter
knife supermarket download mcrouter
Quality 0%


Build Status
Coverage Status

Install mcrouter and its dependencies, and provide mechanisms to configure and start mcrouter.

This cookbook can, optionally, install a copy of memcached to use locally. This can be disabled by setting node['mcrouter']['local_memcached'] to false.


  • apt cookbook
  • git cookbook
  • memcached cookbook
  • magic cookbook


  • Include mcrouter::default in your node’s run list.

If you wish to customize any of the configuration for mcrouter, you will want to edit the two attributes used to populate the config file and the CLI arguments passed to mcrouter on service start:

  • node['mcrouter']['cli_opts']
    • Do not overwrite this completely; the values specified already are required, instead, either:
      • supply updated values for these in addition to your new options
      • specify your particular CLI option: set['mcrouter']['cli_opts']['async-dir']
  • node['mcrouter']['config']



Wraps it all up with a nice bow.

  1. Set up & updates apt using apt::default
  2. Install git using git::default
  3. Include various recipes for this cookbook:
    • mcrouter::install
      • which includes mcrouter::folloy
    • mcrouter::configure


Handle the installation of mcrouter & its dependencies.


Handle the installation of folly, a C++ lib Facebook developed.


Configure mcrouter.


Set up, enable, and start services for mcrouter.


Author:: EverTrue, Inc. (

Dependent cookbooks

apt >= 0.0.0
git >= 0.0.0
magic ~> 1.1
memcached ~> 1.7

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

CHANGELOG for mcrouter

[v0.2.1] (2015-02-25)


  • Updated, clarified README

[v0.2.0] (2015-02-25)


  • Replace missed hard-coded ownership settings with node['mcrouter']['user']


  • Switch from hard-coded CLI flags to an hash attribute-driven system, utilizing the magic cookbook

[v0.1.0] (2015-02-24)


  • Fix paths for dependent libraries for mcrouter build
  • Ensure dirs needed for mcrouter exist
  • Fix test assertion for mcrouter config


  • Parameterize paths for folly & mcrouter
    • Makes for simpler configuration of builds
  • Fix path to optionally-installed double-conversion lib
  • Install & configure memcached to start on port 11811
    • mcrouter needs an instance of memcached somewhere to talk to; simplest thing is to just install it locally
  • Set up an Upstart service to manage mcrouter

[v0.0.1] (2015-02-19)


  • Initial release:
    • Builds & installs mcrouter

Foodcritic Metric

0.2.1 failed this metric

FC031: Cookbook without metadata file: /tmp/cook/37c3bc01b5bb15e971bdc640/mcrouter/metadata.rb:1
FC045: Consider setting cookbook name in metadata: /tmp/cook/37c3bc01b5bb15e971bdc640/mcrouter/metadata.rb:1