1、Resin 3.1 中集群与负载均衡的实现作者:anotherbug 日期:2007-10-25 23:44:38字体大小: 小 中 大resin1.conf(9.3 K)resin-web.conf(8.8 K)resin-313-cluster-app-1.gif(6.8 K)resin-313-cluster-app-2.gif(6.8 K)resin-313-cluster-web-1.gif(6.3 K)切换到幻灯片模式需要配置前端 web 层和后端应用层: 1.web 层配置: 1234567891011121314151617181920212223242526272829303
2、13233343536373839404142.以上配置将来自 80 的请求分发给 app-tier 应用层集群处理。 2.应用层集群配置: 1233.启动应用层服务器: 12 D:resin-pro-3.1.3httpd.exe -conf conf/resin1.conf -server a D:resin-pro-3.1.3httpd.exe -conf conf/resin1.conf -server b以上启动了两个应用服务器 a 和 b. 4.启动前端 WEB 服务器: 1 D:resin-pro-3.1.3httpd.exe -conf conf/resin-web.conf -server web-a5.写测试 JSP a.jsp: 1 6.在浏览器中访问: http:/localhost/a.jsp 观察一下控制台,会在两个窗口控制台轮流打印出 aaaaaaaaaaaa,说明负载均衡 Servlet 工作正常。 关掉一个应用服务器,再次访问,会发现访问正常。 平均得分(0 次评分)