Apache httpd配置与群集jboss eap 6.4独立环境
我正在使用JBoss EAP 6.4.0 我正在同一台机器上使用jboss独立服务器的两个实例,并形成一个集群。当我登录到它们时,它工作正常 现在,我尝试使用mod_jk来实现负载平衡,这样就不需要使用端口来访问应用程序。登录页面出现。在提供凭据后,它尝试登录,然后自动注销 My workers.properties文件:Apache httpd配置与群集jboss eap 6.4独立环境,apache,httpd.conf,mod-jk,jboss-eap-6,Apache,Httpd.conf,Mod Jk,Jboss Eap 6,我正在使用JBoss EAP 6.4.0 我正在同一台机器上使用jboss独立服务器的两个实例,并形成一个集群。当我登录到它们时,它工作正常 现在,我尝试使用mod_jk来实现负载平衡,这样就不需要使用端口来访问应用程序。登录页面出现。在提供凭据后,它尝试登录,然后自动注销 My workers.properties文件: # Define list of workers that will be used # for mapping requests # The configuration d
# Define list of workers that will be used
# for mapping requests
# The configuration directives are valid
# for the mod_jk version 1.2.18 and later
#
worker.list=loadbalancer,status
# Define Node1
# modify the host as your host IP or DNS name.
worker.node1.port=8009
worker.node1.host=localhost
worker.node1.type=ajp13
worker.node1.lbfactor=1
worker.node1.prepost_timeout=10000 #Not required if using ping_mode=A
worker.node1.connect_timeout=10000 #Not required if using ping_mode=A
worker.node1.ping_mode=A #As of mod_jk 1.2.27
# Define Node2
worker.node2.port=8109
worker.node2.host=localhost
worker.node2.type=ajp13
worker.node2.lbfactor=1
worker.node2.prepost_timeout=10000 #Not required if using ping_mode=A
worker.node2.connect_timeout=10000 #Not required if using ping_mode=A
worker.node2.ping_mode=A #As of mod_jk 1.2.27
# Load-balancing behaviour
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=node1,node2
worker.loadbalancer.sticky_session=TRUE
# Status worker for managing load balancer
worker.status.type=status
这在JBossEAP5中运行良好。
你知道我遗漏了什么,或者JBoss EAP 6.4中是否可能遗漏了什么。实例id应该与worker.loadbalancer.balance\u workers中的节点名称相同。 对于上述情况,我们需要从jboss cli控制台运行以下命令: e、 g:
/profile=ha/subsystem=web:write属性(name=“instance id”,value=“node1”)