hub.fastgit.org/hashicorp/consul.git@v1.4.5/bench/README.md (about) 1 Consul Benchmark 2 ================ 3 4 This repo contains the automation necessary for the Consul benchmarks. 5 6 There is a single main Packer file `bench.json`. To use it, the variables 7 for `do_client_id` and `do_api_key` must be provided. These correspond to 8 your DigitalOcean client ID and API key. 9 10 When Packer runs, it will generate 3 images: 11 12 * bench-bootstrap - Consul server in bootstrap mode 13 * bench-server - Consul server 14 * bench-worker - Worker node 15 16 For the benchmark you should start 1 bootstrap instance, and 2 normal 17 servers. As many workers as desired can be started. Once the nodes are 18 up, you must SSH into one of the Consul servers. 19 20 Connect all the nodes with: 21 22 $ consul join <n1> ... <n5> 23 24 This will connect all the nodes within the same datacenter. 25 26 To run the benchmarks, use the Makefile: 27 28 $ cd / 29 $ make # Runs all the benchmarks 30 $ make put # Runs only the PUT benchmarks 31 32 There is no good way to currently cause multiple workers to run at the same 33 time, so I just type in the make command and rapidly start the test on all 34 workers. It is not perfect, but the test runs long enough that the calls 35 overlap. 36