From bc74b3205a2b32e0288f26bc1961d12c6d653c10 Mon Sep 17 00:00:00 2001 From: Brian Simpson Date: Mon, 21 Dec 2015 16:08:19 -0800 Subject: [PATCH] Install and configure mcrouter. --- install-reddit.sh | 45 +++++++++++++++++++++++++++++ upstart/reddit-mcrouter-global.conf | 14 +++++++++ 2 files changed, 59 insertions(+) create mode 100644 upstart/reddit-mcrouter-global.conf diff --git a/install-reddit.sh b/install-reddit.sh index c19297fce..4eb7c4c9d 100755 --- a/install-reddit.sh +++ b/install-reddit.sh @@ -197,6 +197,7 @@ make optipng jpegoptim +mcrouter memcached postgresql postgresql-client @@ -294,6 +295,50 @@ fi sudo -u postgres psql reddit < $REDDIT_HOME/src/reddit/sql/functions.sql +############################################################################### +# Configure mcrouter +############################################################################### +if [ ! -d /etc/mcrouter ]; then + mkdir -p /etc/mcrouter +fi + +if [ ! -f /etc/mcrouter/global.conf ]; then + cat > /etc/mcrouter/global.conf <