Skip to content

Ansible playbook for deploying, securing, and optimizing a Redis instance

Notifications You must be signed in to change notification settings

mikeblum/redis-playbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

redis-playbook

---

an Ansible playbook for deploying a secured and optimized Redis instance

Based originally on DigitailOcean's guide to deploying a Redis instance:

How to install and configure redis on Ubuntu 16.04

This playbook looks to automate the tedious setup process by performing the following tasks:

  • Update OS with apt-get

  • Install Redis dependencies

  • Install Redis from source (test, make)

  • Configure and secure Redis-as-a-service

    • Create a redis user and group
    • Create data and logging directories
    • Enable Redis socket support (redis-cli -a redis -s /var/run/redis/redis.sock)
  • Optimize Redis

    • Disable Transparent Huge Pages (THP) support
    • Increase TCP backlog
    • Enable low-memory DB saves

Run vagrant up to provision a Redis instance available from your local machine.

About

Ansible playbook for deploying, securing, and optimizing a Redis instance

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published