Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Fix minimum value for quorum-size

...

  1. Define a unique node name for each instance (conf/cluster.xml):

    Code Block
    languagexml
    <instance-name>fej1</instance-name>
  2. Enable the Hazelcast Cluster Quorum mechanism and define the minimum number of machines required in a cluster for the cluster to remain in an operational state (conf/cluster.xml): 

    Code Block
    languagexml
        <quorum enabled="true" name="fixedgeJQuorum">
            <quorum-size>1<size>2</quorum-size>
        </quorum>
    

    Please note that the minimum value for quorum-size is 2.

  3. Update the profile parameter to fej-ha in wrapper configuration (conf/wrapper.conf) to enable the HA functionality:

    Code Block
    languagepowershell
    # Java Additional Parameters
    wrapper.java.additional.1a = -Dspring.profiles.active=fej-ha
    
  4. Define parameters for FIX session replication in session configuration (for example, in conf/session/samples/s_fixDefault.propertiesto enable for all FIX session samples)

    Code Block
    languagepowershell
    # 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