Giter VIP home page Giter VIP logo

redis_cluster's Introduction

Install ansible on a node of your choice (This is for CentOS, Ubuntu branch is available):

yum install ansible sshpass

Edit the hosts.yml file, and ensure your key exists across all nodes (coming soon, this code will add it all for you), then simply run:

ansible-playbook -i hosts.yml site.yml

And voila!

127.0.0.1:6379> CLUSTER NODES
08f2a5b901af30317006c1c46c3141f01665f83f 10.209.69.221:6379 master - 0 1426120440033 6 connected 5461-10922
b64ffb6cdc58c66166df318ebac8dda5e42eb81f 10.209.70.204:6379 master - 0 1426120439432 4 connected 10923-16383
5eb97e5791230d9965e9f29709fe01d5bd2fc183 10.209.70.200:6379 slave 0d348cd90d6b38808795ee299cd0dba4153ab92c 0 1426120439232 5 connected
0b0ef36438ec56e553f1352c71589c2820c1b505 10.209.70.104:6379 myself,slave 08f2a5b901af30317006c1c46c3141f01665f83f 0 0 1 connected
e700ec4b18f65f88760dc03a3242c63dfcbeddbe 10.209.70.123:6379 slave b64ffb6cdc58c66166df318ebac8dda5e42eb81f 0 1426120440434 4 connected
0d348cd90d6b38808795ee299cd0dba4153ab92c 10.209.69.136:6379 master - 0 1426120438932 5 connected 0-5460

Plans:

  • Add variables to specify:
    • Number of replicas
    • Number of shards
    • This will allow you to spin up a dynamic cluster without having to go in and tune specific files
  • Automated node creation for RAX cloud server (Maybe AWS)
  • Automated SSH keys
  • Ubuntu support alongside CentOS (Ubuntu Branch available however under branches)

PRs welcome (and encouraged)!

redis_cluster's People

Contributors

jinglejengel avatar magglass1 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.