免费注册 查看新帖 |

Chinaunix

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

[Web] apache的负载均衡怎么都负载到一台上了呢? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-11-03 15:19 |只看该作者 |倒序浏览
我在solaris8的平台上安装了一个apache1.3和两个weblogic6.1(在两台主机上)。

使用apache1.3做负载均衡。

两个weblogic没有做成cluster

经编译、配置后可以成功地访问jsp主页。但发现每次登录,连接请求都被分配到其中的一台主机上,而另一台几乎没有分配到连接请求。因为是实验,所以没有几个连接请求。

两台weblogic是正常工作的,从http://202.40.10.186/xhnews/publ ... ebLogicBridgeConfig中可以看到它们的状态。

================New Request: [GET /xhnews/publish/logout.jsp HTTP/1.0] =================
Thu Nov  3 15:02:16 2005 The request string is '/xhnews/publish/logout.jsp'
Thu Nov  3 15:02:16 2005 SEARCHING id=[202.40.10.186:7001,192.168.10.15:7001] from current ID=[202.40.10.186:7001,192.168.10.15:7001]
Thu Nov  3 15:02:16 2005 @@@FOUND...id=[202.40.10.186:7001,192.168.10.15:7001], server_name=[10.93.5.124], server_port=[80]
Thu Nov  3 15:02:16 2005 Init: availcookie=[JSESSIONID=Q2mm1aiXxl3rF5qVgOiwVRs8EyacweM1NmSW2Rq3j0fq8uIOStFG!-416984125!-1062729201!7001!7002]
Thu Nov  3 15:02:16 2005 INFO: SSL is not configured
Thu Nov  3 15:02:16 2005 trying connect to PRIMARY '192.168.10.15'/7001/7002
Thu Nov  3 15:02:16 2005 INFO: New NON-SSL URL
Thu Nov  3 15:02:16 2005 Hdrs from clnt:[Accept]=[image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/msword, application/vnd.ms-excel, application/vnd.ms-powerpoint, */*]
Thu Nov  3 15:02:16 2005 Hdrs from clnt:[Accept-Language]=[zh-cn]
Thu Nov  3 15:02:16 2005 Hdrs from clnt:[Cookie]=[JSESSIONID=Q2mm1aiXxl3rF5qVgOiwVRs8EyacweM1NmSW2Rq3j0fq8uIOStFG!-416984125!-1062729201!7001!7002]
Thu Nov  3 15:02:16 2005 Hdrs from clnt:[Host]=[202.40.10.186]
Thu Nov  3 15:02:16 2005 Hdrs from clnt:[Referer]=[http://202.40.10.186/xhnews/publish/main/banner.jsp]
Thu Nov  3 15:02:16 2005 Hdrs from clnt:[User-Agent]=[Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; MyIE2; .NET CLR 1.1.4322)]
Thu Nov  3 15:02:16 2005 Hdrs to WLS:[Accept]=[image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/msword, application/vnd.ms-excel, application/vnd.ms-powerpoint, */*]
Thu Nov  3 15:02:16 2005 Hdrs to WLS:[Accept-Language]=[zh-cn]
Thu Nov  3 15:02:16 2005 Hdrs to WLS:[Cookie]=[JSESSIONID=Q2mm1aiXxl3rF5qVgOiwVRs8EyacweM1NmSW2Rq3j0fq8uIOStFG!-416984125!-1062729201!7001!7002]
Thu Nov  3 15:02:16 2005 Hdrs to WLS:[Host]=[202.40.10.186]
Thu Nov  3 15:02:16 2005 Hdrs to WLS:[Referer]=[http://202.40.10.186/xhnews/publish/main/banner.jsp]
Thu Nov  3 15:02:16 2005 Hdrs to WLS:[User-Agent]=[Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; MyIE2; .NET CLR 1.1.4322)]
Thu Nov  3 15:02:16 2005 Hdrs to WLS:[WL-Proxy-SSL]=[false]
Thu Nov  3 15:02:16 2005 Hdrs to WLS:[Proxy-Client-IP]=[202.84.17.253]
Thu Nov  3 15:02:16 2005 Hdrs to WLS:[X-Forwarded-For]=[202.84.17.253]
Thu Nov  3 15:02:16 2005 INFO: sysSend 605
Thu Nov  3 15:02:16 2005 INFO: Reader::fill(): first=0 last=0 toRead=4096
Thu Nov  3 15:02:16 2005 Hdrs from WLS:[Date]=[Thu, 03 Nov 2005 07:05:30 GMT]
Thu Nov  3 15:02:16 2005 Hdrs from WLS:[Location]=[http://202.40.10.186/xhnews/publish/login.jsp]
Thu Nov  3 15:02:16 2005 Hdrs from WLS:[Server]=[WebLogic WebLogic Server 6.1 SP1  09/18/2001 14:28:44 #138716 ]
Thu Nov  3 15:02:16 2005 Hdrs from WLS:[Content-Type]=[text/html]
Thu Nov  3 15:02:16 2005 Hdrs from WLS:[Connection]=[Close]
Thu Nov  3 15:02:16 2005 parsed all headers OK
Thu Nov  3 15:02:16 2005 Hdrs to client:[Date]=[Thu, 03 Nov 2005 07:05:30 GMT]
Thu Nov  3 15:02:16 2005 Hdrs to client:[Location]=[http://202.40.10.186/xhnews/publish/login.jsp]
Thu Nov  3 15:02:16 2005 Hdrs to client:[Server]=[WebLogic WebLogic Server 6.1 SP1  09/18/2001 14:28:44 #138716]
Thu Nov  3 15:02:16 2005 INFO: Reader::fill(): first=0 last=0 toRead=4096
Thu Nov  3 15:02:16 2005 INFO: Reader::fill(): first=0 last=0 toRead=4096
Thu Nov  3 15:02:16 2005 r->status=302 returning 0
Thu Nov  3 15:02:16 2005

论坛徽章:
0
2 [报告]
发表于 2005-11-03 15:22 |只看该作者
在日志中看到的PRIMARY是怎么发生作用的?在两个weblogic server中怎么设置PRIMARY呢,可以去掉PRIMARY、SECOND,让连接请求平均分配吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP