Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Application Server » Tomcat  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 Re:Tomcat5.0的webapp中的balance是不是用于均衡负载 [Re:freecode]
davidself

猫哥

CJSDN高级会员


发贴: 1506
积分: 333
于 2004-06-29 17:25 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
可参考"Professional Apache Tomcat 5" 19章

Tomcat 5 also includes an application-level load-balancing front-end mechanism called the balancer Web application. The balancer uses rules-based URL rewriting to redirect incoming requests. This is best used in a standalone mode configuration (that is, without an Apache front end), and is very effective for initial incoming request redirection. Its routing decisions can be made with the help of custom-coded rules, optionally taking into account dynamic system information (server loads and time of day, and so on).

The balancer uses a distinctly different means to balance the load: It redirects the incoming URL. The balancer performs the following steps:
1. Incoming URL requests are directed to the balancer Web application according to the URL pattern specified in the deployment descriptor’s (web.xml) <filter-mapping> definition.
2. The balancer then examines the intercepted incoming URL and applies its chain of rules to it. The rules are configured in the rules.xml file.
3. When a rule is matched against a URL, the associated redirect URL is sent back to the browser.
4. The browser now attempts to access the new URL.

Note the following two main points:
❑ Each redirection requires an extra round-trip as the browser receives the redirection and connects to the new URL.
❑ This scheme is effective only for an initial request redirect, unless there exists a rule for dynamically generating the redirect URL (based on portion of the original incoming URL).
The second point is important because in the current version of the balancer application (Tomcat 5.0.16 as of this writing), the balancer cannot redirect to a dynamically created URL.


davidself edited on 2004-06-29 17:30

--108的上铺--
davidself@twitter

话题树型展开
人气 标题 作者 字数 发贴时间
5828 Tomcat5.0的webapp中的balance是不是用于均衡负载 freecode 23 2004-06-16 14:26
4386 Re:Tomcat5.0的webapp中的balance是不是用于均衡负载 sc 10 2004-06-29 16:53
4915 Re:Tomcat5.0的webapp中的balance是不是用于均衡负载 davidself 1725 2004-06-29 17:25

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923