Big-data

负载均衡

负载均衡算法:

  1. round-robin轮询法,所有server按顺序轮流分配
  2. minimum connection:first to choose minimize connection, whcih has minimum pressure. If the event takes a long time, use this approach
  3. hash

作用

1.解决单点故障:multi-server to keep healthy operation.
2.响应慢:增加负载均衡器和服务器,分摊访问压力,提高响应速度.
3.建立load balancer cluster to prevent load balancer fails.

References

负载均衡