[英]Requests dispatch to specific JBoss instance in cluster with apache mod_cluster 1.1?
I am trying to implement JBoss AS7 clustered environment with mod_cluster as load-balancer. 我正在尝试使用mod_cluster作为负载均衡器来实现JBoss AS7集群环境。 Can anyone explain how to dispatch requests based on URL params to specific JBoss Node using mod_cluster?
谁能解释使用mod_cluster将基于URL参数的请求分派到特定的JBoss节点吗?
could you elaborate more on what do you actually need to achieve? 您能否详细说明实际需要实现的目标? mod_cluster is a smart load balancer that dynamically registers worker nodes and their contexts, so, for instance, if I had this cluster:
mod_cluster是一个智能负载均衡器,它动态注册工作程序节点及其上下文,例如,如果我有此群集:
worker_0, contexts: houby/, ocet/, houbyaocet/
worker_1, contexts: houby/, ocet/, devtest/
worker_2, contexts: houby/, ocet/, devtest/
and this mod_cluster httpd load balancer: 这个mod_cluster httpd负载均衡器:
http://mycompany.example.com
then requests to either houby/
or ocet/
could be balanced among all workers, whereas devtest/
could be handled by worker_1
and worker_2
only. 那么对
houby/
或ocet/
请求可以在所有工作程序之间平衡,而devtest/
只能由worker_1
和worker_2
处理。 Any request to houbyocet/
will end up on worker_0
, because that is the only worker that registered this context. 对
houbyocet/
任何请求都将在worker_0
上worker_0
,因为那是唯一注册此上下文的工作程序。
You don't configure this whole logic, it's done automatically by mod_cluster. 您无需配置整个逻辑,而是由mod_cluster自动完成。 Worker nodes send special configuration messages to the balancer regarding which applications they have deployed, whether they are overloaded or not, whether tehy are shutting down/undeploying..etc.
工作程序节点向平衡器发送特殊的配置消息,有关它们已部署了哪些应用程序,是否过载,是否正在关闭/取消部署等信息。
HTH 高温超导
Karm 卡姆
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.