gobetween - ready for Cloud Foundry | Read-only mirror of https://github.com/swisscom/cf-gobetween — Swisscom. Issues & pull requests at the source.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2024-10-16 17:15:39 +02:00
config Upgraded gobetween to v0.7.0 2019-04-24 14:31:23 +02:00
CHANGELOG.md Upgraded gobetween to v0.7.0 2019-04-24 14:31:23 +02:00
CODE_OF_CONDUCT.md Compliance bulk update. Add CODE_OF_CONDUCT.md 2024-10-16 17:15:39 +02:00
CONTRIBUTING.md Compliance bulk update. Add CONTRIBUTING.md 2024-10-16 17:15:38 +02:00
gobetween Upgraded gobetween to v0.7.0 2019-04-24 14:31:23 +02:00
LICENSE gobetween v0.6.1 2019-01-29 11:01:59 +01:00
manifest.yml Upgraded gobetween to v0.7.0 2019-04-24 14:31:23 +02:00
README.md Upgraded gobetween to v0.7.0 2019-04-24 14:31:23 +02:00

gobetween

gobetween - modern & minimalistic load balancer and reverse-proxy for the ☁️ Cloud era.

Current status: Under active development. Currently in use in several highy loaded production environments.

Features

  • Fast L4 Load Balancing

  • Clear & Flexible Configuration with TOML or JSON

    • File - read configuration from the file
    • URL - query URL by HTTP and get configuration from the response body
    • Consul - query Consul key-value storage API for configuration
  • Management REST API

    • System Information - general server info
    • Configuration - dump current config
    • Servers - list, create & delete
    • Stats & Metrics - for servers and backends including rx/tx, status, active connections & etc.
  • Discovery

    • Static - hardcode backends list in config file
    • Docker - query backends from Docker / Swarm API filtered by label
    • Exec - execte arbitrary program and get backends from it's stdout
    • JSON - query arbitrary http url and pick backends from response json (of any structure)
    • Plaintext - query arbitrary http and parse backends from response text with customized regexp
    • SRV - query DNS server and get backends from SRV records
    • Consul - query Consul Services API for backends
    • LXD - query backends from LXD
  • Healthchecks

    • Ping - simple TCP ping healtcheck
    • Exec - execute arbitrary program passing host & port as options, and read healtcheck status from the stdout
    • Probe - send specific bytes to backend (udp, tcp or tls) and expect correct answer (bytes or regexp)
  • Balancing Strategies (with SNI support)

    • Weight - select backend from pool based relative weights of backends
    • Roundrobin - simple elect backend from pool in circular order
    • Iphash - route client to the same backend based on client ip hash
    • Iphash1 - same as iphash but backend removal consistent (clients remain connecting to the same backend, even if some other backends down)
    • Leastconn - select backend with least active connections
    • Leastbandwidth - backends with least bandwidth
  • Integrates seamlessly with Docker and with any custom system (thanks to Exec discovery and healtchecks)

  • Single binary distribution

Architecture

gobetween

Usage

Change manifest.yml and config/gobetween.toml according to your needs and get started instantly. All configuration options and descriptions are available in the official docs.
Happy cf push -ing!

Performance

It's Fast! See Performance Testing

The Name

It's play on words: gobetween ("go between").

Also, it's written in Go, and it's a proxy so it's something that stays between 2 parties 😄

License

MIT. See LICENSE file for more details.

Authors & Maintainers

Logo by Max Demchenko