gpt4 book ai didi

java - Jboss Eap - mod_cluster - 防止 jboss 互相交谈

转载 作者:太空宇宙 更新时间:2023-11-04 07:24:57 25 4
gpt4 key购买 nike

我有一个 jboss 设置,在一台虚拟机上有 2 个 jboss 实例。2 个 jboss 中的每一个都与同一虚拟机上的 2 个 apache 通信。

<小时/>

Apache 1 apache 监听端口为 82

<VirtualHost 192.168.1.2:6262>

<Directory />
Order deny,allow
Allow from all
</Directory>

KeepAliveTimeout 60
MaxKeepAliveRequests 0

ManagerBalancerName box1_cluster
ServerAdvertise Off
# AdvertiseFrequency 5
EnableMCPMReceive On

<Location /mod_cluster-manager>
SetHandler mod_cluster-manager
Order deny,allow
Allow from all
</Location>
</VirtualHost>

jboss 1

        <subsystem xmlns="urn:jboss:domain:modcluster:1.1">
<mod-cluster-config advertise-socket="modcluster" connector="ajp" proxy-list="192.168.1.2:6262" balancer="box1_cluster">
<dynamic-load-provider>
<load-metric type="busyness"/>
</dynamic-load-provider>
</mod-cluster-config>
</subsystem>

<socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">


<socket-binding name="modcluster" port="0" multicast-address="224.0.1.105" multicast-port="23364"/>
<outbound-socket-binding name="mail-smtp">
<remote-destination host="localhost" port="25"/>
</outbound-socket-binding>
</socket-binding-group>
<小时/>

Apache 2,监听端口为83

<VirtualHost 192.168.1.2:6263>

<Directory />
Order deny,allow
Allow from all
</Directory>

KeepAliveTimeout 60
MaxKeepAliveRequests 0

ManagerBalancerName box2_cluster
ServerAdvertise Off
# AdvertiseFrequency 5
EnableMCPMReceive On

<Location /mod_cluster-manager>
SetHandler mod_cluster-manager
Order deny,allow
Allow from all
</Location>

</VirtualHost>

jboss 2

     <subsystem xmlns="urn:jboss:domain:modcluster:1.1">
<mod-cluster-config advertise-socket="modcluster" connector="ajp" proxy-list="192.168.1.2:6263" balancer="box2_cluster">
<dynamic-load-provider>
<load-metric type="busyness"/>
</dynamic-load-provider>
</mod-cluster-config>
</subsystem>

<socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">

<socket-binding name="txn-status-manager" port="4713"/>
<socket-binding name="modcluster" port="0" multicast-address="224.0.1.105" multicast-port="23364"/>
<outbound-socket-binding name="mail-smtp">
<remote-destination host="localhost" port="25"/>
</outbound-socket-binding>
</socket-binding-group>

apache 运行良好并连接到 jboss 。apache 还检测所有已部署的应用程序。

<小时/>

问题:-

When the

192.168.1.2:6262/mod_cluster-manager is done it shows the applications deployed on the 2nd jboss. I want to make sure that the apache 1 detects application that are deployed in jboss 1 and no other applications. Basically i want to use mod_cluster but dont want one jboss to talk to another.I want to use mod_cluster for jboss to autopublish applications to apache.But i dont want 2 jboss to talk to each other.

最佳答案

如果您不希望两个 JBoss 实例串扰(因为它们不在同一个集群中),那么您应该让 2 个节点监听唯一的多播地址。

顺便说一句,如果您不使用集群,您将失去 session 复制和高可用性的能力。

关于java - Jboss Eap - mod_cluster - 防止 jboss 互相交谈,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18681504/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com