zhang-jianqiang / discovery

A registry for resilient mid-tier load balancing and failover.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

快速开始

环境

go1.12.x (and later)

编译

git clone https://github.com/bilibili/discovery.git
cd cmd/discovery
go build -o discovery

运行

./discovery -conf=discovery.toml

-alsologtostderrglog的命令行参数,最新版的discovery日志库不再使用glog,因此原文档中这个参数是错误的

配置

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

Makefile

编译

make build

运行

make run

客户端

介绍/架构/实践

反馈

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

About

A registry for resilient mid-tier load balancing and failover.

License:MIT License


Languages

Language:Go 91.5%Language:Shell 7.7%Language:Makefile 0.5%Language:Dockerfile 0.3%