Apache httpd负载均衡配置

1 负载均衡配置步骤

负载均衡核心模块:mod_proxy_balancer

负载均衡算法模块:

  • mod_lbmethod_byrequests: Request Counting,按请求次数均衡(默认)
  • mod_lbmethod_bytraffic: Weighted Traffic Counting ,按照流量均衡
  • mod_lbmethod_bybusyness: Pending Request Counting,按繁忙程度均衡(空闲的服务器优先)
  • mod_lbmethod_heartbeat: Heartbeat Traffic Counting

1.1 加载依赖的module

配置文件中需要加载如下依赖模块:

  • mod_proxy:代理模块

你可能感兴趣的:(项目中的那些事,负载均衡,apache,apache负载均衡)