10种调度算法
官方介绍:http://www.linuxvirtualserver.org/zh/lvs4.html
lvs的调度算法大致分为2类,静态、动态,静态是指lvs不考虑后端节点现有负载情况,根据既定调度算法直接调度,动态更人性化,会考虑后端节点的当前负载状态,忙的就少分点,多的就多分点;
在内核共实现了8种调度算法:+ 2种,共10种,
- 轮叫调度(Round-Robin Scheduling)
- 加权轮叫调度(Weighted Round-Robin Scheduling)
- 最小连接调度(Least-Connection Scheduling)
- 加权最小连接调度(Weighted Least-Connection Scheduling)
- 基于局部性的最少链接(Locality-Based Least Connections Scheduling)
- 带复制的基于局部性最少链接(Locality-Based Least Connections with Replication Scheduling)
- 目标地址散列调度(Destination Hashing Scheduling)
- 源地址散列调度(Source Hashing Scheduling)
- sed (shorest expection delay)
- nq (never queue)