PDA

View Full Version : Help in setting up a cluster of servers in Resin 4


rein
12-11-2010, 07:03 AM
Hey,
Im using Resin 4.0 Pro with a license.Have a small doubt when trying to set up a cluster.

Do the configuration file for all the resin instances have to be the same, inorder for them to work in the same cluster?
Or can the conf files for each instance have different settings like different web-apps,host settings etc ,and only the the common information inorder to setup the cluster would be that the server for that instance would be under the same cluster id and we would just need to provide it the knowledge of the other servers in the same cluster?

eg:(Just a sample explanation)
// Conf 1
<cluster ="common_across_confs">
<host id="">
<web-app id="/" document-directory='/xyz'>
</web-app>
</host>
<server id="instance1" address="192.168.1.10" port="6800">
info for this instance
</server>
<server id="instance2" address="192.168.1.20" port="6801">
</cluster>


// Conf 2

<cluster ="common_across_confs">
<host id="">
<web-app id="/" document-directory='/not_xyz_but_a_diff_path'>
</web-app>
</host>
<server id="instance2" address="192.168.1.20" port="6801">
info for this instance
</server>
<server id="instance1" address="192.168.1.10" port="6800">
</cluster>