[jboss-as7-dev] Problem met on as7 clustering with mod_cluster

Weinan Li weli at redhat.com
Thu Jan 19 12:17:40 EST 2012


On Jan 20, 2012, at 12:51 AM, jean-frederic clere wrote:

> On 01/18/2012 05:53 AM, Weinan Li wrote:
>> [Wed Jan 18 01:21:59 2012] [error] (111)Connection refused: proxy: http: attempt to connect to 127.0.0.1:8330 (localhost) failed
> 
> Your connector is bind to localhost and should use 10.0.2.2 or something 
> like that.
Hi Jean-Frederic, sorry I'm not sure in which part of config you are referring to for the 'connector' settings. Do you mean the connector config in slave host or the mod_cluster in httpd? 

In addition, here's my host.xml in slave:

<host xmlns="urn:jboss:domain:1.0" name="slave">
...
    <domain-controller>
       <remote host="10.0.1.3<master_ip_address>" port="9999" .../>
    </domain-controller>

    <interfaces>
        <interface name="management">
            <inet-address value="10.0.1.2(slave_ip_address)"/>
        </interface>
        <interface name="public">
           <inet-address value="10.0.1.2(slave_ip_address)"/>
        </interface>
    </interfaces>

    <jvms>...

    <servers>
     
        <server name="server-three" group="other-server-group" auto-start="true">
            <socket-bindings port-offset="250"/>
        </server>
    </servers>
</host>

Because the slave host is under the domain control of master, here's the relative part of domain.xml on master for 'other-server-group', actually I left the config as default setting:

        <server-group name="other-server-group" profile="ha">
...
            <socket-binding-group ref="ha-sockets"/>
...
        </server-group>

It's using ha profile and ha-sockets binding. Seems all are correct. Am I missing anything, or I've made any mistakes on mod_cluster config in httpd? 

The 

[Wed Jan 18 01:21:59 2012] [error] (111)Connection refused: proxy: http: attempt to connect to 127.0.0.1:8330 (localhost) failed

happens after the slave host is registered into cluster. So I guess it's some config error in slave. But there's just host.xml for slave and I couldn't find what's wrong.


> 
> Cheers
> 
> Jean-Frederic
> _______________________________________________
> jboss-as7-dev mailing list
> jboss-as7-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev

Cheers,
- Weinan Li
JBoss, Redhat









More information about the jboss-as7-dev mailing list