Chinaunix首页 | 论坛 | 博客
  • 博客访问: 593591
  • 博文数量: 805
  • 博客积分: 4000
  • 博客等级: 上校
  • 技术积分: 5000
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-17 14:22
文章分类

全部博文(805)

文章存档

2011年(1)

2008年(804)

我的朋友

分类:

2008-10-17 14:38:39


  多台主机负载均衡
  6509上的部分配置文件,反正我们是第一次用,看了半天文档
  
  module ContentSwitchingModule 3
  vlan 5 server
  ip address 192.168.5.254 255.255.255.0
  !
  vlan 20 client
  ip address 202.99.20.220 255.255.255.0
  gateway 202.99.20.254
  !
  probe HTTPPROBE http
  interval 2
  !
  map HTTPMAP header
  match protocol http header Host header-value *.XXX.com.cn
  match protocol http header Accept header-value *.XXXX.com.cn
  !
  map XXXXX header
  match protocol http header Host header-value *.XXXX.com.cn
  !
  map XXXXX header
  match protocol http header Host header-value *.XXXXX.com.cn
  !
  serverfarm WEB
  nat server
  no nat client
  predictor leastconns
  real 192.168.5.1
  inservice
  real 192.168.5.2
  inservice
  real 192.168.5.3
  inservice
  real 192.168.5.4
  inservice
  real 192.168.5.5
  inservice
  real 192.168.5.6
  inservice
  real 192.168.5.7
  inservice
  real 192.168.5.8
  inservice
  .
  .
  .
  
  
  probe HTTPPROBE
  !
  serverfarm XXX
  nat server
  no nat client
  predictor leastconns
  real 192.168.5.11 80
  inservice
  probe HTTPPROBE
  !
  
  policy PEOPLE-SITE
  header-map XXXX
  serverfarm XXXX
  !
  policy HTTPPOLICY
  header-map HTTPMAP
  serverfarm XXXX
  !
  vserver PEOPLECOUNT
  virtual 公网IP tcp 8000
  serverfarm XXXX
  advertise active
  idle 120
  persistent rebalance
  inservice
  
【责编:admin】

--------------------next---------------------

阅读(388) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~