onestraw / golb

:octopus: Yet another load balancer
MIT License
327 stars 27 forks source link

LB 学习索引 #13

Open onestraw opened 3 years ago

onestraw commented 3 years ago
  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

onestraw commented 3 years ago

https://github.com/baidu/bfe-book/blob/version1/frontend_principle/load_balance/load_balance.md

juzipeek commented 2 years ago

Nginx 技术栈可以增加 OpenResty 条目