Code-Life icon indicating copy to clipboard operation
Code-Life copied to clipboard

四层负载均衡和七层负载均衡

Open Draymonders opened this issue 3 years ago • 0 comments

  • reference link: https://lawrenceli.me/blog/load-balancing

基于 OSI 模型,

  • 三层负载均衡的例子,DNS 解析,同一个域名可以解析到多个 IP 上,但轮询策略不在自己手上
  • 四层负载均衡其实是在三层基础上加上了端口,也就是通过 IP + Port 的形式进行转发
  • 七层负载均衡在四层的基础上考虑应用的 URL 等方式做转发

Draymonders avatar Oct 21 '20 05:10 Draymonders