At line 1 changed one line |
Session replication only functions for [Enterprise Licenses|Enterprise License Enhancements]. The servers participating in the replication must have a file name "cluster.xml" in the same root location with CrushFTP. Simply place the file there, and start CrushFTP. |
Session replication only functions for [Enterprise Licenses|Enterprise License Enhancements]. The servers participating in the replication must have a manual setting configuration done in their prefs.xml file. The port specified must be open between machines as this will be used for the replication messages. |
At line 3 changed 8 lines |
Here is an example cluster.xml file for a server having the IP 192.168.1.20, and the secondary server having the IP 192.168.1.21. |
{{{ |
<config xmlns="urn:org:jgroups" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:org:jgroups http://www.jgroups.org/schema/JGroups-3.3.xsd"> |
<TCP bind_port="7800" bind_addr="192.168.1.20"/> |
<TCPPING initial_hosts="192.168.1.21[7000]" port_range="1"/> |
<MERGE2/><FD_SOCK/><FD/><VERIFY_SUSPECT/><pbcast.NAKACK2 use_mcast_xmit="false"/><UNICAST3/><pbcast.STABLE/><pbcast.GMS/><MFC/><FRAG2/><pbcast.STATE_TRANSFER/><pbcast.FLUSH timeout="0"/> |
</config> |
}}} |
Edit the prefs.xml file and fill in the entry for: replicate_session_host_port |
At line 12 changed 7 lines |
{{{ |
<config xmlns="urn:org:jgroups" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:org:jgroups http://www.jgroups.org/schema/JGroups-3.3.xsd"> |
<TCP bind_port="7800" bind_addr="192.168.1.21"/> |
<TCPPING initial_hosts="192.168.1.20[7000]" port_range="1"/> |
<MERGE2/><FD_SOCK/><FD/><VERIFY_SUSPECT/><pbcast.NAKACK2 use_mcast_xmit="false"/><UNICAST3/><pbcast.STABLE/><pbcast.GMS/><MFC/><FRAG2/><pbcast.STATE_TRANSFER/><pbcast.FLUSH timeout="0"/> |
</config> |
}}} |
Example for the first machine:\\ |
{{ |
<replicate_session_host_port>192.168.1.19:7800</replicate_session_host_port> |
}} |
|
and on the second machine a reference back to the first machine:\\ |
{{ |
<replicate_session_host_port>192.168.1.18:7800</replicate_session_host_port> |
}} |
|
In the case of multiple machines, each machine references the other machines with a comma separated list. DNS names are also OK here as well:\\ |
{{ |
<replicate_session_host_port>machine1:7800,machine3:7800</replicate_session_host_port> |
}} |
|
|
To enable user replication from changes made in the user manager, edit the prefs.xml file and set this flag to true.\\ |
{{ |
<replicated_users_sync>true</replicated_users_sync> |
}} |
|
In some special cases you may want the other functionality without the overhead of all session information being replicated between machines. In this case a user would have to re-login if they were suddenly redirected to the other machine...but it avoid wasted resources from replicating all details about a user between machines. Set this to false.\\ |
{{ |
<replicate_sessions>false</replicate_sessions> |
}} |
|
If you're using the "S3Crush" mode for users, there is a flag to replicate this config between servers too.\\ |
{{ |
<s3crush_replicated>true</s3crush_replicated> |
}} |
|
Job configurations can be replicated too:\\ |
{{ |
<replicate_jobs>true</replicate_jobs> |
}} |