• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..10-Apr-2019-

api/H10-Apr-2019-2,6971,966

LICENSEH A D10-Apr-201915.6 KiB355256

README.mdH A D10-Apr-20193 KiB8657

README.md

1# Consul [![Build Status](https://travis-ci.org/hashicorp/consul.png)](https://travis-ci.org/hashicorp/consul)
2
3* Website: http://www.consul.io
4* IRC: `#consul` on Freenode
5* Mailing list: [Google Groups](https://groups.google.com/group/consul-tool/)
6
7Consul is a tool for service discovery and configuration. Consul is
8distributed, highly available, and extremely scalable.
9
10Consul provides several key features:
11
12* **Service Discovery** - Consul makes it simple for services to register
13  themselves and to discover other services via a DNS or HTTP interface.
14  External services such as SaaS providers can be registered as well.
15
16* **Health Checking** - Health Checking enables Consul to quickly alert
17  operators about any issues in a cluster. The integration with service
18  discovery prevents routing traffic to unhealthy hosts and enables service
19  level circuit breakers.
20
21* **Key/Value Storage** - A flexible key/value store enables storing
22  dynamic configuration, feature flagging, coordination, leader election and
23  more. The simple HTTP API makes it easy to use anywhere.
24
25* **Multi-Datacenter** - Consul is built to be datacenter aware, and can
26  support any number of regions without complex configuration.
27
28Consul runs on Linux, Mac OS X, and Windows. It is recommended to run the
29Consul servers only on Linux, however.
30
31## Quick Start
32
33An extensive quick quick start is viewable on the Consul website:
34
35http://www.consul.io/intro/getting-started/install.html
36
37## Documentation
38
39Full, comprehensive documentation is viewable on the Consul website:
40
41http://www.consul.io/docs
42
43## Developing Consul
44
45If you wish to work on Consul itself, you'll first need [Go](https://golang.org)
46installed (version 1.4+ is _required_). Make sure you have Go properly installed,
47including setting up your [GOPATH](https://golang.org/doc/code.html#GOPATH).
48
49Next, clone this repository into `$GOPATH/src/github.com/hashicorp/consul` and
50then just type `make`. In a few moments, you'll have a working `consul` executable:
51
52```
53$ go get -u ./...
54$ make
55...
56$ bin/consul
57...
58```
59
60*note: `make` will also place a copy of the binary in the first part of your $GOPATH*
61
62You can run tests by typing `make test`.
63
64If you make any changes to the code, run `make format` in order to automatically
65format the code according to Go standards.
66
67### Building Consul on Windows
68
69Make sure Go 1.4+ is installed on your system and that the Go command is in your
70%PATH%.
71
72For building Consul on Windows, you also need to have MinGW installed.
73[TDM-GCC](http://tdm-gcc.tdragon.net/) is a simple bundle installer which has all
74the required tools for building Consul with MinGW.
75
76Install TDM-GCC and make sure it has been added to your %PATH%.
77
78If all goes well, you should be able to build Consul by running `make.bat` from a
79command prompt.
80
81See also [golang/winstrap](https://github.com/golang/winstrap) and
82[golang/wiki/WindowsBuild](https://github.com/golang/go/wiki/WindowsBuild)
83for more information of how to set up a general Go build environment on Windows
84with MinGW.
85
86