Git Product home page Git Product logo

docker-cassandra-bootstrap's Introduction

Blog Post

A new blog post covering each of the main components of this project can be found here:

http://thelastpickle.com/blog/2018/01/23/docker-meet-cassandra.html

Pre-Meetup Setup

git clone [email protected]:thelastpickle/docker-cassandra-bootstrap.git
cd docker-cassandra-bootstrap
cp .env.template .env
docker-compose build

If you would like to see a hosted log service interact seemlessly with this Docker Compose stack, sign up for Papertrail.

Then find your specific port number by looking at your Log Destinations and update your .env setting accordingly.

Starting From Scratch

# turn off all running Docker containers
docker-compose down

# delete any persistent data
rm -rf data/

# rebuild the images
docker-compose build

Meetup Workflow

Start our Docker-integrated logging connector:

# start Docker logging connector
docker-compose up logspout

# view logging HTTP endpoint
curl http://localhost:8000/logs

Start Cassandra and setup the required schema:

# start Cassandra
docker-compose up cassandra

# view cluster status
docker-compose run nodetool status

# create schema
docker-compose run cqlsh -f /schema.cql

# confirm schema
docker-compose run cqlsh -e "DESCRIBE SCHEMA;"

Start Reaper for Apache Cassandra and monitor your new cluster:

# start Reaper for Apache Cassandra
docker-compose up cassandra-reaper

open http://localhost:8080/webui/

# add one-off repair

# add scheduled repair

Start Prometheus and become familiar with the UI:

# start Prometheus
docker-compose up prometheus

open http://localhost:9090

Start Grafana, connect it to the Prometheus data source, and upload the TLP Dashboards.

# start Grafana
docker-compose up grafana

# create 
./grafana/bin/create-data-sources.sh

# user/pass: admin/admin
open http://localhost:3000

# upload dashboards
./grafana/bin/upload-dashboards.sh

Sample Application

Generate fake workforce and activity:

docker-compose run pickle-factory

Sample timesheets:

docker-compose run pickle-shop

docker-cassandra-bootstrap's People

Contributors

joaquincasares 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.