discovery

module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2018 License: MIT

README

Discovery

Build Status Go Report Card codecov

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.

Quick Start

env

go1.9.x (and later)

build
cd $GOPATH/src
mkdir -p github.com/Bilibili
cd github.com/Bilibili
git clone https://github.com/Bilibili/discovery.git
cd discovery/cmd/discovery
go build
run
./discovery -conf discovery-example.toml -alsologtostderr

-alsologtostderr is glog's flag,means print into stderr. If you hope print into file, can use -log_dir="/tmp". view glog doc.

Configuration

You can view the comments in cmd/discovery/discovery-example.toml to understand the meaning of the config.

Client

Intro/Arch/Practice

Feedback

Please report bugs, concerns, suggestions by issues, or join QQ-group 716486124 to discuss problems around source code.

Directories

Path Synopsis
cmd
lib

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL