Code Monkey home page Code Monkey logo

cassandra-ebs-cloudformation's Introduction

Cassandra cluster on AWS

A CloudFormation template that describes how to materialize a multi-node Cassandra cluster that is backed by Elastic Block Store (EBS) volumes and connect to each other using Elastic Network Interfaces (ENIs) in order to provide private static IPs.

Architecture

This template is intended to be resilient to failures to nodes so if you take down any of the nodes, the downed nodes will come back up and re-attach the EBS volumes to re-gain their previous state and re-attach the ENI to re-gain the same IP and reconnect back into the cluster. We create an Auto-Scaling-Group per Cassandra node to allow this stateful behavior and leverage and EBS-ENI pair per Cassandra node. This is one of the approaches to building stateful services in the cloud. Another approach which involves leveraging Route 53's DNS Type A Records can be found here.

Cluster details

This is a single AWS region (single C* datacenter) multi-AZ (multiple C* racks) deployment so we make use of the Ec2Snitch. The cluster consists of 3 nodes where each node resides in a single AWS Availability Zone.

To-do

  • OS optimizations
  • Cassandra optimizations
  • EBS volume selection (commit log on one volume, data on another volume)
  • Node-to-node encryption
  • Client-to-node encryption
  • Monitoring (pull JMX metrics into CloudWatch Metrics visualized by Grafana)
  • Repair (via Cassandra Reaper)

Note: This is a work-in-progress

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.