JBOSS EAP6.4和mod_cluster [英] JBOSS EAP6.4 and mod_cluster

查看:123
本文介绍了JBOSS EAP6.4和mod_cluster的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用一个apache httpd和两个JBOSS EAP 6.4来建立集群和故障转移系统.

I want to set up clustering and fail-over system with one apache httpd and two JBOSS EAP 6.4.

  1. 下载
    mod_cluster下载
    http://mod-cluster.jboss.org/mod_cluster/downloads/1-1-3
    jboss eap 6.4下载
    http://www.jboss.org/products/eap/download/
  2. 我的httpd.config就是这样:

  1. download
    mod_cluster download
    http://mod-cluster.jboss.org/mod_cluster/downloads/1-1-3
    jboss eap 6.4 download
    http://www.jboss.org/products/eap/download/
  2. My httpd.config is like that:


    LoadModule proxy_module modules/mod_proxy.so
    LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
    LoadModule proxy_http_module modules/mod_proxy_http.so

LoadModule proxy_cluster_module modules/mod_proxy_cluster.so

LoadModule manager_module modules/mod_manager.so
LoadModule cluster_slotmem_module modules/mod_cluster_slotmem.so
LoadModule advertise_module modules/mod_advertise.so

# MOD_CLUSTER_ADDS
# Adjust to you hostname and subnet.
<IfModule manager_module>
  Listen 192.168.0.195:6666
  ManagerBalancerName mycluster
  <VirtualHost 192.168.0.195:6666>
    <Location />
     Require ip 192.168.0.195
    </Location>

    KeepAliveTimeout 300
    MaxKeepAliveRequests 0
    #ServerAdvertise on http://127.0.0.1:6666
    AdvertiseFrequency 5
    #AdvertiseSecurityKey secret
    #AdvertiseGroup 224.0.1.105:23364
    EnableMCPMReceive

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

  </VirtualHost>

  • 我使用了默认的standalone-ha.xml

  • I used default standalone-ha.xml

    问题)
    1.我的httpd.conf对吗?
    2.如果我使用"standalone-ha.xml",那么mod_cluster是否有任何配置?
    3.是否有使用一个Apache和两个jboss-eap-6.4的完整配置指南?
    感谢您的任何建议...

    Question)
    1. Is my httpd.conf right?
    2. If I use "standalone-ha.xml", is there any configuration for mod_cluster?
    3. Is there any full-configuring guide with one apache and two jboss-eap-6.4?
    Thanks for any advice...

    推荐答案

    **我必须在JBOSS EAP 6.x中使用mod_cluster-1.2.x

    ** I must use mod_cluster-1.2.x with JBOSS EAP 6.x

    
    1. mod_cluster download
    
        http://mod-cluster.jboss.org/mod_cluster/downloads/1-2-6-Final-bin
    
    2. unzip and install mod_cluster
    
        D:\httpd-2.2\bin>installconf.bat
    
    3. edit httpd.conf
    
        127.0.0.1 -> local ip address
        (below image)
    
    4.install EAP6.4
    
        download from http://www.jboss.org/products/eap/download/
    
        Nothing to configure.
    
    5. run EAP6.4
    requirements:
    - balancing
    - failover
    - session replication
    when using tcp for jgroups: at standalone-ha.xml (line:271 udp -> tcp )
    <subsystem xmlns="urn:jboss:domain:jgroups:1.1" default-stack="tcp">
    
    standalone.bat -c standalone-ha.xml -b 192.168.0.10 -Djboss.node.name=node1
    standalone.bat -c standalone-ha.xml -b 192.168.0.195 -Djboss.node.name=node2
    
    -b x.x.x.x: EAP6.4 IP( for standalone-xx.xml)
    
    

    这篇关于JBOSS EAP6.4和mod_cluster的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆