Giter Site home page Giter Site logo

golb's Introduction

Go LB

Build Status Go Report Card Coverage Status godoc

Yet another load balancer golb

Features

  • roundrobin: smooth weighted roundrobin method
  • chash: cosistent hashing method
  • balancer: multiple LB instances, passive health check, SSL offloading
  • controller: dynamic configuration, REST API to start/stop/add/remove LB at runtime
  • service discovery: autodiscover backend services with etcd or consul
  • statistics: HTTP method/path/code/bytes
  • conf: yaml and json configuration

Examples

LICENSE

MIT License

Copyright (c) 2018 Larry He

golb's People

Contributors

onestraw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

golb's Issues

LB 学习索引

  1. 集中式 vs 分布式
    部署形式上的分类,集中式:网关代理形式,分布式:同一集群各实例分别进行负载均衡(也有叫软LB)

  2. 集中式的代表
    硬件 F5
    软件 LVS / HAPorxy / Nginx (Tengine/OpenResty)

  3. 4层 vs 7层
    按TCP/IP协议栈层次划分
    4层:tcp/udp
    7层:http

  4. 算法
    round robin
    consistent hash
    ip hash
    least connection

  5. 健康检查

  6. 会话维持

  7. 服务发现
    etcd
    consul
    zookeeper

  8. 其它
    谁给网关LB:ECMP / DNS调度
    底层加速:dpdk
    高可用部署:keepalived

  9. 链接
    Nginx upstream http://nginx.org/en/docs/http/ngx_http_upstream_module.html
    美团4层LB https://tech.meituan.com/2017/01/05/mgw.html
    https://github.com/cristaloleg/awesome-load-balancing

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.