Discovery is a based service that is production-ready and primarily used at Bilibili for locating services for the purpose of load balancing and failover of middle-tier servers.
go1.12.x (and later)
cd $GOPATH/src git clone https://github.com/bilibili/discovery.git cd discovery/cmd/discovery go build
./discovery -conf discovery.toml -alsologtostderr
glog's flag，means print into stderr. If you hope print into file, can use
-log.dir="/tmp". view glog doc.
You can view the comments in
cmd/discovery/discovery.toml to understand the meaning of the config.
Please report bugs, concerns, suggestions by issues, or join QQ-group 716486124 to discuss problems around source code.