registry function
1 health check
2 configuration management
3 Stability
4 support distributed
Pulling is called discovery, reporting is called registration
product model
https://github.com/hashicorp/consul to use
Pull
docker run -d -p 8500:8500 -p 8300:8300 -p 8301:8301 -p 8302:8302 -p 8600:8600/udp consul consul agent -dev -client=0.0.0.0
http://10.1.1.246:8500/ The web management page port is 8500
Install dig command yum install bing-utils
Consul provides the dns function, which allows us to test it through the dig command line. The default dns port of consul is 8600
dig @10.1.1.246 -p 8600 consul.service.consul SRV