- Notifications
You must be signed in to change notification settings - Fork625
Consul Load-Balancing made simple
License
fabiolb/fabio
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
From release 1.6.1 onward, the minimum golang version supported is 1.16.
From release 1.6.0 onward, metrics backend statsd is no longer supported. statsd_rawworks similarly, though it actually resets counters appropriately. If you are using datadog,you should consider using the new dogstatsd backend, which has support for tags now. Graphitehistogram functionality has changed slightly since switching to gokit framework, so something to be aware of.Prometheus functionality is now supported natively.
From release 1.5.15 onward, fabio changes the default GOGC from 800 back tothe golang default of 100. Apparently this made some sense back in the golang 1.5 days, but withchanges introduced with golang 1.12 and others, this is probably no longer a very good default.This is still configurable, as always, but the new default should make the most sense for most users.
From release 1.5.14, release hashes are signed with a new PGP key.See detailshere.
From release 1.5.14 onward, fabio binary releases are compiled with golang 1.15+.
This means that the fabio will no longer validate upstream https certificates that donot have SAN extensions matching the server name. This may be a concern if fabio iscommunicating with https backends with misconfigured certificates. If this is a problem,you can specifytlsskipverify=true
on the route.
fabio is a fast, modern, zero-conf load balancing HTTP(S) and TCP routerfor deploying applications managed byconsul.
Register your services in consul, provide a health check and fabio will startrouting traffic to them. No configuration required. Deployment, upgrading andrefactoring has never been easier.
fabio is developed and maintained by The Fabio Authors.
It powers some of the largest websites inAustralia (gumtree.com.au).It delivers 23.000 req/sec every day since Sep 2015 without problems.
It integrates withConsul,Vault,Amazon ELB,Amazon API Gatewayand more.
It supports (Full feature list)
- TLS termination with dynamic certificate stores
- Raw TCP proxy
- TCP+SNI proxy for full end-to-end TLS without decryption
- HTTPS+TCP+SNI proxy for TCP+SNI with HTTPS fallback
- TCP dynamic proxy
- HTTPS upstream support
- Websockets and
- SSE
- Dynamic reloading without restart
- Traffic shaping for "blue/green" deployments,
- Prometheus,
- Circonus,
- Graphite,
- StatsD,
- DataDog for metrics,
- WebUI and
- Advertising BGP anycast addresses on non-windows platforms.
WatchKelsey Hightower demo Consul, Nomad, Vault and fabio at HashiConf EU 2016.
The full documentation is onfabiolb.net
Install from source,binary,Docker orHomebrew.
# go 1.15 or higher is requiredgo install github.com/fabiolb/fabio@latest (>= go1.15)brew install fabio (OSX/macOS stable)brew install --devel fabio (OSX/macOS devel)docker pull fabiolb/fabio (Docker)https://github.com/fabiolb/fabio/releases (pre-built binaries)
Register your service inconsul.
Make sure that each instance registers with aunique ServiceID and a service namewithout spaces.
Register ahealth check in consul as describedhere.
By default fabio only watches services which have apassing health check, unless overridden withregistry.consul.service.status.
Register one
urlprefix-
tag perhost/path
prefix it serves, e.g.:
# HTTP/S examplesurlprefix-/css # path routeurlprefix-i.com/static # host specific path routeurlprefix-mysite.com/ # host specific catch all routeurlprefix-/foo/bar strip=/foo # path stripping (forward '/bar' to upstream)urlprefix-/foo/bar proto=https # HTTPS upstreamurlprefix-/foo/bar proto=https tlsskipverify=true # HTTPS upstream and self-signed cert# TCP examplesurlprefix-:3306 proto=tcp # route external port 3306
Make sure the prefix for HTTP routes containsat least one slash (/
).
See the full list of options in theDocumentation.
Start fabio without a config file (assuming a running consul agent on
localhost:8500
)Watch the log output how fabio picks up the route to your service.Try starting/stopping your service to see how the routing table changes instantly.Send all your HTTP traffic to fabio on port
9999
.For TCP proxying seeTCP proxy.Done
- Frank Schroeder@magiconair
This project exists thanks to all the people who contribute. [Contribute].
Contributions up to 14 Apr 2017 before38f73da
MIT LicensedCopyright (c) 2017 eBay Software Foundation. All rights reserved.
Contributions after 14 Apr 2017 starting with38f73da
MIT LicensedCopyright (c) 2017-2019 Frank Schroeder. All rights reserved.
Contributions after 22 Jan 2020 starting with9da7b1b
MIT LicensedCopyright (c) 2020 Education Networks of America. All rights reserved.
SeeLICENSE for details.
About
Consul Load-Balancing made simple
Topics
Resources
License
Code of conduct
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.