免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3938 | 回复: 3
打印 上一主题 下一主题

lb频繁切换 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-01-05 15:06 |只看该作者 |倒序浏览
lb每隔2~3分钟切换一次,这是啥问题呢?

dscontrol set loglevel 1
dscontrol executor start
dscontrol executor set nfa 192.168.76.113
dscontrol cluster add 192.168.76.120 address 192.168.76.120 primaryhost 192.168.76.110
dscontrol cluster set 192.168.76.120 proportions 49 50 1 0
dscontrol port add 192.168.76.120:21 reset no
dscontrol port set 192.168.76.120:21 staletimeout 9000
dscontrol server add 192.168.76.120:21:192.168.76.110 address 192.168.76.110
dscontrol server set 192.168.76.120:21:192.168.76.110 weight 15
dscontrol server add 192.168.76.120:21:192.168.76.113 address 192.168.76.113
dscontrol server set 192.168.76.120:21:192.168.76.113 weight 15
dscontrol port add 192.168.76.120:80 reset no
dscontrol server add 192.168.76.120:80:192.168.76.110 address 192.168.76.110
dscontrol server set 192.168.76.120:80:192.168.76.110 weight 10
dscontrol server add 192.168.76.120:80:192.168.76.113 address 192.168.76.113
dscontrol server set 192.168.76.120:80:192.168.76.113 weight 10
dscontrol highavailability heartbeat add 192.168.76.113 192.168.76.110
dscontrol highavailability backup add backup manual 12345
dscontrol manager start manager.log 10004
dscontrol advisor start Http 192.168.76.120:80 Http_192.168.76.120_80.log
dscontrol advisor start Ftp 192.168.76.120:21 Ftp_192.168.76.120_21.log

基本上能工作,在没有切换的时候可以工作,切换过程中有停顿,在was中做了内存到内存的复制,web凑合着用,debug信息:

-----------------------------------------------------------------------
OS Version :
-----------------------------------------------------------------------
Windows Server 2003 [5.2 build 3790 Service Pack 2]


-----------------------------------------------------------------------
***** Command : [chcp.com 437] *****
-----------------------------------------------------------------------
Active code page: 437


-----------------------------------------------------------------------
***** Command : [ipconfig /all] *****
-----------------------------------------------------------------------


Windows IP Configuration

   Host Name . . . . . . . . . . . . : was2
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Unknown
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter 本地连接 2:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft Loopback Adapter
   Physical Address. . . . . . . . . : 02-00-4C-4F-4F-50
   DHCP Enabled. . . . . . . . . . . : No
   IP Address. . . . . . . . . . . . : 192.168.76.114
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . :

Ethernet adapter 本地连接:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : VMware Accelerated AMD PCNet Adapter
   Physical Address. . . . . . . . . : 00-0C-29-B8-61-98
   DHCP Enabled. . . . . . . . . . . : No
   IP Address. . . . . . . . . . . . : 192.168.76.120
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   IP Address. . . . . . . . . . . . : 192.168.76.113
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.76.1


-----------------------------------------------------------------------
***** Command : [route print] *****
-----------------------------------------------------------------------

IPv4 Route Table
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...02 00 4c 4f 4f 50 ...... Microsoft Loopback Adapter
0x10004 ...00 0c 29 b8 61 98 ...... VMware Accelerated AMD PCNet Adapter
===========================================================================
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0     192.168.76.1   192.168.76.113     10
        127.0.0.0        255.0.0.0        127.0.0.1        127.0.0.1      1
     192.168.76.0    255.255.255.0   192.168.76.113   192.168.76.113     10
     192.168.76.0    255.255.255.0   192.168.76.114   192.168.76.114     30
   192.168.76.113  255.255.255.255        127.0.0.1        127.0.0.1     10
   192.168.76.114  255.255.255.255        127.0.0.1        127.0.0.1     30
   192.168.76.120  255.255.255.255        127.0.0.1        127.0.0.1     10
   192.168.76.255  255.255.255.255   192.168.76.113   192.168.76.113     10
   192.168.76.255  255.255.255.255   192.168.76.114   192.168.76.114     30
        224.0.0.0        240.0.0.0   192.168.76.113   192.168.76.113     10
        224.0.0.0        240.0.0.0   192.168.76.114   192.168.76.114     30
  255.255.255.255  255.255.255.255   192.168.76.113   192.168.76.113      1
  255.255.255.255  255.255.255.255   192.168.76.114   192.168.76.114      1
Default Gateway:      192.168.76.1
===========================================================================
Persistent Routes:
  None


-----------------------------------------------------------------------
***** Command : [arp -a] *****
-----------------------------------------------------------------------

Interface: 192.168.76.113 --- 0x10004
  Internet Address      Physical Address      Type
  192.168.76.110        00-0c-29-a4-44-eb     dynamic   
  192.168.76.171        00-16-d3-b5-ac-5d     dynamic   


-----------------------------------------------------------------------
***** Command : [java -fullversion] *****
-----------------------------------------------------------------------
java 完整版“J2RE 1.5.0 IBM Windows 32 build pwi32dev-20060511 (SR2)”


-----------------------------------------------------------------------
***** Command : [dscontrol.cmd executor status] *****
-----------------------------------------------------------------------

执行程序状态:
--------------
非转发地址 .......................... 192.168.76.113
客户机网关地址 ...................... 0.0.0.0
FIN 超时 ......................... 60
HA 超时 .......................... 10
HA 同步超时....................... 50
广域网端口号 ....... 0
共享带宽(KBytes)................. 0
最大段大小......................... 1,460
每个集群的缺省最大端口数 ............ 8
最大集群数 .......................... 100
每个端口的缺省最大服务器数 .......... 32
缺省失效超时 ........................ 300
缺省粘性时间 ........................ 0
缺省权重范围 ........................ 20
缺省端口类型 ........................ tcp/udp




-----------------------------------------------------------------------
***** Command : [dscontrol.cmd executor report] *****
-----------------------------------------------------------------------

执行程序报告:
--------------
版本级别 ...................................... 06.01.00.00 - 20060515-233146 [WSBLD39]
自启动以来接收到的信息包总数 .................. 132,148
发送到非转发地址的信息包 ...................... 0
在该机器上本地处理的信息包 .................... 4
发送到已配置服务器的信息包 .................... 129
转发到任何集群的信息包 ........................ 132,015
没有寻址到活动的集群/端口的信息包 ............ 0
每秒传送的千字节数 ............................ 0
每秒连接数 .................................... 0
废弃的信息包 - 头太短 ........................ 0
废弃的信息包 - 无端口或服务器 ................ 0
废弃的信息包 - 网络适配器故障 ................ 0
有转发错误的信息包 ............................ 0


-----------------------------------------------------------------------
***** Command : [dscontrol.cmd cluster report :] *****
-----------------------------------------------------------------------

集群报告:
----------
集群地址 ........................... 192.168.76.120
接口上的集群别名 ................... Y
活动连接上的 SYN 数 ................ 0
已完成连接上的 SYN 数 .............. 0
SYN 之前接收的 FIN 数 .............. 0
SYN 之前接收的 ACK 数 .............. 0
SYN 之前接收的 RST 数 .............. 0
丢失的信息包总数 ................... 0
停顿服务器的 SYN(在 SYN 上)....... 0
每秒传送千字节数 ................... 0
每秒连接数 ......................... 0



-----------------------------------------------------------------------
***** Command : [dscontrol.cmd cluster status :] *****
-----------------------------------------------------------------------

集群状态:
---------------
集群 ................................... 192.168.76.120
地址 ................................... 192.168.76.120
目标端口数 ............................. 3
缺省粘性时间 ........................... 0
缺省失效超时 ........................... 300
缺省端口权重范围 ....................... 20
最大端口数 ............................. 8
缺省端口协议 ........................... tcp/udp
缺省最大服务器数 ....................... 32
指定给活动连接的比例 ................... 49
指定给新连接的比例 ..................... 50
指定给特定端口的比例 ................... 1
指定给系统度量的比例 ................... 0
共享带宽(千字节数)................... 0
主要主机地址 ............................. 192.168.76.110



-----------------------------------------------------------------------
***** Command : [dscontrol.cmd port report ::] *****
-----------------------------------------------------------------------

端口报告:
----------
集群地址 ................. 192.168.76.120
端口号 ................... 21
服务器数 ................. 2
最大服务器权重 ........... 10
总活动连接数 ............. 3
每秒连接 ................. 0
每秒千字节 ............... 0
半开数 ................... 0
发送的 TCP 复位 .......... 0
转发方法 ................. 基于 MAC 转发


端口报告:
----------
集群地址 ................. 192.168.76.120
端口号 ................... 20
服务器数 ................. 0
最大服务器权重 ........... 10
总活动连接数 ............. 0
每秒连接 ................. 0
每秒千字节 ............... 0
半开数 ................... 0
发送的 TCP 复位 .......... 0
转发方法 ................. 基于 MAC 转发


端口报告:
----------
集群地址 ................. 192.168.76.120
端口号 ................... 80
服务器数 ................. 2
最大服务器权重 ........... 10
总活动连接数 ............. 0
每秒连接 ................. 0
每秒千字节 ............... 0
半开数 ................... 0
发送的 TCP 复位 .......... 0
转发方法 ................. 基于 MAC 转发




-----------------------------------------------------------------------
***** Command : [dscontrol.cmd port status ::] *****
-----------------------------------------------------------------------

端口状态:
----------
端口号 ......................... 21
集群 ........................ 192.168.76.120
失效超时 ....................... 9,000
权重范围 ....................... 20
最大服务器数 ................... 32
粘性时间 ....................... 0
端口类型 ....................... tcp/udp
交叉端口亲缘关系 ................. 21
粘性掩码位 ..................... 32
最大半开连接数 ................. 0
发送 TCP 复位 ................ no

端口状态:
----------
端口号 ......................... 20
集群 ........................ 192.168.76.120
失效超时 ....................... 300
权重范围 ....................... 20
最大服务器数 ................... 32
粘性时间 ....................... 0
端口类型 ....................... tcp/udp
交叉端口亲缘关系 ................. 20
粘性掩码位 ..................... 32
最大半开连接数 ................. 0
发送 TCP 复位 ................ no

端口状态:
----------
端口号 ......................... 80
集群 ........................ 192.168.76.120
失效超时 ....................... 300
权重范围 ....................... 20
最大服务器数 ................... 32
粘性时间 ....................... 0
端口类型 ....................... tcp/udp
交叉端口亲缘关系 ................. 80
粘性掩码位 ..................... 32
最大半开连接数 ................. 0
发送 TCP 复位 ................ no



-----------------------------------------------------------------------
***** Command : [dscontrol.cmd server report ::] *****
-----------------------------------------------------------------------
集群: 192.168.76.120 端口: 21
-------------------------------------------------------------------------------
| 服务器         |  CPS |    KBPS   |    总计    |  活动   |  结束   |  完成   |
-------------------------------------------------------------------------------
| 192.168.76.110 |    0 |         0 |          6 |       1 |       0 |       5 |
| 192.168.76.113 |    0 |         0 |         13 |       2 |       0 |      11 |
-------------------------------------------------------------------------------
集群: 192.168.76.120 端口: 80
-------------------------------------------------------------------------------
| 服务器         |  CPS |    KBPS   |    总计    |  活动   |  结束   |  完成   |
-------------------------------------------------------------------------------
| 192.168.76.110 |    0 |         0 |          0 |       0 |       0 |       0 |
| 192.168.76.113 |    0 |         0 |          0 |       0 |       0 |       0 |
-------------------------------------------------------------------------------



-----------------------------------------------------------------------
***** Command : [dscontrol.cmd server status ::] *****
-----------------------------------------------------------------------

服务器状态:
------------
服务器 ......................... 192.168.76.110
端口号 ......................... 21
集群 ........................ 192.168.76.120
集群地址 .....................192.168.76.120
已停顿 ...................... N
服务器启动 ..................... Y
权重 ........................... 10
固定权重 ....................... N
规则粘性 ....................... Y
远程服务器 ..................... N
网络路由器地址 ................. 0.0.0.0
已配置 ......................... N
顾问程序请求.................... HEAD / HTTP/1.0
顾问程序响应....................
Cookie 值 ...................... n/a
克隆标识 ....................... n/a

服务器状态:
------------
服务器 ......................... 192.168.76.113
端口号 ......................... 21
集群 ........................ 192.168.76.120
集群地址 .....................192.168.76.120
已停顿 ...................... N
服务器启动 ..................... Y
权重 ........................... 10
固定权重 ....................... N
规则粘性 ....................... Y
远程服务器 ..................... N
网络路由器地址 ................. 0.0.0.0
已配置 ......................... N
顾问程序请求.................... HEAD / HTTP/1.0
顾问程序响应....................
Cookie 值 ...................... n/a
克隆标识 ....................... n/a

服务器状态:
------------
服务器 ......................... 192.168.76.110
端口号 ......................... 80
集群 ........................ 192.168.76.120
集群地址 .....................192.168.76.120
已停顿 ...................... N
服务器启动 ..................... Y
权重 ........................... 10
固定权重 ....................... N
规则粘性 ....................... Y
远程服务器 ..................... N
网络路由器地址 ................. 0.0.0.0
已配置 ......................... N
顾问程序请求.................... HEAD / HTTP/1.0
顾问程序响应....................
Cookie 值 ...................... n/a
克隆标识 ....................... n/a

服务器状态:
------------
服务器 ......................... 192.168.76.113
端口号 ......................... 80
集群 ........................ 192.168.76.120
集群地址 .....................192.168.76.120
已停顿 ...................... N
服务器启动 ..................... Y
权重 ........................... 10
固定权重 ....................... N
规则粘性 ....................... Y
远程服务器 ..................... N
网络路由器地址 ................. 0.0.0.0
已配置 ......................... N
顾问程序请求.................... HEAD / HTTP/1.0
顾问程序响应....................
Cookie 值 ...................... n/a
克隆标识 ....................... n/a



-----------------------------------------------------------------------
***** Command : [dscontrol.cmd highavailability status] *****
-----------------------------------------------------------------------

高可用性状态:
-------------------------
角色 ................. 备份
恢复策略 ............. 手动
状态 ................. 活动
子状态 ............... 同步
主要主机 ............. 192.168.76.110
端口 ................. 456
首选目标 ............. 192.168.76.110

脉动信号状态:
-----------------
计数 ................. 1
源/目标 ............. 192.168.76.113/192.168.76.110

可达性状态:
--------------------
计数 ................. 0


-----------------------------------------------------------------------
***** Command : [dscontrol.cmd manager report] *****
-----------------------------------------------------------------------

--------------------------------------------------------------------
|       服务器                      |    IP 地址      |    状态    |
--------------------------------------------------------------------
|                    192.168.76.110 |  192.168.76.110 |         活动 |
|                    192.168.76.113 |  192.168.76.113 |         活动 |
--------------------------------------------------------------------
-----------------------------
|   管理器报告图注          |
-----------------------------
| ACTV | 活动连接           |
| NEWC | 新连接             |
| SYS  | 系统度量           |
| NOW  | 当前权重           |
| NEW  | 新的权重           |
| CONN | 连接               |
-----------------------------
-------------------------------------------------------------------
|   192.168.76.120   |  权重  |  活动  | 新连接 |  端口  |  系统  |
|     端口:   21    |现在新建|   49%  |   50%  |    1%  |    0%  |
-------------------------------------------------------------------
|     192.168.76.110 | 10  10 |      1 |      0 |     -1 |      0 |
|     192.168.76.113 | 10  10 |      2 |      0 |     -1 |      0 |
-------------------------------------------------------------------
-------------------------------------------------------------------
|   192.168.76.120   |  权重  |  活动  | 新连接 |  端口  |  系统  |
|     端口:   20    |现在新建|   49%  |   50%  |    1%  |    0%  |
-------------------------------------------------------------------
|                   当前无主机为此端口提供服务                                |
-------------------------------------------------------------------
-------------------------------------------------------------------
|   192.168.76.120   |  权重  |  活动  | 新连接 |  端口  |  系统  |
|     端口:   80    |现在新建|   49%  |   50%  |    1%  |    0%  |
-------------------------------------------------------------------
|     192.168.76.110 | 10  10 |      0 |      0 |     -1 |      0 |
|     192.168.76.113 | 10  10 |      0 |      0 |     -1 |      0 |
-------------------------------------------------------------------
---------------------------------------------------
|    顾问程序   |    集群:端口        |  超时     |
---------------------------------------------------
|           ftp |   192.168.76.120:21 | unlimited |
|          http |   192.168.76.120:80 | unlimited |
---------------------------------------------------



-----------------------------------------------------------------------
***** Command : [dscontrol.cmd file save ibmpmr.cfg force] *****
-----------------------------------------------------------------------
文件“ibmpmr.cfg”已删除。
配置已保存到文件“ibmpmr.cfg”。

论坛徽章:
0
2 [报告]
发表于 2008-01-05 17:52 |只看该作者
为啥没有人理我?

论坛徽章:
0
3 [报告]
发表于 2008-01-11 00:32 |只看该作者
已经解决了,但是也太让我觉得难过了,没有一个人回复

大家想知道解决方法吗?

论坛徽章:
0
4 [报告]
发表于 2008-07-18 14:28 |只看该作者
小弟近期也碰到此问题,希望大侠告知解决方案
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP