FIXEdge Java packages are cluster ready. Minimal changes are required.
...
Define a unique node name for each instance (
conf/cluster.xml
):Code Block language xml <instance-name>fej1</instance-name>
Enable the (Optional) If Hazelcast Cluster Quorum mechanism mechanism must be used, then it is required to enable it and define the minimum the minimum number of machines required in a cluster for the cluster to remain in an operational state (conf/cluster.xml):
Code Block language xml <quorum enabled="true" name="fixedgeJQuorum"> <quorum-size>2</quorum-size> </quorum>
Please note that the minimum value for quorum-size is 2.
Update the profile parameter to fej-ha in wrapper configuration (
conf/wrapper.conf
) to enable the HA functionality:Code Block language powershell # Java Additional Parameters wrapper.java.additional.1a = -Dspring.profiles.active=fej-ha
Define parameters for FIX session replication in session configuration (for example, in
conf/session/samples/s_fixDefault.properties
to enable for all FIX session samples)Code Block language powershell # use the Persistence API for storing the FIX session state storageFactory=com.epam.fixengine.storage.persistence.PersistenceEnableFactory # use the Persistence API implementation with replication between nodes storage.persistenceFactoryBuilder=com.epam.fixengine.storage.persistence.ReplicatedPersistenceFactoryBuilder # replication timeout in milliseconds. A zero value for this option will enable asynchronous replication for the FIX session. replicationTimeout=0