How Load Balancing Policies Work https://docs.cloud.oracle.com/en-us/iaas/Content/Balance/Reference/lbpolicies.htm

How Load Balancing Policies Work

After you create a load balancer, you can apply policies to control traffic distribution to your backend servers. The Load Balancing service supports three primary policy types:

When processing load or capacity varies among backend servers, you can refine each of these policy types with backend server weighting. Weighting affects the proportion of requests directed to each server. For example, a server weighted '3' receives three times the number of connections as a server weighted '1'. You assign weights based on criteria of your choosing, such as each server's traffic-handling capacity.

Load balancer policy decisions apply differently to TCP load balancers, cookie-based session persistent HTTP requests (sticky requests), and non-sticky HTTP requests.

  • A TCP load balancer considers policy and weight criteria to direct an initial incoming request to a backend server. All subsequent packets on this connection go to the same endpoint.
  • An HTTP load balancer configured to handle cookie-based session persistence forwards requests to the backend server specified by the cookie's session information.
  • For non-sticky HTTP requests, the load balancer applies policy and weight criteria to every incoming request and determines an appropriate backend server. Multiple requests from the same client could be directed to different servers.

Round Robin

Round Robin is the default load balancer policy. This policy distributes incoming traffic sequentially to each server in a backend set list. After each server has received a connection, the load balancer repeats the list in the same order.

Round Robin is a simple load balancing algorithm. It works best when all the backend servers have similar capacity and the processing load required by each request does not vary significantly.

Least Connections

The Least Connections policy routes incoming non-sticky request traffic to the backend server with the fewest active connections. This policy helps you maintain an equal distribution of active connections with backend servers. As with the round robin policy, you can assign a weight to each backend server and further control traffic distribution.

 Tip

In TCP use cases, a connection can be active but have no current traffic. Such connections do not serve as a good load metric.

IP Hash

The IP Hash policy uses an incoming request's source IP address as a hashing key to route non-sticky traffic to the same backend server. The load balancer routes requests from the same client to the same backend server as long as that server is available. This policy honors server weight settings when establishing the initial connection.

IP Hash ensures that requests from a particular client are always directed to the same backend server, as long as it is available.

You cannot add a backend server marked as Backup to a backend set that uses the IP Hash policy.

 Warning

Multiple clients that connect to the load balancer through a proxy or NAT router appear to have the same IP address. If you apply the IP Hash policy to your backend set, the load balancer routes traffic based on the incoming IP address and sends these proxied client requests to the same backend server. If the proxied client pool is large, the requests could flood a backend server.

最新文章

  1. November 2nd Week 45th Wednesday 2016
  2. this的安身之处
  3. Qt Qwt之坐标轴移动
  4. python flask detect browser language
  5. XML解析方案
  6. node.js整理 04网络操作
  7. Center os FTP配置
  8. muduo库安装
  9. div 两列布局,左侧固定宽度px,右侧自适应宽度,满屏
  10. asp.net解决:当前上下文中不存在名称“Session”
  11. cocos2d-x中Node中重要的属性
  12. jQuery获取表单各元素的值
  13. 绘图quartz之阴影
  14. Ajax中send方法的使用
  15. vs提示“当前不会命中断点,源代码与原始版本不同”的一种解决办法
  16. 开源分布式任务调度平台Cuckoo-Schedule
  17. 不免费的PacMan
  18. sau交流学习社区—vue总结:使用vue的computed属性实现监控变量变化,使用vue的watch属性监控变量变化从而实现其他业务
  19. Struts第一个案例搭建
  20. python从入门到实践-7章用户输入和while循环

热门文章

  1. Access 数据库容量问题
  2. Git 仓库拆分
  3. CGLIB(Code Generation Library)详解
  4. 讲两个int 数组找出重复的数字 用最少的循环
  5. 学习Promise异步编程
  6. jQuery EasyUI学习一
  7. mysql8.0.19压缩版安装
  8. scala模式匹配 case a @ b语法
  9. AI算法测评事项
  10. Java入门随手记-DOS命令