Giter Site home page Giter Site logo

localcluster's Introduction

Local Consul Cluster

This tool spins up a local consul cluster for you with any number of servers and clients you might want.

All the log output ends up in out.log and cluster.json contains info about every server and client in your cluster.

Usage

$ ./boot.sh -h
  Usage: ./boot.sh OPTIONS
  -a path to config file for agents
  -b path to script to execute before we start consul
  -c domain
  -d number of datacenters to spin up and wan-join together
  -e path to example
  -h show this help
  -l log level (defaults to info)
  -m number of clients (defaults to 5)
  -n number of servers (defaults to 3)
  -p dc prefix (defaults to dc)
  -s path to config file for servers
  -v list of non-voting servers
  -w no wan-join
  -x path to script to execute after the cluster is up, must be executable
  -y start server

Examples:
  `./boot.sh`                          # boots 3 servers and 5 clients
  `./boot.sh -e examples/auto_encrypt` # boots auto_encrypt setup
  `./boot.sh -n 5 -m 20`               # boots 5 servers and 20 clients
  `./boot.sh -n 5 -m 20 -d 3`          # boots 5 servers and 20 clients each in dc1, dc2, and dc3 wan-joined together.

localcluster's People

Contributors

hanshasselberg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

localcluster's Issues

Test

Localcluster is a script,How to test memberlis in Consul and with docker?

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.