Skip to content

hanshasselberg/localcluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published