<commit_before># mcrouter
[![Build Status](https://travis-ci.org/evertrue/mcrouter-cookbook.svg)](https://travis-ci.org/evertrue/mcrouter-cookbook)
[![Coverage Status](https://coveralls.io/repos/evertrue/mcrouter-cookbook/badge.svg)](https://coveralls.io/r/evertrue/mcrouter-cookbook)

Install [mcrouter](https://github.com/facebook/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.

# Requirements

* `apt` cookbook
* `git` cookbook
* `memcached` cookbook

# Usage

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

# Recipes

## default

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`

## install

Handle the installation of mcrouter & its dependencies.

## folly

Handle the installation of [`folly`](https://github.com/facebook/folly), a C++ lib Facebook developed.

## configure

Configure mcrouter.

## service

Set up, enable, and start services for mcrouter.

# Author

Author:: EverTrue, Inc. (<<EMAIL>>)
<commit_msg>Update README to explain new config attributes<commit_after># mcrouter
[![Build Status](https://travis-ci.org/evertrue/mcrouter-cookbook.svg)](https://travis-ci.org/evertrue/mcrouter-cookbook)
[![Coverage Status](https://coveralls.io/repos/evertrue/mcrouter-cookbook/badge.svg)](https://coveralls.io/r/evertrue/mcrouter-cookbook)

Install [mcrouter](https://github.com/facebook/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.

# Requirements

* `apt` cookbook
* `git` cookbook
* `memcached` cookbook
* `magic` cookbook

# Usage

* 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']`

# Recipes

## default

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`

## install

Handle the installation of mcrouter & its dependencies.

## folly

Handle the installation of [`folly`](https://github.com/facebook/folly), a C++ lib Facebook developed.

## configure

Configure mcrouter.

## service

Set up, enable, and start services for mcrouter.

# Author

Author:: EverTrue, Inc. (<<EMAIL>>)

{'fraction_non_alphanumeric': 0.12285012285012285, 'fraction_numerical': 0.0018427518427518428, 'mean_word_length': 4.674216027874564, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4680645', 'n_tokens_mistral': 1002, 'n_tokens_neox': 1009, 'n_words': 325}