(0003210)
|
nam
|
06-18-08 21:02
|
|
There may be a 6800 port conflict if trying to run the load-balance servers on the same machine.
By default, Resin's load-balance <cluster> listens on port 6800. This can be changed with <cluster-port>. If trying to start Resin up as a service with multiple servers in a load-balance configuration, then the servers would need to use a different address than the one used by the cluster itself.
Example port conflict:
<resin xmlns="http://caucho.com/ns/resin"> [^]
<cluster id="web-tier">
<!-- implied default port, conflicts with server 'app-a' -->
<cluster-port>6800</cluster-port>
<server id="web-a" address="127.0.0.1">
<http port="8080"/>
</server>
<host id="">
<web-app id="/">
<!-- balance all requests to cluster app-tier -->
<rewrite-dispatch>
<load-balance regexp="" cluster="app-tier"/>
</rewrite-dispatch>
</web-app>
</host>
</cluster>
<cluster id="app-tier">
<server id="app-a" address="127.0.0.1" port="6800"/>
<server id="app-b" address="127.0.0.1" port="6801"/>
</cluster>
</resin>
Here, the default cluster port conflicts with app-a server. Either the <cluster-port> or app-a's port needs to be changed.
See: http://www.caucho.com/resin/doc/port-tags.xtp#cluster-port [^] |
|