Array APV 服务器负载均衡配置一----简单的服务器负载均衡示例

简单的服务器负载均衡示例

/*配置后台真实服务

slb real http "web1" 192.168.0.30 80 10000 tcp 3 3
slb real http "web2" 192.168.0.31 80 10000 tcp 3 3
slb real http "web3" 192.168.0.32 80 10000 tcp 3 3
slb real http "web4" 192.168.0.33 80 10000 tcp 3 3


/*设置后台服务组和组的负载均衡算法

slb group method "web_g" pi 32 sr


/*将后台真实服务加入后台服务组中

slb group member "web_g" "web1"
slb group member "web_g" "web2"
slb group member "web_g" "web3"
slb group member "web_g" "web4"


/*创建虚拟服务
slb virtual http "web_vip" 192.168.0.40 80


/*将虚拟服务和后台服务使用默认策略关联起来

slb policy default "web_vip" "web_g"


/*设置连接保持时间

slb persistence timeout 10

你可能感兴趣的:(array,配置,APV)