日期:2014-05-16  浏览次数:20893 次

APACHE+RESIN负载均衡-----------------之resin集群部分

RESIN安装完成之后,修改resin.conf配置文件增加以下内容

<server id="app-a" address="127.0.0.1" port="6800">

?????? <watchdog-jvm-arg>-Dcom.sun.management.jmxremote</watchdog-jvm-arg>

?????? <watchdog-port>6600</watchdog-port>

?????? <http port="8080"/>

??? </server>

?<server id="app-b" address="127.0.0.1" port="6801">

?????? <watchdog-jvm-arg>-Dcom.sun.management.jmxremote</watchdog-jvm-arg>

?????? <watchdog-port>6601</watchdog-port>

?????? <http port="8081"/>

?</server>

具体配置方式参考resin-doc中的watch-dog章节

配置完成后启动方式:

Httpd.sh –server app-a start

app-a server id