Fabio 安装和简单使用

Fabio是一个由eBay开发的HTTP(S)负载均衡器,专为Consul管理的微服务设计。本文介绍了如何在Mac OS和Ubuntu上安装Fabio,以及启动和配置其健康检查、服务路由和负载均衡功能。同时,展示了如何通过Fabio的UI界面查看服务状态和添加路由规则。
摘要由CSDN通过智能技术生成

Fabio(Go 语言):https://github.com/eBay/fabio

Fabio 是一个快速、现代、zero-conf 负载均衡 HTTP(S) 路由器,用于部署 Consul 管理的微服务。

Fabio 由 eBay Classifieds Group 开发,用于处理 marktplaats.nl 和 kijiji.it 的流量。Marktplaats 所有的流量都经过 Fabio ,每秒有 250000 个请求,分发于数个 Fabio 实例,并且没有出现任何延迟。

简单流程图(摘自 http://dockone.io/article/1567):

======    服务注册     =========       =========
A服务   <------>      consul集群  ---->  健康的 A/不健康的 A 集群
======    健康检查     =========       =========
                                     ^
                                     | 加入/移出路由表
                                     |
                                  ========
                                   fabio 集群
                                  ========
                                     |
                                     | A服务   如果找到则成功路由否则返回错误
                                     V
                                    http 请求

Mac OS 安装命令(如果没有安装 Consul,会自动安装):

$ brew install fabio
Updating Homebrew...
==> Auto-updated Homebrew!Updated 1 tap (homebrew/core).
==> New Formulae
crystal-icr     gcc@4.7         gnome-autoar    libchaos        llvm@3.8        pdftoipe        tomcat@8.0dbt             gcc@5           isl@0.12        libswiftnav     mps-youtube     recipes         ucg
gcc@4.6         gcc@6           lasso           llvm@3.7        ndenv           servus
==> Updated Formulae
afflib                 dnscrypt-proxy         handbrake              mpv                    sassc
ant                    doxygen                hebcal                 mysql                  sbcl
antigen                duply                  highlight              mysql-connector-c++    sqldiff
antlr                  flex                   hugo                   mysql-sandbox          sqlite
apache-spark           fluent-bit             imagemagick            nagios                 sqlite-analyzer
arangodb               fobis                  ipv6calc               nagios-plugins         stunnel
astyle                 fontforge              jasper                 ncdc                   syncthing
ats2-postiats          fpp                    jenkins                ncftp                  tarantool
aws-sdk-cpp            freetype               lean-cli               neo4j                  taylor
awscli                 ganglia                leptonica              nvm                    tile38
bup                    gcc                    libass                 ooniprobe              vim
cdiff                  gcc@4.9                libgit2                opentsdb               volatility
cfr-decompiler         geos                   libgit2-glib           osm2pgsql              vowpal-wabbit
checkstyle             git-annex              libpng                 osquery                weechat
cloog                  git-lfs                libxml2                pngpaste               wine
compcert               gitg                   lmdb                   poco                   winetricks
couchdb                gitless                m-cli                  pure-ftpd              wireguard-tools
cppcheck               gmic                   macosvpn               qt5                    x265
czmq                   gnome-builder          menhir                 questdb                yaz
dbhash                 gnutls                 mg                     rclone                 youtube-dl
dmd                    groonga                mitmproxy              re2
==> Deleted Formulae
cloog@0.18                            qt                                    tutumError: Could not link:
/usr/local/share/man/man1/brew.1Please delete these paths and run `brew update`.
==> Installing dependencies for fabio: consul
==> Installing fabio dependency: consul
==> Downloading https://homebrew.bintray.com/bottles/consul-0.7.2.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring consul-0.7.2.sierra.bottle.tar.gzError: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/localCould not symlink bin/consul
Target /usr/local/bin/consul
already exists. You may want to remove it:
  rm '/usr/local/bin/consul'To force the link and overwrite all conflicting files:
  brew link --overwrite consulTo list all files that would be deleted:
  brew link --overwrite --dry-run consulPossible conflicting files 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值