我在一个 VM 上有一个带有 2 个 jboss 实例的 jboss 设置。2 个 jboss 中的每一个都与同一 VM 上的 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>
老板 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>
老板 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 还检测所有已部署的应用程序。
问题:-
当。。。的时候
192.168.1.2:6262/mod_cluster-manager 完成,它显示了部署在第二个 jboss 上的应用程序。我想确保 apache 1 检测到部署在 jboss 1 中的应用程序而没有其他应用程序。基本上我想使用 mod_cluster 但不希望一个 jboss 与另一个 jboss 交谈。我想使用 mod_cluster for jboss 将应用程序自动发布到 apache。但我不希望 2 个 jboss 相互交谈。