分布式系统中负载均衡和负载分担的区别
分布式系统是一种计算环境,其中不同的组件分散在连接到网络的几台计算机(或其他计算设备)之间。与分配给单个设备相比,这些设备分解工作并协调他们的工作以更快地完成工作。
负载均衡:
负载均衡是一种将工作负载分散到分布式系统节点的做法,以优化资源效率和任务响应时间,同时避免一些节点大量加载而其他节点空闲或执行少量工作的情况。
负载共享:
负载平衡解决方案旨在建立一个分散的网络,其中请求均匀分布在多个服务器上。另一方面,负载共享包括将一部分流量发送到一个服务器,将其余流量发送到另一台服务器。
负载均衡和负载分担的区别:
Load Balancing | Load Sharing |
Load balancing equally distributes network traffic or load across different channels and can be achieved using both static and dynamic load balancing techniques. | Load sharing delivers a portion of the traffic or load to one connection in the network while the remainder is routed through other channels. |
focuses on the notion of traffic dispersion across connections. | works with the notion of traffic splitting across connections. |
The creation of Ratios, Least connections, Fastest, Round robin, and observed approaches are used in load balancing. | Load Sharing is based on the notion of sharing traffic or network load among connections based on destination IP or MAC address selections. |
It is unidirectional. | it is unidirectional. |
no instance is load sharing. | All instances are load sharing. |
Accurate Load Balancing is not an easy task. | Load sharing is easy compared with load balancing. |
负载共享是一个更具体的短语,它指的是不同路线之间的流量分布,即使是以不均匀的方式。如果你比较两个流量图,这两个图在负载均衡上应该几乎相同,但是它们可能与负载共享相媲美,但流量模式会有所不同。